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 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845
|
# include <appFrame.h>
# include <appImage.h>
# include <utilPropMask.h>
# include <utilMemoryBuffer.h>
# include <appGeo.h>
# include <appDraw.h>
# include "docBuf.h"
# ifndef TED_APP_H
# define TED_APP_H
# define RESIZE_BLOCK 10
/************************************************************************/
/* */
/* Private data for a document. */
/* */
/************************************************************************/
typedef struct TedDocument
{
BufferDocument * tdDocument;
TextAttribute tdCurrentTextAttribute;
int tdCurrentPhysicalFont;
DocumentSelection tdDocumentSelection;
SelectionGeometry tdSelectionGeometry;
APP_WIDGET tdCopyWidget;
APP_WIDGET tdCutWidget;
APP_WIDGET tdPasteWidget;
APP_WIDGET tdInsertMenu;
APP_WIDGET tdInsertMenuButton;
APP_WIDGET tdInsPictOption;
APP_WIDGET tdInsFileOption;
APP_WIDGET tdInsSymbolOption;
APP_WIDGET tdInsHyperlinkOption;
APP_WIDGET tdInsBookmarkOption;
APP_WIDGET tdInsInsertFootnoteOption;
APP_WIDGET tdInsInsertChftnsepOption;
APP_WIDGET tdInsInsertTableOption;
APP_WIDGET tdInsInsertPageNumberOption;
APP_WIDGET tdInsInsertLineBreakOption;
APP_WIDGET tdInsInsertPageBreakOption;
APP_WIDGET tdInsInsertSectBreakOption;
APP_WIDGET tdTableMenu;
APP_WIDGET tdTableMenuButton;
APP_WIDGET tdTabInsertTableOption;
APP_WIDGET tdTabAddRowOption;
APP_WIDGET tdTabAddColumnOption;
APP_WIDGET tdFormatMenu;
APP_WIDGET tdFormatMenuButton;
APP_WIDGET tdFormatOneParaOption;
APP_WIDGET tdSelectTableWidget;
APP_WIDGET tdSelectRowWidget;
APP_WIDGET tdSelectColumnOption;
APP_WIDGET tdDrawTableGridOption;
APP_WIDGET tdFontMenu;
APP_WIDGET tdFontMenuButton;
APP_WIDGET tdFontBoldOption;
APP_WIDGET tdFontItalicOption;
APP_WIDGET tdFontUnderlinedOption;
APP_WIDGET tdFontSuperscriptOption;
APP_WIDGET tdFontSubscriptOption;
APP_WIDGET tdToolsMenu;
APP_WIDGET tdToolsMenuButton;
APP_WIDGET tdToolsFormatToolOption;
APP_COLOR_RGB tdSelColor;
APP_COLOR_RGB tdXSelColor;
APP_COLOR_RGB tdFieldColor;
APP_COLOR_RGB tdTableColor;
int tdVisibleSelectionCopied;
int tdCanReplaceSelection;
int tdCopiedSelectionClosed;
MemoryBuffer tdCopiedSelection;
MemoryBuffer tdCopiedFont;
MemoryBuffer tdCopiedRuler;
AppBitmapImage tdCopiedImage;
# ifdef USE_MOTIF
XtIntervalId tdHideIBarId;
XtIntervalId tdShowIBarId;
# endif
# ifdef USE_GTK
guint tdHideIBarId;
guint tdShowIBarId;
# endif
APP_WINDOW tdObjectWindow;
APP_WINDOW tdObjectBottomWindow;
APP_WINDOW tdObjectRightWindow;
APP_WINDOW tdObjectCornerWindow;
int tdObjectSelected;
int tdDrawTableGrid;
} TedDocument;
/************************************************************************/
/* */
/* Ted specific resources. */
/* */
/* Also: Some global data items. */
/* */
/************************************************************************/
typedef struct TedAppResources
{
/****************************************/
/* Texts. */
/****************************************/
char * tarFileNotRtf;
char * tarHeadFootNotReachable;
char * tarAppFileMenuText;
char * tarAppWinMenuText;
char * tarDocFileMenuText;
char * tarDocEditMenuText;
char * tarDocInsertMenuText;
char * tarDocWinMenuText;
char * tarDocFontMenuText;
char * tarDocFormatMenuText;
char * tarDocToolMenuText;
char * tarDocTableMenuText;
char * tarHelpMenuText;
char * tarAppHelpFileName;
char * tarSelectionColor;
char * tarCopiedSelectionColor;
/****************************************/
/* Defaults. */
/****************************************/
char * tarDefaultAnsicpgString;
int tarDefaultAnsicpgInt;
/****************************************/
/* Global data. */
/****************************************/
AppInspector * tarInspector;
EditDocument * tarManualDocument;
} TedAppResources;
/************************************************************************/
/* */
/* Used on 'Hyperlink' and 'Bookmark' dialogs. */
/* */
/************************************************************************/
typedef enum LinkKind
{
LINKkindHYPERLINK,
LINKkindPAGE_NUMBER,
LINKkindBOOKMARK_TEXT,
LINKkindTEXT_PLUS_PAGE,
LINKkind_COUNT
} LinkKind;
/************************************************************************/
/* */
/* Supported document formats. */
/* Match an array in tedMain.c. */
/* */
/************************************************************************/
typedef enum TedDocumentKind
{
TEDdockindRTF= 0,
TEDdockindTEXT_OPEN,
TEDdockindTEXT_SAVE_FOLDED,
TEDdockindTEXT_SAVE_WIDE,
TEDdockindHTML_FILES,
TEDdockindALL_FILES,
TEDdockind_COUNT
} TedDocumentKind;
/************************************************************************/
/* */
/* Shared resources. */
/* */
/************************************************************************/
extern const int TedPrimaryTextTargetCount;
extern AppSelectionTargetType TedPrimaryTextTargets[];
extern const int TedPrimaryPictureTargetCount;
extern AppSelectionTargetType TedPrimaryPictureTargets[];
extern const int TedRulerTargetCount;
extern AppSelectionTargetType TedRulerTargets[];
/************************************************************************/
/* */
/* Geometry calculations. */
/* */
/************************************************************************/
extern int tedLayoutItem( BufferItem * bi,
BufferDocument * bd,
AppDrawingData * add,
DocumentRectangle * drChanged );
extern int tedLayoutExternalItem(
int * pY1Twips,
ExternalItem * ei,
int page,
int y0Twips,
BufferDocument * bd,
AppDrawingData * add,
DocumentRectangle * drChanged );
extern int tedFindPosition( DocumentPosition * dp,
PositionGeometry * pg,
BufferItem * rootBi,
const AppDrawingData * add,
int x,
int y );
extern int tedCalculateX( const BufferItem * bi,
const TextParticule * tp,
const AppDrawingData * add,
int stroff );
extern int tedFindParticule( TextLine * tl,
TextParticule * tp,
int x,
int y );
extern int tedFindStringOffset( const TextParticule * tp,
const unsigned char * paraString,
const AppDrawingData * add,
int * pBarX,
int x,
int y );
extern int tedHasSelection( const TedDocument * td );
extern int tedHasIBarSelection( const TedDocument * td );
extern int tedLineDown( DocumentPosition * bp,
const AppDrawingData * add );
extern int tedLineUp( DocumentPosition * bp,
const AppDrawingData * add );
extern int tedPageUp( DocumentPosition * dp,
BufferDocument * bd,
const AppDrawingData * add,
int pageHeight );
extern int tedPageDown( DocumentPosition * dp,
BufferDocument * bd,
const AppDrawingData * add,
int docHeight,
int pageHeight );
extern APP_EVENT_HANDLER( tedObserveFocus, w, voided, event );
extern void tedSplitParagraph( EditDocument * ed,
int onNewPage );
extern void tedEditReplaceSelectionWithTab( EditDocument * ed );
extern int tedChangeSelectionProperties(
EditDocument * ed,
const PropertyMask * taUpdMask,
TextAttribute taNew,
const PropertyMask * ppUpdMask,
const ParagraphProperties * ppNew,
const PropertyMask * spUpdMask,
const SectionProperties * spNew );
extern void tedRedrawRectangle( APP_WIDGET w,
TedDocument * td,
DocumentRectangle * drClip,
AppDrawingData * add,
AppColors * ac,
int ox,
int oy );
extern void tedDelimitCurrentSelection( TedDocument * td,
AppDrawingData * add );
extern void tedDocToolFind( APP_WIDGET findOption,
void * voided,
void * voidcbs );
extern void tedDocToolSpell( APP_WIDGET spellOption,
void * voided,
void * voidcbs );
extern int tedIncludePlainDocument( APP_WIDGET w,
EditDocument * ed,
BufferDocument * bdFrom );
extern int tedIncludeRtfDocument( APP_WIDGET w,
EditDocument * ed,
BufferDocument * bdFrom );
extern int tedGetDocumentAttributeString( char * scratch,
TedDocument * td );
extern int tedGetDocumentAttributes( TedDocument * td,
const char ** pFamilyName,
int * pPsFamilyNumber,
int * pEncoding,
PropertyMask * pUpdMask,
TextAttribute * pTaNew );
extern void tedDocCopy( EditDocument * ed );
extern void tedDocCut( EditDocument * ed );
extern void tedDocSelAll( EditDocument * ed );
extern void tedSetSelection( EditDocument * ed,
const DocumentSelection * dsSet,
int * pScrolledX,
int * pScrolledY );
extern void tedAppReplaceSelection( EditDocument * ed,
const unsigned char * word,
int len );
extern void tedSetSelectedPosition(
EditDocument * ed,
const DocumentPosition * dp,
int * pScrolledX,
int * pScrolledY );
extern void tedShowFontsTool( APP_WIDGET fontsOption,
EditApplication * ea,
void * voidcbs );
extern void tedAdaptFontIndicatorsToSelection( EditApplication * ea,
EditDocument * ed );
extern void tedAdaptFontsToolToDocument( EditApplication * ea,
EditDocument * ed );
extern void tedAdaptToolsToSelection( EditDocument * ed );
extern int tedExtendSelectionToXY(
EditDocument * ed,
BufferItem * rootBi,
const DocumentPosition * bpAnchor,
int mouseX,
int mouseY );
extern int tedExtendSelectionToPosition(
EditDocument * ed,
const DocumentPosition * dpAnchor,
const DocumentPosition * dpFound );
extern void tedScrollToSelection( EditDocument * ed,
int * pScrolledX,
int * pScrolledY );
extern void tedDocFontBold( APP_WIDGET boldOption,
void * voided,
void * voidcbs );
extern void tedDocFontItalic( APP_WIDGET italicOption,
void * voided,
void * voidcbs );
extern void tedDocFontUnderlined( APP_WIDGET underlineOption,
void * voided,
void * voidcbs );
extern void tedDocFontSupersub( APP_WIDGET option,
void * voided,
void * voidcbs );
extern int tedLayoutDocumentTree( TedDocument * td,
AppDrawingData * add );
extern void tedScreenRectangles( AppDrawingData * add,
const DocumentGeometry * dg );
extern void tedAdaptPageToolToDocument( EditApplication * ea,
EditDocument * ed );
extern void tedAppReplace( void * voidea,
const unsigned char * word );
extern void tedGetNamedPictures( EditApplication * ea );
extern int tedAppChangeSelectionAttributeString( EditDocument * ed,
char * attributeString );
extern int tedDocSetTopRuler( EditDocument * ed );
extern int tedDocSetLeftRuler( EditDocument * ed );
extern void tedDocAdaptHorizontalRuler( EditDocument * ed,
BufferItem * bi );
extern void tedUndrawIBar( const EditDocument * ed );
extern int tedDrawIBar( const PositionGeometry * pg,
int ox,
int oy,
AppDrawingData * add );
extern void tedStartCursorBlink( EditDocument * ed );
extern void tedStopCursorBlink( EditDocument * ed );
extern void tedCleanCursorBlink( TedDocument * td );
extern int tedOpenItemObjects( BufferItem * bi,
AppColors * ac,
AppDrawingData * add );
extern int tedDrawObject( const BufferItem * bi,
const TextParticule * tp,
int baseline,
int ox,
int oy,
AppDrawingData * add );
extern void tedCloseObject( BufferDocument * bd,
BufferItem * bi,
TextParticule * tp,
void * voidadd );
extern void tedDocInsertPicture( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern void tedDocInsertFile( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern void tedDocInsertLink( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern void tedDocInsertBookmark( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern void tedDocInsertFootnote( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern void tedDocInsertChftnsep( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern void tedDocInsertPageNumber( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern void tedDocInsertLineBreak( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern void tedDocInsertPageBreak( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern void tedDocInsertSectBreak( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern void TEDmiDocInsertInsSectBreak( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern void tedDocFormatOnePara( APP_WIDGET option,
void * voided,
void * voidpbcs );
extern int tedReplaceSelectionWithObject(
EditDocument * ed,
InsertedObject * io );
extern APP_PASTE_REPLY( tedPastePrimaryRtf, w, event, voided );
extern APP_PASTE_REPLY( tedPastePrimaryString, w, event, voided );
extern APP_PASTE_REPLY( tedPasteRulerTed, w, event, voided );
extern APP_PASTE_REPLY( tedPasteFontTed, w, event, voided );
extern APP_PASTE_REPLY( tedPastePrimaryPixmap, w, event, voided );
extern APP_PASTE_REPLY( tedPastePrimaryPng, w, event, voided );
extern APP_GIVE_COPY( tedCopyPrimaryRtf, w, event, voided );
extern APP_GIVE_COPY( tedCopyPrimaryString, w, event, voided );
extern APP_GIVE_COPY( tedCopyPrimaryPng, w, event, voided );
extern APP_GIVE_COPY( tedCopyPrimaryPixmap, w, event, voided );
extern APP_GIVE_COPY( tedCopyFontTed, w, event, voided );
extern APP_GIVE_COPY( tedCopyRulerTed, w, event, voided );
extern int tedCopyAsLink( EditDocument * ed,
const DocumentSelection * ds,
int asRef,
int asPageref,
const char * file,
const char * markName,
int markSize );
extern void tedPrimaryLost( APP_WIDGET w,
void * voided,
APP_EVENT * clrEvent );
extern InsertedObject * tedObjectMakeBitmapObject(
EditDocument * ed,
BufferItem * bi,
AppBitmapImage * abi );
extern int tedGetObjectSelection( TedDocument * td,
DocumentPosition * dpObject,
InsertedObject ** pIo );
extern void tedSetObjectWindows(EditDocument * ed,
const PositionGeometry * pg,
const InsertedObject * io,
int ox,
int oy );
extern void tedMoveObjectWindows( EditDocument * ed );
extern int tedResizeObject( EditDocument * ed,
const DocumentPosition * dpObj,
const PositionGeometry * pgObj );
extern int tedReopenObject( BufferDocument * bd,
BufferItem * bi,
TextParticule * tp,
AppColors * ac,
DocumentFontList * dfl,
AppDrawingData * add );
extern int tedSaveObjectPicture( AppBitmapImage * abiTo,
InsertedObject * io );
extern void tedExposeSelection( const EditDocument * ed,
const DocumentSelection * ds,
int scrolledX,
int scrolledY );
extern void tedPositionGeometry( PositionGeometry * pg,
const DocumentPosition * dp,
const AppDrawingData * add );
extern void tedSelectionGeometry( SelectionGeometry * sg,
const DocumentSelection * ds,
const BufferDocument * bd,
const AppDrawingData * add );
extern void tedDrawRectangle( APP_WIDGET w,
EditDocument * ed,
DocumentRectangle * drClip,
int ox,
int oy );
extern void tedDocHorizontalScrollbarCallback( APP_WIDGET w,
void * voided,
void * voidscbs );
extern void tedDocVerticalScrollbarCallback( APP_WIDGET w,
void * voided,
void * voidscbs );
extern int tedFinishDocumentSetup( EditApplication * ea,
EditDocument * ed );
extern void tedDocFormatCopyRul( APP_WIDGET fontsOption,
void * voided,
void * voidpbcbs );
extern void tedDocFormatPasteRul( APP_WIDGET fontsOption,
void * voided,
void * voidpbcbs );
extern int tedLayoutDocument( void * privateData,
int format,
AppDrawingData * add,
const DocumentGeometry * defDg );
extern int tedMakeDocumentWidget( EditApplication * ea,
EditDocument * ed );
extern int tedChangeParticuleAttribute( AppDrawingData * add,
TextParticule * tp,
DocumentFontList * dfl,
const PropertyMask * updMask,
TextAttribute taNew );
extern int tedInsertTable( EditDocument * ed,
int rows,
int columns );
extern int tedInsertColumnInTable( EditDocument * ed );
extern int tedAppendColumnToTable( EditDocument * ed );
extern int tedInsertRowInTable( EditDocument * ed );
extern int tedAppendRowToTable( EditDocument * ed );
extern void tedDocTableSelectTable( APP_WIDGET option,
void * voided,
void * voidpbcbs );
extern void tedDocTableSelectRow( APP_WIDGET option,
void * voided,
void * voidpbcbs );
extern void tedDocTableSelectColumn( APP_WIDGET option,
void * voided,
void * voidpbcbs );
extern void tedDocToolInsertSymbol( APP_WIDGET symbolOption,
void * voided,
void * voidcbs );
extern void tedAppSetTableProperties( EditApplication * ea,
const TableRectangle * tr,
const RowProperties * rp );
extern int tedGetTableRectangle( TableRectangle * tr,
const DocumentSelection * ds );
extern void tedAdaptFormatToolToDocument( EditDocument * ed );
extern void tedAppSetTableSelection( EditDocument * ed,
const TableRectangle * tr );
extern void tedDocTableSelectTableRectangle( EditDocument * ed,
const TableRectangle * tr );
extern void tedChangeTableLayout( EditDocument * ed,
BufferItem * sectBi,
const RowProperties * rp,
int rowHeightAlso,
int row0,
int row1 );
extern void tedDocTableDrawGrid( APP_WIDGET option,
void * voided,
void * voidcbs );
extern void tedMergeParagraphsInSelection( EditDocument * ed );
extern int tedDeleteRowsFromTable( EditDocument * ed,
int delRow0,
int delRow1 );
extern int tedDeleteColumnsFromRows( EditDocument * ed,
int delRow0,
int delRow1,
int delCol0,
int delCol1 );
extern int tedRunPropertyDialog( EditDocument * ed,
const DocumentStatistics * ds,
APP_WIDGET option,
const char * pixmapName );
extern int tedBorderThick( int * pWide,
const BorderProperties * bp,
const AppDrawingData * add );
extern int tedSetHyperlink( EditDocument * ed,
const char * file,
const char * mark,
int asRef,
int asPageref );
extern int tedSetBookmark( EditDocument * ed,
const char * mark );
extern int tedRemoveHyperlink( EditDocument * ed );
extern int tedRemoveBookmark( EditDocument * ed );
extern int tedCopyBookmarkAsLink( EditDocument * ed,
int asRef,
int asPageref,
const char * link );
extern void tedRunLinkDialog( EditApplication * ea,
EditDocument * ed,
APP_WIDGET option,
const char * fileName,
int fileSize,
const char * markName,
int markSize );
extern void tedRunBookmarkDialog( EditApplication * ea,
EditDocument * ed,
APP_WIDGET option,
int nameProposed,
const char * markName,
int markSize );
extern int tedGoToBookmark( EditDocument * ed,
const char * markName,
int markSize );
extern int tedSaveDocument( const void * privateData,
int format,
const char * applicationId,
const char * documentTitle,
const char * filename );
extern void * tedMakePrivateData( void );
extern void tedMakeDocumentReadonly( EditDocument * ed );
extern int tedFollowLink( APP_WIDGET relative,
APP_WIDGET option,
EditDocument * edFrom,
const char * fileName,
int fileSize,
const char * markName,
int markSize );
extern int tedSelectWholeParagraph( EditApplication * ea,
int direction );
extern int tedSelectWholeSection( EditApplication * ea,
int direction );
extern int tedDeleteCurrentParagraph( EditApplication * ea );
extern int tedDeleteCurrentSection( EditApplication * ea );
extern int tedInsertParagraph( EditApplication * ea,
int after );
extern int tedInsertSection( EditApplication * ea,
int after );
extern int tedGetParaLineHeight( int * pLineHeight,
EditDocument * ed );
extern void tedShowFormatTool( APP_WIDGET toolOption,
EditApplication * ea,
const char * widgetName,
const char * pixmapName );
extern void tedFormatToolAdaptToSelection( AppInspector * ai,
BufferDocument * bd,
const DocumentSelection * ds,
const SelectionGeometry * sg,
int fileReadonly );
extern int tedNewDocument( EditApplication * ea,
EditDocument * ed,
const char * filename );
extern int tedPrintDocument( FILE * f,
const PrintJob * pj,
const PrintGeometry * pg,
int firstPage,
int lastPage );
extern void tedFreeDocument( void * voidtd,
int format,
AppDrawingData * add );
extern void tedRedoDocumentLayout( EditDocument * ed );
extern void tedFormatShowPagePage( EditApplication * ea );
extern void tedSetPageLayout( EditApplication * ea,
const DocumentGeometry * dg,
const PropertyMask * setMask,
int whileDocument );
extern int tedSetDocumentProperties(
EditApplication * ea,
const DocumentProperties * dpNew,
const PropertyMask * updMask );
extern int tedChangeCurrentNote(
EditApplication * ea,
int extItKind );
extern APP_EVENT_HANDLER( tedKeyPressed, w, voided, keyEvent );
extern APP_EVENT_HANDLER( tedMouseButtonPressed, w, voided, downEvent );
extern void tedHideObjectWindows( EditDocument * ed );
extern int tedAppChangeSectionProperties(
EditApplication * ea,
const PropertyMask * spUpdMask,
const SectionProperties * spNew );
extern int tedAppChangeParagraphProperties(
EditApplication * ea,
const PropertyMask * ppUpdMask,
const ParagraphProperties * ppNew );
extern void tedAppDeleteHeaderFooter( EditApplication * ea,
int which );
extern void tedAppEditHeaderFooter( EditApplication * ea,
APP_WIDGET relative,
APP_WIDGET option,
int which );
extern int tedGetSelection( DocumentSelection * ds,
SelectionGeometry * sg,
TedDocument * td );
extern void tedFillBookmarkList( APP_WIDGET list,
DocumentFieldList * dfl );
extern int tedTextWidth( const AppPhysicalFont * apf,
const AppDrawingData * add,
const unsigned char * s,
int len );
extern int tedFindRootForPosition( ExternalItem ** pEi,
BufferItem ** pRootBi,
BufferItem ** pBodySectBi,
int * pSectNr,
int * pPage,
EditDocument * ed,
int docX,
int docY );
extern int tedDetermineDefaultCodepage( TedAppResources * tar );
extern int tedReplaceSelectionWithBitmapImage( EditDocument * ed,
AppBitmapImage * abi );
extern void tedAppEditNote( EditApplication * ea );
extern void tedAppGotoNoteRef( EditApplication * ea );
extern int tedSetIBarSelection( EditDocument * ed,
BufferItem * bi,
int stroff,
int * pScrolledX,
int * pScrolledY );
# endif /* TED_APP_H */
|