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 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921
|
# include <appFrame.h>
# include <appImage.h>
# include <X11/Intrinsic.h>
# include <appGeo.h>
# include <appDraw.h>
# include "docBuf.h"
# include <sioMemory.h>
/************************************************************************/
/* */
/* Private data for a document. */
/* */
/************************************************************************/
typedef struct TedDocument
{
BufferDocument * tdDocument;
TextAttribute tdCurrentTextAttribute;
int tdCurrentPhysicalFont;
BufferSelection tdSelection;
DocumentRectangle tdSelectedRectangle;
Widget tdCopyWidget;
Widget tdCutWidget;
Widget tdPasteWidget;
Widget tdInsertMenu;
Widget tdInsertMenuButton;
Widget tdInsPictOption;
Widget tdInsFileOption;
Widget tdInsSymbolWidget;
Widget tdInsHyperlinkWidget;
Widget tdInsBookmarkWidget;
Widget tdInsInsertTableWidget;
Widget tdTableMenu;
Widget tdTableMenuButton;
Widget tdTabInsertTableOption;
Widget tdTabAddRowOption;
Widget tdTabAddColumnOption;
Widget tdFormatMenu;
Widget tdFormatMenuButton;
Widget tdFormatOneParaOption;
Widget tdSelectTableWidget;
Widget tdSelectRowWidget;
Widget tdSelectColumnWidget;
Widget tdDrawTableGridWidgetWidget;
Widget tdFontMenu;
Widget tdFontMenuButton;
Widget tdFontBoldOption;
Widget tdFontItalicOption;
Widget tdFontUnderlinedOption;
Widget tdFontSuperscriptOption;
Widget tdFontSubscriptOption;
Widget tdToolsMenu;
Widget tdToolsMenuButton;
XColor tdSelColor;
XColor tdXSelColor;
XColor tdFieldColor;
XColor tdTableColor;
int tdVisibleSelectionCopied;
int tdCanReplaceSelection;
int tdCopiedSelectionClosed;
MemoryBuffer tdCopiedSelection;
MemoryBuffer tdCopiedFont;
MemoryBuffer tdCopiedRuler;
AppBitmapImage tdCopiedImage;
XtIntervalId tdHideIBarId;
XtIntervalId tdShowIBarId;
Window tdObjectWindow;
Window tdObjectBottomWindow;
Window tdObjectRightWindow;
Window tdObjectCornerWindow;
int tdObjectSelected;
int tdDrawTableGrid;
} TedDocument;
/************************************************************************/
/* */
/* The different resources needed for drawing. */
/* (Just to reduce the number of parameters to the drawing routines) */
/* */
/************************************************************************/
typedef struct DrawingState
{
int dsLinkPixelSet;
int dsPhysicalFont;
} DrawingState;
typedef struct DrawingContext
{
Window dcWindow;
GC dcGc;
Pixel dcForePixel;
Pixel dcLinkPixel;
Pixel dcBackPixel;
Pixel dcTablePixel;
int dcOx;
int dcOy;
AppDrawingData * dcDrawingData;
int dcDrawTableGrid;
int (*dcDrawTextLine)(
const BufferItem * bi,
int line,
TextLine * tl,
const BufferSelection * bs,
const DocumentRectangle * drClip,
const FormattingFrame * ff,
DrawingState * ds,
const struct DrawingContext * dc );
int dcDrawTableBorders;
} DrawingContext;
# define LINEDISTFAC 7
/************************************************************************/
/* */
/* Shared resources. */
/* */
/************************************************************************/
extern void * TED_FormatTool;
extern EditDocument * TED_ManualDocument;
extern const int TedPrimaryTextTargetCount;
extern AppDocSelectionTargetType TedPrimaryTextTargets[];
extern const int TedPrimaryPictureTargetCount;
extern AppDocSelectionTargetType TedPrimaryPictureTargets[];
extern const int TedRulerTargetCount;
extern AppDocSelectionTargetType TedRulerTargets[];
/************************************************************************/
/* */
/* Drawing functionality. */
/* */
/************************************************************************/
extern int tedDrawIBar( const BufferPosition * bp,
int ox,
int oy,
Display * display,
Window win,
GC gc );
extern int tedExposeIBar( const EditDocument * ed,
const BufferPosition * bp );
/************************************************************************/
/* */
/* Geometry calculations. */
/* */
/************************************************************************/
extern int tedLayoutItem( BufferItem * bi,
BufferDocument * bd,
AppDrawingData * add,
int y,
int * pY,
int * pLastY );
extern int tedLayoutHeaderItem( BufferItem * bi,
BufferDocument * bd,
AppDrawingData * add,
int y,
int * pY,
int * pLastY );
extern int tedFindPosition( BufferDocument * bd,
const AppDrawingData * add,
int x,
int y,
TextParticule ** pTp,
TextLine ** pTl,
BufferPosition * bp );
extern int tedRecalculateParaLayout( BufferItem * bi,
BufferDocument * bd,
AppDrawingData * add,
int line,
int yShift,
int stroffShift,
int upto,
int refY1,
DocumentRectangle * drChanged );
extern int tedCalculateX( const BufferItem * bi,
const TextParticule * tp,
const AppDrawingData * add,
int stroff );
extern void tedDrawingInput( Widget w,
XtPointer voided,
XtPointer voidcbs );
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 void tedSelectionInput( Widget w,
void * voided,
XEvent * event,
Boolean * pRefused );
extern void tedReplaceSelection( EditDocument * ed,
const unsigned char * addedText,
int addedLength );
extern int tedFirstPosition( const AppDrawingData * add,
BufferDocument * bd,
BufferPosition * bp );
extern int tedLastPosition( const AppDrawingData * add,
BufferDocument * bd,
BufferPosition * bp );
extern int tedPrevPosition( const AppDrawingData * add,
BufferPosition * bp,
int lastOne );
extern int tedNextPosition( const AppDrawingData * add,
BufferPosition * bp );
extern int tedBeginOfLine( const AppDrawingData * add,
BufferPosition * bp );
extern int tedEndOfLine( const AppDrawingData * add,
BufferPosition * bp );
extern int tedNextLine( const AppDrawingData * add,
BufferPosition * bp );
extern int tedPrevLine( const AppDrawingData * add,
BufferPosition * bp );
extern int tedPageUp( BufferPosition * bp,
BufferDocument * bd,
const AppDrawingData * add,
int pageHeight );
extern int tedPageDown( BufferPosition * bp,
BufferDocument * bd,
const AppDrawingData * add,
int docHeight,
int pageHeight );
extern void tedObserveFocus( Widget w,
void * voided,
XEvent * event,
Boolean * pRefused );
extern void tedSplitParagraph( EditDocument * ed,
int onNewPage );
extern void tedSetTab( Widget w,
EditDocument * ed );
extern int tedChangeSelectionProperties(
EditDocument * ed,
unsigned int textUpdMask,
TextAttribute taNew,
unsigned int paraUpdMask,
const ParagraphProperties * ppNew );
extern void tedRedrawRectangle( Widget w,
TedDocument * td,
DocumentRectangle * drClip,
AppDrawingData * add,
AppColors * ac,
int ox,
int oy,
Pixel selPixel,
Pixel linkFore,
Pixel tableFrame,
Window win,
GC gc );
extern void tedCalculateSelectedLines( TedDocument * td );
extern void tedAppShowPageTool( Widget pageOption,
XtPointer voidea,
XtPointer voidcbs );
extern void tedDocToolFind( Widget findOption,
void * voided,
XtPointer voidcbs );
extern void tedDocToolSpell( Widget spellOption,
XtPointer voided,
XtPointer voidcbs );
extern int tedIncludePlainDocument( Widget w,
EditDocument * ed,
BufferDocument * bdFrom );
extern int tedIncludeRtfDocument( Widget w,
EditDocument * ed,
BufferDocument * bdFrom );
extern int tedGetDocumentAttributeString( char * scratch,
TedDocument * td );
extern int tedGetDocumentAttributes( TedDocument * td,
char ** pFamilyName,
int * pPsFamilyNumber,
unsigned int * pUpdMask,
TextAttribute * pTaNew );
extern void tedGetSelectionAttributes( TedDocument * td,
char ** pFamilyName,
int * pPsFamilyNumber,
unsigned int * pUpdMask,
TextAttribute * pTaNew );
extern void tedGetPositionAttributes( TedDocument * td,
const BufferPosition * bp,
char ** pFamilyName,
int * pPsFamilyNumber,
unsigned int * pUpdMask,
TextAttribute * pTaNew );
extern void tedDocCopy( EditDocument * ed,
XEvent * event );
extern void tedDocCut( EditDocument * ed,
XEvent * event );
extern void tedDocSelAll( EditDocument * ed,
XEvent * event );
extern void tedSetSelection( EditDocument * ed,
TedDocument * td,
BufferSelection * bs );
extern void tedAppReplaceSelection( EditDocument * ed,
const unsigned char * word,
int len );
extern void tedExposeHandler( Widget w,
void * voided,
XEvent * event,
Boolean * pRefused );
extern void tedSetSelectedPosition( EditDocument * ed,
TedDocument * td,
BufferPosition * bp,
int * pScrolledX,
int * pScrolledY );
extern int tedBeginSelection( EditDocument * ed,
TedDocument * td,
BufferPosition * newBegin,
int x,
int y );
extern void tedShowFontsTool( Widget fontsOption,
EditApplication * ea,
XtPointer 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,
const BufferPosition * bpAnchor,
int mouseX,
int mouseY );
extern int tedExtendSelectionToPosition(EditDocument * ed,
const BufferPosition * bpAnchor,
const BufferPosition * bpFound );
extern void tedScrollToPosition( EditDocument * ed,
const BufferPosition * bp,
int * pScrolledX,
int * pScrolledY );
extern void tedScrollToSelection( EditDocument * ed,
const BufferSelection * bs,
int * pScrolledX,
int * pScrolledY );
extern void tedDocFontBold( Widget boldOption,
XtPointer voided,
XtPointer voidcbs );
extern void tedDocFontItalic( Widget italicOption,
XtPointer voided,
XtPointer voidcbs );
extern void tedDocFontUnderlined( Widget underlineOption,
XtPointer voided,
XtPointer voidcbs );
extern void tedDocFontSupersub( Widget option,
XtPointer voided,
XtPointer voidcbs );
extern int tedLayoutDocument( EditDocument * ed,
BufferDocument * bd );
extern void tedSetRectangles( EditDocument * ed,
DocumentGeometry * dg,
double xfac,
double yfac );
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 void tedAdaptFontIndicatorsToValues( EditDocument * ed,
char * familyName,
int psFamilyNumber,
unsigned int updMask,
TextAttribute taNew );
extern void tedDocSetTopRuler( EditDocument * ed,
int documentWidth,
int topRulerHeight,
double horPixPerMM,
int unitInt,
Display * display,
int screen );
extern void tedDocAdaptHorizontalRuler( EditDocument * ed,
BufferItem * bi,
int andExpose );
extern void tedAdaptToolsToPosition( EditDocument * ed,
int exposeRuler );
extern void tedEditApplyItemFormat( EditDocument * ed,
BufferItem * bi );
extern void tedApplyItemFormat( BufferItem * bi,
BufferDocument * bd,
AppDrawingData * add,
DocumentRectangle * drChanged );
extern void tedRedrawIBar( TedDocument * td,
int ox,
int oy,
Display * display,
Window win,
GC gc );
extern void tedUndrawIBar( const EditDocument * ed );
extern void tedStartCursorBlink( XtAppContext context,
EditDocument * ed );
extern void tedStopCursorBlink( XtAppContext context,
EditDocument * ed );
extern int tedOpenItemObjects( BufferItem * bi,
AppColors * ac,
DocumentFontList * dfl,
AppDrawingData * add,
Window win,
GC gc );
extern int tedDrawObject( const BufferItem * bi,
TextParticule * tp,
int y,
const DrawingContext * dc );
extern void tedCloseObject( BufferDocument * bd,
BufferItem * bi,
TextParticule * tp,
void * voiddisplay );
extern void tedDocInsertPicture( Widget option,
XtPointer voided,
XtPointer voidpbcs );
extern void tedDocInsertFile( Widget option,
XtPointer voided,
XtPointer voidpbcs );
extern void tedDocInsertLink( Widget option,
XtPointer voided,
XtPointer voidpbcs );
extern void tedDocInsertBookmark( Widget option,
XtPointer voided,
XtPointer voidpbcs );
extern void tedDocFormatOnePara( Widget option,
XtPointer voided,
XtPointer voidpbcs );
extern int tedInsertNewObject( Widget w,
InsertedObject * io,
EditDocument * ed );
extern void tedPastePrimaryRtf( Widget w,
EditDocument * ed,
XSelectionEvent * selEvent );
extern void tedPastePrimaryString( Widget w,
EditDocument * ed,
XSelectionEvent * selEvent );
extern void tedPasteRulerTed( Widget w,
EditDocument * ed,
XSelectionEvent * selEvent );
extern void tedPasteFontTed( Widget w,
EditDocument * ed,
XSelectionEvent * selEvent );
extern int tedCopyPrimaryRtf( Widget w,
EditDocument * ed,
Window requestor,
Atom property,
Atom target );
extern int tedCopyPrimaryString(Widget w,
EditDocument * ed,
Window requestor,
Atom property,
Atom target );
extern int tedCopyPrimaryPng(Widget w,
EditDocument * ed,
Window requestor,
Atom property,
Atom target );
extern int tedCopyPrimaryPixmap(Widget w,
EditDocument * ed,
Window requestor,
Atom property,
Atom target );
extern int tedCopyFontTed( Widget w,
EditDocument * ed,
Window requestor,
Atom property,
Atom target );
extern int tedCopyRulerTed( Widget w,
EditDocument * ed,
Window requestor,
Atom property,
Atom target );
extern int tedCopyAsLink( EditDocument * ed,
const BufferItem * bi,
const BufferSelection * bs,
const char * file,
const char * markName,
int markSize,
XEvent * event );
extern void tedPrimaryLost( Widget w,
EditDocument * ed,
XSelectionClearEvent * clrEvent );
extern int tedObjectInsertBitmap( EditDocument * ed,
AppBitmapImage * abi );
extern void tedPastePrimaryPixmap( Widget w,
EditDocument * ed,
XSelectionEvent * selEvent );
extern void tedPastePrimaryPng( Widget w,
EditDocument * ed,
XSelectionEvent * selEvent );
extern int tedGetObjectSelection( TedDocument * td,
BufferItem ** pBi,
TextLine ** pTl,
TextParticule ** pTp,
InsertedObject ** pIo );
extern void tedSetObjectWindows( TedDocument * td,
BufferItem * bi,
TextLine * tl,
TextParticule * tp,
int ox,
int oy,
Display * display,
Window win );
extern void tedMoveObjectWindows( Widget w,
EditDocument * ed );
extern int tedResizeObject( EditDocument * ed,
BufferItem * bi,
int line,
TextParticule * tp,
InsertedObject * io,
int newWidth,
int newHeight,
int ox,
int oy );
extern int tedReopenObject( BufferDocument * bd,
BufferItem * bi,
TextParticule * tp,
AppColors * ac,
DocumentFontList * dfl,
AppDrawingData * add,
Window win,
GC gc );
extern int tedSaveObjectPicture( AppBitmapImage * abiTo,
InsertedObject * io );
extern void tedExposeSelection( const EditDocument * ed,
const BufferSelection * bs,
int scrolledX,
int scrolledY );
extern void tedPositionCoordinates( BufferPosition * bp,
const AppDrawingData * add );
extern void tedSelectionCoordinates( BufferSelection * bs,
const AppDrawingData * add );
extern void tedSelectionRectangle( DocumentRectangle * drClip,
const AppDrawingData * add,
const BufferSelection * bs );
extern void tedDrawingExpose( Widget w,
XtPointer voided,
XtPointer voidcbs );
extern void tedDrawRectangle( Widget w,
EditDocument * ed,
DocumentRectangle * drClip,
int ox,
int oy,
Window win,
GC gc );
extern void tedDocHorizontalScrollbarCallback( Widget w,
XtPointer voided,
XtPointer voidscbs );
extern void tedDocVerticalScrollbarCallback( Widget w,
XtPointer voided,
XtPointer voidscbs );
extern int tedFinishDocumentSetup( EditApplication * ea,
EditDocument * ed );
extern void tedDocShowPageTool( Widget pageOption,
XtPointer voided,
XtPointer voidcbs );
extern void tedDocFormatCopyRul( Widget fontsOption,
XtPointer voided,
XtPointer voidpbcbs );
extern void tedDocFormatPasteRul( Widget fontsOption,
XtPointer voided,
XtPointer voidpbcbs );
extern int tedSetupDocument( EditApplication * ea,
EditDocument * ed );
extern int tedMakeDocumentWidget( EditApplication * ea,
EditDocument * ed,
Widget scrollw );
extern int tedChangeParticuleAttribute( AppDrawingData * add,
TextParticule * tp,
DocumentFontList * dfl,
unsigned int updMask,
TextAttribute taNew );
extern int tedInsertTable( Widget w,
EditDocument * ed,
int rows,
int columns );
extern void tedParaScreenGeometry( BufferItem * bi,
const FormattingFrame * ff,
double xfac );
extern int tedInsertRowsInTable( BufferItem * sectBi,
const RowProperties * rp,
EditDocument * ed,
int row,
int rows );
extern void tedParagraphFrame( FormattingFrame * ff,
const AppDrawingData * add,
int bottom,
const BufferItem * bi );
extern int tedInsertColumnInTable( Widget w,
EditDocument * ed );
extern int tedAppendColumnToTable( Widget w,
EditDocument * ed );
extern int tedInsertRowInTable( Widget w,
EditDocument * ed );
extern int tedAppendRowToTable( Widget w,
EditDocument * ed );
extern void tedDocTableSelectTable( Widget option,
XtPointer voided,
XtPointer voidpbcbs );
extern void tedDocTableSelectRow( Widget option,
XtPointer voided,
XtPointer voidpbcbs );
extern void tedDocTableSelectColumn( Widget option,
XtPointer voided,
XtPointer voidpbcbs );
extern void tedDocToolInsertSymbol( Widget symbolOption,
XtPointer voided,
XtPointer voidcbs );
extern int tedSplitParaContents( BufferItem ** pNewBi,
DocumentRectangle * drChanged,
EditDocument * ed,
int splitLevel,
int onNewPage );
extern int tedEditSetIBarSelection( EditDocument * ed,
BufferItem * bi,
int * pScrolledX,
int * pScrolledY,
int stroff );
extern void tedSetTableProperties( EditApplication * ea,
int col0Set,
int col1Set,
int row0Set,
int row1Set,
const RowProperties * rp );
extern int tedGetTableRectangle( const BufferSelection * bs,
BufferItem ** pSectBi,
int * pCol0,
int * pCol1,
int * pCol11,
int * pRow00,
int * pRow0,
int * pRow1,
int * pRow11 );
extern void tedAdaptFormatToolToDocument( void * voidtft,
EditDocument * ed );
extern void tedAppSetTableSelection( EditDocument * ed,
int col0Set,
int col1Set,
int row0Set,
int row1Set );
extern void tedDocTableSelectTableRectangle( EditDocument * ed,
TedDocument * td,
BufferItem * sectBi,
int col0,
int col1,
int row0,
int row1 );
extern void tedChangeTableLayout( EditDocument * ed,
BufferItem * bi,
BufferItem * sectBi,
const RowProperties * rp,
int rowHeightAlso,
int row0,
int row1 );
extern void tedDocTableDrawGrid( Widget option,
XtPointer voided,
XtPointer 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 void tedExposeRectangle( const EditDocument * ed,
const DocumentRectangle * drChanged,
int scrolledX,
int scrolledY );
extern int tedRunPropertyDialog( EditApplication * ea,
EditDocument * ed,
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 );
extern int tedSetBookmark( EditDocument * ed,
const char * mark );
extern int tedRemoveHyperlink( EditDocument * ed );
extern int tedRemoveBookmark( EditDocument * ed );
extern int tedCopyBookmarkAsLink( EditDocument * ed,
const char * link,
XEvent * event );
extern void tedRunLinkDialog( EditApplication * ea,
EditDocument * ed,
Widget option,
const char * fileName,
int fileSize,
const char * markName,
int markSize );
extern void tedRunBookmarkDialog( EditApplication * ea,
EditDocument * ed,
Widget option,
int nameProposed,
const char * markName,
int markSize );
extern int tedGoToBookmark( EditDocument * ed,
const char * markName,
int markSize );
extern int tedSaveDocument( const EditApplication * ea,
const EditDocument * ed,
int format,
const char * filename );
extern int tedSetPrivateData( EditApplication * ea,
EditDocument * ed );
extern void tedMakeDocumentReadonly( EditDocument * ed );
extern int tedFollowLink( Widget relative,
Widget option,
EditDocument * edFrom,
const char * fileName,
int fileSize,
const char * markName,
int markSize );
extern int tedSelectWholeParagraph( EditApplication * ea,
int direction );
extern int tedDeleteCurrentParagraph( EditApplication * ea );
extern int tedInsertParagraph( EditApplication * ea,
int after );
extern int tedGetParaLineHeight( int * pLineHeight,
EditDocument * ed );
extern void tedShowFormatTool( Widget toolOption,
EditApplication * ea,
const char * widgetName,
const char * pixmapName );
extern void tedFormatToolAdaptToSelection( void * voidtft,
const BufferSelection * bs,
int fileReadonly,
const DocumentGeometry * dg );
extern void tedEnableFormatTool( void * voidtft,
int enabled );
extern int tedNewDocument( EditApplication * ea,
EditDocument * ed,
const char * filename );
extern int tedUpdateParaProperties( unsigned int * pChangedMask,
const AppDrawingData * add,
BufferItem * bi,
unsigned int updMask,
const ParagraphProperties * newPP );
|