1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546
|
/*
Copyright (c) 1993-2008, Cognitive Technologies
All rights reserved.
Разрешается повторное распространение и использование как в виде исходного кода,
так и в двоичной форме, с изменениями или без, при соблюдении следующих условий:
* При повторном распространении исходного кода должны оставаться указанное
выше уведомление об авторском праве, этот список условий и последующий
отказ от гарантий.
* При повторном распространении двоичного кода в документации и/или в
других материалах, поставляемых при распространении, должны сохраняться
указанная выше информация об авторском праве, этот список условий и
последующий отказ от гарантий.
* Ни название Cognitive Technologies, ни имена ее сотрудников не могут
быть использованы в качестве средства поддержки и/или продвижения
продуктов, основанных на этом ПО, без предварительного письменного
разрешения.
ЭТА ПРОГРАММА ПРЕДОСТАВЛЕНА ВЛАДЕЛЬЦАМИ АВТОРСКИХ ПРАВ И/ИЛИ ДРУГИМИ ЛИЦАМИ "КАК
ОНА ЕСТЬ" БЕЗ КАКОГО-ЛИБО ВИДА ГАРАНТИЙ, ВЫРАЖЕННЫХ ЯВНО ИЛИ ПОДРАЗУМЕВАЕМЫХ,
ВКЛЮЧАЯ ГАРАНТИИ КОММЕРЧЕСКОЙ ЦЕННОСТИ И ПРИГОДНОСТИ ДЛЯ КОНКРЕТНОЙ ЦЕЛИ, НО НЕ
ОГРАНИЧИВАЯСЬ ИМИ. НИ ВЛАДЕЛЕЦ АВТОРСКИХ ПРАВ И НИ ОДНО ДРУГОЕ ЛИЦО, КОТОРОЕ
МОЖЕТ ИЗМЕНЯТЬ И/ИЛИ ПОВТОРНО РАСПРОСТРАНЯТЬ ПРОГРАММУ, НИ В КОЕМ СЛУЧАЕ НЕ
НЕСЁТ ОТВЕТСТВЕННОСТИ, ВКЛЮЧАЯ ЛЮБЫЕ ОБЩИЕ, СЛУЧАЙНЫЕ, СПЕЦИАЛЬНЫЕ ИЛИ
ПОСЛЕДОВАВШИЕ УБЫТКИ, СВЯЗАННЫЕ С ИСПОЛЬЗОВАНИЕМ ИЛИ ПОНЕСЕННЫЕ ВСЛЕДСТВИЕ
НЕВОЗМОЖНОСТИ ИСПОЛЬЗОВАНИЯ ПРОГРАММЫ (ВКЛЮЧАЯ ПОТЕРИ ДАННЫХ, ИЛИ ДАННЫЕ,
СТАВШИЕ НЕГОДНЫМИ, ИЛИ УБЫТКИ И/ИЛИ ПОТЕРИ ДОХОДОВ, ПОНЕСЕННЫЕ ИЗ-ЗА ДЕЙСТВИЙ
ТРЕТЬИХ ЛИЦ И/ИЛИ ОТКАЗА ПРОГРАММЫ РАБОТАТЬ СОВМЕСТНО С ДРУГИМИ ПРОГРАММАМИ,
НО НЕ ОГРАНИЧИВАЯСЬ ЭТИМИ СЛУЧАЯМИ), НО НЕ ОГРАНИЧИВАЯСЬ ИМИ, ДАЖЕ ЕСЛИ ТАКОЙ
ВЛАДЕЛЕЦ ИЛИ ДРУГОЕ ЛИЦО БЫЛИ ИЗВЕЩЕНЫ О ВОЗМОЖНОСТИ ТАКИХ УБЫТКОВ И ПОТЕРЬ.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the Cognitive Technologies nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __CED_H
#define __CED_H
#ifndef __GLOBUS_H
#include "globus.h"
#endif
#include "lang_def.h"
/*
#ifndef __RECDEFS_H
#include "recdefs.h"
#endif
#include "memfunc.h"
*/
#ifdef __CED__
#define CED_FUNC FUN_EXPO
#else
#define CED_FUNC FUN_IMPO
#endif
#define FUN_IMPO_VOID FUN_IMPO__ __FUN_IMPO
#define FUN_EXPO_VOID FUN_EXPO__ __FUN_EXPO
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack (push,8)
#define CED_MAXNAME 260
#ifndef Handle
typedef void * Handle;
#endif
#include "edfile.h"
typedef struct edBox
{
int x,w,y,h;
}EDBOX;
typedef struct edPoint
{
int x,y;
} EDPOINT;
typedef struct edSize
{
int32_t cx,cy;
} EDSIZE;
typedef struct edRect
{
int32_t left,top,right,bottom;
} EDRECT;
typedef struct edCol
{
int32_t width,space;
} EDCOL;
#ifndef _WINGDI_
#define DEFAULT_PITCH 0
#define FIXED_PITCH 1
#define VARIABLE_PITCH 2
#define MONO_FONT 8
/* Font Families */
#define FF_DONTCARE (0<<4) /* Don't care or don't know. */
#define FF_ROMAN (1<<4) /* Variable stroke width, serifed. */
/* Times Roman, Century Schoolbook, etc. */
#define FF_SWISS (2<<4) /* Variable stroke width, sans-serifed. */
/* Helvetica, Swiss, etc. */
#define FF_MODERN (3<<4) /* Constant stroke width, serifed or sans-serifed. */
/* Pica, Elite, Courier, etc. */
#define FF_SCRIPT (4<<4) /* Cursive, etc. */
#define FF_DECORATIVE (5<<4) /* Old English, etc. */
#define ANSI_CHARSET 0
#define DEFAULT_CHARSET 1
#define SYMBOL_CHARSET 2
#define SHIFTJIS_CHARSET 128
#define HANGEUL_CHARSET 129
#define HANGUL_CHARSET 129
#define GB2312_CHARSET 134
#define CHINESEBIG5_CHARSET 136
#define OEM_CHARSET 255
#define JOHAB_CHARSET 130
#define HEBREW_CHARSET 177
#define ARABIC_CHARSET 178
#define GREEK_CHARSET 161
#define TURKISH_CHARSET 162
#define VIETNAMESE_CHARSET 163
#define THAI_CHARSET 222
#define EASTEUROPE_CHARSET 238
#define RUSSIAN_CHARSET 204
#define MAC_CHARSET 77
#define BALTIC_CHARSET 186
#endif
//Для CreateFrame
#define HPOS_PAGE (0<<4)
#define HPOS_MRG (1<<4)
#define HPOS_COL (2<<4)
#define VPOS_PAGE 0
#define VPOS_MRG 1
#define VPOS_PARA 2
//База для шрифта/признака картинки
#define ED_PICT_BASE 0x10000
//Для разрыва раздела
#define ED_SECT_NEW_PAGE 1
#define ED_SECT_CONTINUE 0
/* orientation selections */
#define ED_ORIENT_PORTRAIT 0
#define ED_ORIENT_LANDSCAPE 1
//Положение фрейма
#define ED_POSXR (0x7fffffff-1)
//Стили символов
#define ED_ULINED 1
#define ED_HIDDEN 2
#define ED_BOLD 4
#define ED_ITALIC 16
#define ED_PROTECT 32
#define ED_ULINE 64
#define ED_STRIKE 128
#define ED_SUPSCR 256
#define ED_SUBSCR 512
#define ED_FNOTE 1024
//для абзацев
#define ED_PARA_KEEP 1
#define ED_PARA_KEEP_NEXT 3
//- Positions the paragraph to the right within the reference frame.
#define ED_POSXC (0x7fffffff-2)
//- Centers the frame horizontally within the reference frame.
//Слияние ячеек
#define ED_CELL_MRGF 1
// - ячейка первая в объединяемой группе
#define ED_CELL_MRG 2
//- ячейка очередная в объедияемой группе, т.е.
#define ED_DROPCAP 1
// - Фрейм является буквицей
#define ED_TDIR_UP 2
#define ED_TDIR_DOWN 4
// - направление текста в ячейке таблицы или фрейме
//Типы границ ячейки, абзаца и др.
#define ED_BRDR_NONE 0
#define ED_BRDR_SINGLE 1
#define ED_BRDR_SHADOWED 2
#define ED_BRDR_DOTTED 3
#define ED_BRDR_DASHED 4
#define ED_BRDR_DOUBLE 5
//#include "ced_struct.h" //Структуры, обрабатываемые CED_FormattedLoad
CED_FUNC(Bool32) CED_Init(uint16_t wHeightCode,Handle hStorage);
CED_FUNC(Bool32) CED_Done();
CED_FUNC(uint32_t) CED_GetReturnCode();
CED_FUNC(char *) CED_GetReturnString(uint32_t dwError);
CED_FUNC(Bool32) CED_GetExportData(uint32_t dwType, void * pData);
CED_FUNC(Bool32) CED_SetImportData(uint32_t dwType, void * pData);
char * GetModulesString(uint32_t dwError);
/////////////////////////////////////////////////////////////
//Импорт
enum CED_IMPORT_ENTRIES
{
CED_FNCED_BitmapRef = 1,
CED_FNCED_TextRef,
CED_FNCED_FontKegl,
CED_FNCED_Kegl,
CED_FNCED_Shift,
CED_FNCED_RetrieveLevel,
CED_FNCED_Underline,
CED_FNCED_DensPrint,
CED_FNCED_Tabul,
CED_FNCED_TablTabul,
CED_FNCED_SheetDiskDescr,
CED_FNCED_FragmDiskDescr,
CED_FNCED_FragmDisk,
CED_FNCED_StepBack,
CED_FNCED_LineBeg,
CED_FNCED_Position,
CED_FNCED_EdTagLanguage,
CED_FNCED_TableConformSizes,
CED_FNCED_GroupWords,
CED_FNCED_GroupSymbols,
CED_FNCED_Border,
CED_FNCED_TableHeader,
CED_FNCED_ListOfFragments,
CED_FNCED_Extention,
CED_FNCED_Aksant,
CED_FNCED_Letter,
CED_FNCED_ExtentionNew
};
typedef void (*FNRDProc)(uchar* ptr, uint32_t lth);
//Для CreatePicture
#define ED_ALIGN_BOT 0 // align picture bottom to base line
#define ED_ALIGN_MIDDLE 1 // center picture vertically to baseline
#define ED_ALIGN_TOP 2 // align picture top to base line
#define DEC_FUN(a,b,c) typedef a (*FN##b)c
DEC_FUN(void, CED_BitmapRef,(const struct bit_map_ref* pt));
DEC_FUN(void, CED_TextRef,(const struct text_ref* pt));
DEC_FUN(void, CED_FontKegl,(const struct font_kegl *pt));
DEC_FUN(void, CED_Kegl,(const struct kegl* pt));
DEC_FUN(void, CED_Shift,(const struct shift* pt));
DEC_FUN(void, CED_RetrieveLevel,(const struct retrieve_level* pt));
DEC_FUN(void, CED_Underline,(const struct underline* pt));
DEC_FUN(void, CED_DensPrint,(const struct dens_print* pt));
DEC_FUN(void, CED_Tabul,(const struct tabul* pt));
DEC_FUN(void, CED_TablTabul,(const struct tabl_tabul* pt));
DEC_FUN(void, CED_SheetDiskDescr,(const struct sheet_disk_descr* pt));
DEC_FUN(void, CED_FragmDiskDescr,(const struct fragm_disk_descr* pt));
DEC_FUN(void, CED_FragmDisk,(const struct fragm_disk* pt));
DEC_FUN(void, CED_StepBack,(const struct step_back* pt));
DEC_FUN(void, CED_LineBeg,(const struct line_beg* pt));
DEC_FUN(void, CED_Position,(const struct position* pt));
DEC_FUN(void, CED_EdTagLanguage,(const struct EdTagLanguage* pt));
DEC_FUN(void, CED_TableConformSizes,(const struct table_conform_sizes* pt));
DEC_FUN(void, CED_GroupWords,(const struct group_words* pt));
DEC_FUN(void, CED_GroupSymbols,(const struct group_symbols* pt));
DEC_FUN(void, CED_Border,(const struct border* pt));
DEC_FUN(void, CED_TableHeader,(const struct table_header* pt));
DEC_FUN(void, CED_ListOfFragments,(const struct list_of_fragments* pt));
DEC_FUN(void, CED_Extention,(const struct edExtention* pt,const void* ptExt));
DEC_FUN(void, CED_ExtentionNew,(const struct edExtentionNew* pt,const void* ptExt));
DEC_FUN(void, CED_Aksant,(const struct aksant* pt));
DEC_FUN(void, CED_Letter,(const struct letter* pt,const uint32_t alternatives));
#undef DEC_FUN
//Экспорт
typedef enum
{
CED_FNCED_ReadED = 1,
CED_FNCED_SetRawDataProc,
CED_FNCED_FormattedLoad,
CED_FNCED_FormattedWrite,
CED_FNCED_DeleteTree,
CED_FNCED_CreatePage,
CED_FNCED_CreateSection,
CED_FNCED_CreateFont,
CED_FNCED_CreateColumn,
CED_FNCED_CreateParagraph,
CED_FNCED_CreateLine,
CED_FNCED_CreateChar,
CED_FNCED_CreateFrame,
CED_FNCED_CreateTable,
CED_FNCED_CreateCell,
CED_FNCED_DeletePage,
CED_FNCED_ReadFormattedEd,
CED_FNCED_WriteFormattedEd,
CED_FNCED_GetPageImageName,
CED_FNCED_GetPageImageSize,
CED_FNCED_GetPageDpi,
CED_FNCED_GetPageTurn,
CED_FNCED_GetPageSize,
CED_FNCED_GetPageUnrecogChar,
CED_FNCED_GetCountSection,
CED_FNCED_GetNumberOfParagraphs,
CED_FNCED_GetFont,
CED_FNCED_GetNumOfFonts,
CED_FNCED_GetParagraph,
CED_FNCED_GetSection,
CED_FNCED_GetSectionBorder,
CED_FNCED_GetCountColumn,
CED_FNCED_GetColumn,
CED_FNCED_GetSnakeColumnWidth,
CED_FNCED_GetSnakeColumnSpacing,
// CED_FNCED_GetCountFrame,
// CED_FNCED_GetFrame,
// CED_FNCED_GetFramePoint,
CED_FNCED_GetFrameRect,
CED_FNCED_GetFirstObject,
CED_FNCED_GetNextObject,
CED_FNCED_IsTable,
CED_FNCED_IsFrame,
CED_FNCED_IsPicture,
CED_FNCED_IsParagraph,
CED_FNCED_IsFictive,
CED_FNCED_GetCountCell,
CED_FNCED_GetCell,
CED_FNCED_GetLinesX,
CED_FNCED_GetRowsHeights,
CED_FNCED_GetTableOfCells,
CED_FNCED_GetSize,
CED_FNCED_GetIndent,
CED_FNCED_GetAlignment,
CED_FNCED_GetLayout,
CED_FNCED_GetUserNumber,
CED_FNCED_GetInterval,
CED_FNCED_GetCountLine,
CED_FNCED_GetLine,
CED_FNCED_GetCountChar,
CED_FNCED_GetChar,
CED_FNCED_GetAlternatives,
CED_FNCED_GetCharFontHeight,
CED_FNCED_GetCharFontAttribs,
CED_FNCED_GetCharFontLang,
CED_FNCED_IsEdFile,
CED_FNCED_GetCharLayout,
CED_FNCED_CreatePicture,
CED_FNCED_CreateTableRow,
CED_FNCED_GetPageNumber,
CED_FNCED_GetPageBorders,
CED_FNCED_GetPageResize,
CED_FNCED_GetPicture,
CED_FNCED_GetNumOfPics,
CED_FNCED_GetNumSnakeCols,
CED_FNCED_GetCountRow,
CED_FNCED_GetTableRow,
CED_FNCED_GetTableRowParams,
CED_FNCED_GetCellParams,
CED_FNCED_GetFramePosition,
CED_FNCED_GetFrameBorderSpace,
CED_FNCED_GetFrameDxfrtextx,
CED_FNCED_GetFrameDxfrtexty,
CED_FNCED_GetLineHardBreak,
CED_FNCED_GetCharBackgroundColor,
CED_FNCED_GetCharForegroundColor,
CED_FNCED_GetCharFontNum,
CED_FNCED_GetLogicalCell,
CED_FNCED_GetCountLogicalCell,
CED_FNCED_GetLineDefChrFontHeight,
CED_FNCED_WriteFormattedRtf,
CED_FNCED_SetLogFileName,
CED_FNCED_MergeFormattedRtf,
CED_FNCED_SetLineParams,
CED_FNCED_SetSectLineBetCol,
CED_FNCED_GetSectLineBetCol,
CED_FNCED_SetParaBorders,
CED_FNCED_GetParaBorders,
CED_FNCED_SetFrameFlag,
CED_FNCED_GetFrameFlag,
CED_FNCED_GetParaParams,
CED_FNCED_SetCellFlag,
CED_FNCED_GetCellFlag,
CED_FNCED_SetPageRecogLang,
CED_FNCED_GetPageRecogLang
} CED_EXPORT_ENTRIES;
#ifdef _DEBUG
#define CED_FNCED_ShowTree 0xffff
#endif
#define DEC_FUN(a,b,c) typedef a (*FN##b)c; CED_FUNC(a) b c
//#define DEC_FUN(a,b,c) typedef a (*FN##b)c;a b c
DEC_FUN(uint32_t, CED_IsEdFile, (char * file,Bool32 readFromFile, uint32_t bufLen));
DEC_FUN(uint32_t, CED_ReadED,(char * file,Bool32 readFromFile, uint32_t bufLen));
DEC_FUN(void,CED_SetRawDataProc,(FNRDProc proc));
DEC_FUN(Handle, CED_CreatePage,(char * _imageName,EDSIZE _sizeOfImage,EDSIZE _dpi,int _turn,int _pageNumber,EDSIZE _sizeInTwips, EDRECT _pageBordersInTwips, char _unrecogChar, Bool32 _resizeToFit));
DEC_FUN(Bool32, CED_SetPageRecogLang,(Handle hEdPage, char _recogLang));
DEC_FUN(char, CED_GetPageRecogLang,(Handle hEdPage));
DEC_FUN(Bool32, CED_CreateFont,(Handle hEdPage, uchar fontNumber, uchar fontPitchAndFamily, uchar fontCharset,char* fontName));
DEC_FUN(Bool32, CED_CreatePicture,(Handle hEdPage, int pictNumber, EDSIZE pictSize, EDSIZE pictGoal, int pictAlign, int type, void * data, int len));
DEC_FUN(Handle, CED_CreateSection,(Handle hEdPage,EDRECT border, int colInterval, int numOfCols, EDCOL* colInfo, char sectionBreak, int width, int height, char orientation, int headerY, int footerY));
DEC_FUN(Bool32, CED_SetSectLineBetCol,( Handle hEdSection, Bool32 lineBetCol));
DEC_FUN(Handle, CED_CreateColumn,( Handle hEdSection));
DEC_FUN(Handle, CED_CreateParagraph,(Handle hEdSection, Handle hObject, int align, EDRECT indent, int UserNum, int FlagBorder, EDSIZE interval, EDBOX layout, int color, int shading, int spaceBetweenLines, char spcBtwLnsMult, char keep));
DEC_FUN(Bool32, CED_SetParaBorders,(Handle hEdParagraph, int leftBrdrType, int leftBrdrWidth, int rightBrdrType, int rightBrdrWidth, int topBrdrType, int topBrdrWidth, int bottomBrdrType, int bottomBrdrWidth,int brdrBtw));
DEC_FUN(Handle, CED_CreateLine,(Handle hEdParagraph,Bool32 hardBreak,int defChrFontHeight));
DEC_FUN(Bool32, CED_SetLineParams,(Handle hEdLine, Bool32 hardBreak, int defChrFontHeight));
DEC_FUN(Handle, CED_CreateChar,(Handle hEdLine, EDRECT layout, LETTER* alternatives, int fontHeight, int fontNum, int fontAttribs, int fontLang, int foregroundColor, int backgroundColor));
DEC_FUN(Handle, CED_CreateFrame,(Handle hEdSection, Handle hEdColumn, EDBOX rect, char position, int borderSpace, int dxfrtextx, int dxfrtexty));
DEC_FUN(Bool32, CED_SetFrameFlag,(Handle hEdFrame, int flag));
DEC_FUN(Handle, CED_CreateTable,(Handle hEdSection, Handle hObject));
DEC_FUN(Handle, CED_CreateTableRow,(Handle hEdSection, Handle hEdTable, int left, int rowHeight, int leftBrdrType, int leftBrdrWidth, int rightBrdrType, int rightBrdrWidth, int topBrdrType, int topBrdrWidth, int bottomBrdrType, int bottomBrdrWidth, int gaph, int position, Bool32 header));
DEC_FUN(Handle, CED_CreateCell,(Handle hEdSection,Handle hEdRow, int cellX, int merging, int vertTextAlign, int leftBrdrType, int leftBrdrWidth, int rightBrdrType, int rightBrdrWidth, int topBrdrType, int topBrdrWidth, int bottomBrdrType, int bottomBrdrWidth, EDBOX layout, int shading, int color));
DEC_FUN(Bool32, CED_SetCellFlag,(Handle hEdCell, int flag));
DEC_FUN(void, CED_DeletePage,(Handle hEdPage));
DEC_FUN(Handle, CED_ReadFormattedEd,(char * lpEdFile,Bool32 readFromFile, uint32_t bufLen));
DEC_FUN(Bool32, CED_WriteFormattedEd,(char * lpEdFileName, Handle hEdPage));
DEC_FUN(char*, CED_GetPageImageName,(Handle hEdPage));
DEC_FUN(EDSIZE, CED_GetPageImageSize,(Handle hEdPage));
DEC_FUN(EDSIZE,CED_GetPageDpi,(Handle hEdPage));
DEC_FUN(uint32_t, CED_GetPageTurn,(Handle hEdPage));
DEC_FUN(EDSIZE,CED_GetPageSize,(Handle hEdPage));
DEC_FUN(EDRECT, CED_GetPageBorders,(Handle hEdPage));
DEC_FUN(uint32_t, CED_GetPageNumber,(Handle hEdPage));
DEC_FUN(char,CED_GetPageUnrecogChar,(Handle hEdPage));
DEC_FUN(Bool32, CED_GetPageResize,(Handle hEdPage));
DEC_FUN(uint32_t,CED_GetNumberOfParagraphs,(Handle hEdPage));
DEC_FUN(uint32_t, CED_GetNumOfFonts,(Handle hEdPage));
DEC_FUN(Bool32, CED_GetPicture,(Handle hEdPage,int number, int* pictNumber, EDSIZE* pictSize, EDSIZE* pictGoal, int* pictAlign , int* type, void ** data, int* len));
DEC_FUN(uint32_t, CED_GetNumOfPics,(Handle hEdPage));
DEC_FUN(Handle, CED_GetParagraph,(Handle hEdPage,int _num));
DEC_FUN(Bool32, CED_GetFont,(Handle hEdPage,int number, uchar* fontNumber, uchar* fontPitchAndFamily, uchar* fontCharset,char** fontName));
DEC_FUN(uint32_t,CED_GetCountSection,(Handle hEdPage));
DEC_FUN(Handle, CED_GetSection,(Handle hEdPage, uint32_t number));
DEC_FUN(Bool32, CED_GetSectLineBetCol,(Handle hEdSection));
DEC_FUN(EDRECT, CED_GetSectionBorder,(Handle hEdSection));
DEC_FUN(uint32_t, CED_GetCountColumn,(Handle hEdSection));
DEC_FUN(uint32_t, CED_GetNumSnakeCols,(Handle hEdSection));
DEC_FUN(Handle, CED_GetColumn,(Handle hEdSection,int number));
DEC_FUN(int32_t, CED_GetSnakeColumnWidth,(Handle hEdSection,int number));
DEC_FUN(int32_t, CED_GetSnakeColumnSpacing,(Handle hEdSection,int number));
DEC_FUN(Bool32, CED_GetSectionParams,(Handle hEdSection,EDRECT* border, int* colInterval, char* sectionBreak, int* width, int* height, char* orientation, int* headerY, int* footerY));
//DEC_FUN(uint32_t, CED_GetCountFrame,(Handle hEdSection));
//DEC_FUN(Handle, CED_GetFrame,(Handle hEdSection,int number));
DEC_FUN(EDBOX, CED_GetFrameRect,(Handle hEdFrame));
DEC_FUN(int32_t, CED_GetFramePosition,(Handle hEdFrame));
DEC_FUN(int32_t, CED_GetFrameBorderSpace,(Handle hEdFrame));
DEC_FUN(int32_t, CED_GetFrameDxfrtextx, (Handle hEdFrame));
DEC_FUN(int32_t, CED_GetFrameDxfrtexty, (Handle hEdFrame));
DEC_FUN(int32_t, CED_GetFrameFlag, (Handle hEdFrame));
DEC_FUN(Handle, CED_GetFirstObject,(Handle hObject));
DEC_FUN(Handle, CED_GetNextObject,(Handle hObject));
DEC_FUN(Bool32, CED_IsTable,(Handle hObject));
DEC_FUN(Bool32, CED_IsFrame,(Handle hObject));
DEC_FUN(Bool32, CED_IsParagraph,(Handle hObject));
DEC_FUN(Bool32, CED_IsFictive,(Handle hEdParagraph));
DEC_FUN(uint32_t, CED_GetCountRow,(Handle hEdTable));
DEC_FUN(Handle, CED_GetTableRow,(Handle hEdTable, int num));
DEC_FUN(Bool32, CED_GetTableRowParams,(Handle hEdRow, int* left, int* rowHeight, int* leftBrdrType, int* leftBrdrWidth, int* rightBrdrType, int* rightBrdrWidth, int* topBrdrType, int* topBrdrWidth, int* bottomBrdrType, int* bottomBrdrWidth, int* gaph, int* position, Bool32* header));
DEC_FUN(uint32_t, CED_GetCountCell,(Handle hEdRow));
DEC_FUN(Handle, CED_GetCell,(Handle hEdRow, int number));
DEC_FUN(Bool32, CED_GetCellParams,(Handle hEdCell, int* cellX, int* merging, int* vertTextAlign, int* leftBrdrType, int* leftBrdrWidth, int* rightBrdrType, int* rightBrdrWidth, int* topBrdrType, int* topBrdrWidth, int* bottomBrdrType, int* bottomBrdrWidth, EDBOX* layout, int* shading, int* color));
DEC_FUN(int32_t, CED_GetCellFlag, (Handle hEdCell));
DEC_FUN(int32_t*,CED_GetLinesX,(Handle hEdTable));
DEC_FUN(int32_t *,CED_GetRowsHeights,(Handle hEdTable));
DEC_FUN(uint32_t*,CED_GetTableOfCells,(Handle hEdTable));
DEC_FUN(EDSIZE, CED_GetSize,(Handle hEdTable));
DEC_FUN(Handle, CED_GetLogicalCell,(Handle hEdTable, int number));
DEC_FUN(int, CED_GetCountLogicalCell,(Handle hEdTable));
DEC_FUN(EDRECT, CED_GetIndent,(Handle hEdParagraph));
DEC_FUN(uint32_t,CED_GetAlignment,(Handle hEdParagraph));
DEC_FUN(EDBOX, CED_GetLayout,(Handle hEdParagraph));
DEC_FUN(uint32_t, CED_GetUserNumber,(Handle hEdParagraph));
DEC_FUN(EDSIZE, CED_GetInterval,(Handle hEdParagraph));
DEC_FUN(Bool32, CED_GetParaParams,(Handle hEdParagraph,int* color, int* shading, int* spaceBetweenLines, char* spcBtwLnsMult, char* keep));
DEC_FUN(Bool32, CED_GetParaBorders,(Handle hEdParagraph, int* leftBrdrType, int* leftBrdrWidth, int* rightBrdrType, int* rightBrdrWidth, int* topBrdrType, int* topBrdrWidth, int* bottomBrdrType, int* bottomBrdrWidth,int* brdrBtw));
DEC_FUN(uint32_t, CED_GetCountLine,(Handle hEdParagraph));
DEC_FUN(Handle, CED_GetLine,(Handle hEdParagraph,int number));
DEC_FUN(Bool32, CED_GetLineHardBreak,(Handle hEdLine));
DEC_FUN(int32_t, CED_GetLineDefChrFontHeight,(Handle hEdLine));
DEC_FUN(uint32_t, CED_GetCountChar,(Handle hEdLine));
DEC_FUN(Handle, CED_GetChar,(Handle hEdLine,int number));
DEC_FUN(Bool32, CED_IsPicture,(Handle hEdChar));
DEC_FUN(LETTER*, CED_GetAlternatives,(Handle hEdChar));
DEC_FUN(int32_t, CED_GetCharFontHeight,(Handle hEdChar));
DEC_FUN(int32_t, CED_GetCharFontAttribs,(Handle hEdChar));
DEC_FUN(int32_t, CED_GetCharFontNum,(Handle hEdChar));
DEC_FUN(EDRECT, CED_GetCharLayout,(Handle hEdChar));
DEC_FUN(int32_t, CED_GetCharFontLang,(Handle hEdChar));
DEC_FUN(int32_t, CED_GetCharBackgroundColor,(Handle hEdChar));
DEC_FUN(int32_t, CED_GetCharForegroundColor,(Handle hEdChar));
DEC_FUN(Bool32, CED_WriteFormattedRtf,(const char * fileName, Handle hEdPage));
DEC_FUN(Bool32, CED_MergeFormattedRtf,(const char * fileName, Handle hEdPage));
#ifdef _DEBUG
DEC_FUN(void, CED_ShowTree,(char * name, Handle hEdPage));
#endif
DEC_FUN(void, CED_SetLogFileName,(const char * name));
#undef DEC_FUN
#pragma pack (pop)
#ifdef __cplusplus
}
#endif
#endif
|