36class KWPictureFrameSet;
37class KWMailMergeDataBase;
41class KoStyleCollection;
46#define KoParagStyle KoParagStyle
54class KoCommandHistory;
56class KoVariableFormatCollection;
57class KWVariableCollection;
60class KoStyleCollection;
63class KWTableTemplateCollection;
69class KoTextBookmarkList;
70class KoPictureCollection;
81 class DocumentWrapper;
87#include "KWAnchorPos.h"
90#include <KoDocument.h>
91#include <KoTextZoomHandler.h>
92#include <KoPictureKey.h>
93#include <KoStyleCollection.h>
98#include <tqvaluevector.h>
104class KWDocument :
public KoDocument,
public KoTextZoomHandler
108 TQ_PROPERTY(
double ptColumnWidth READ ptColumnWidth )
109 TQ_PROPERTY(
double ptColumnSpacing READ ptColumnSpacing )
110 TQ_PROPERTY(
double gridX READ gridX WRITE setGridX )
111 TQ_PROPERTY(
double gridY READ gridY WRITE setGridY )
112 TQ_PROPERTY(
bool snapToGrid READ snapToGrid WRITE setSnapToGrid )
113 TQ_PROPERTY(
double indentValue READ indentValue WRITE setIndentValue )
114 TQ_PROPERTY(
int nbPagePerRow READ nbPagePerRow WRITE setNbPagePerRow )
115 TQ_PROPERTY(
double defaultColumnSpacing READ defaultColumnSpacing WRITE setDefaultColumnSpacing )
116 TQ_PROPERTY(
int maxRecentFiles READ maxRecentFiles )
117 TQ_PROPERTY( TQString globalLanguage READ globalLanguage WRITE setGlobalLanguage )
118 TQ_PROPERTY(
bool globalHyphenation READ globalHyphenation WRITE setGlobalHyphenation )
119 TQ_PROPERTY(
bool insertDirectCursor READ insertDirectCursor WRITE setInsertDirectCursor )
120 TQ_PROPERTY( TQStringList personalExpressionPath READ personalExpressionPath WRITE setPersonalExpressionPath )
121 TQ_PROPERTY(
bool viewFormattingBreak READ viewFormattingBreak WRITE setViewFormattingBreak )
122 TQ_PROPERTY(
bool viewFormattingTabs READ viewFormattingTabs WRITE setViewFormattingTabs )
123 TQ_PROPERTY(
bool viewFormattingSpace READ viewFormattingSpace WRITE setViewFormattingSpace )
124 TQ_PROPERTY(
bool viewFormattingEndParag READ viewFormattingEndParag WRITE setViewFormattingEndParag )
125 TQ_PROPERTY(
bool cursorInProtectedArea READ cursorInProtectedArea WRITE setCursorInProtectedArea )
126 TQ_PROPERTY(
bool pgUpDownMovesCaret READ pgUpDownMovesCaret WRITE setPgUpDownMovesCaret )
127 TQ_PROPERTY(
bool allowAutoFormat READ allowAutoFormat WRITE setAllowAutoFormat )
128 TQ_PROPERTY(
int undoRedoLimit READ undoRedoLimit WRITE setUndoRedoLimit )
131 friend class KWOasisLoader;
134 KWDocument( TQWidget *parentWidget = 0,
const char *widname = 0, TQObject* parent = 0,
const char* name = 0,
bool singleViewMode =
false );
137 enum ProcessingType {WP = 0, DTP = 1};
139 static const int CURRENT_SYNTAX_VERSION;
142 virtual bool initDoc(InitDocFlags flags, TQWidget* parentWidget=0);
144 virtual bool loadOasis(
const TQDomDocument& doc, KoOasisStyles& oasisStyles,
const TQDomDocument& settings, KoStore* store );
155 enum { STYLE_FRAME_AUTO = 20, STYLE_FRAME_USER,
156 STYLE_TABLE_CELL_AUTO, STYLE_TABLE_CELL_USER,
157 STYLE_TABLE, STYLE_TABLE_COLUMN, STYLE_TABLE_ROW };
159 virtual bool saveOasis( KoStore* store, KoXmlWriter* manifestWriter );
161 virtual int supportedSpecialFormats()
const;
163 enum SaveFlag { SaveAll, SaveSelected };
168 TQDragObject* dragSelected(
const TQValueList<KWFrameView*> &selectedFrames);
172 TQDragObject* dragSelected( TQWidget *parent,
KWTextFrameSet* fs );
174 virtual bool loadXML( TQIODevice *,
const TQDomDocument & dom );
175 virtual bool loadChildren( KoStore *store );
176 virtual TQDomDocument saveXML();
177 void processPictureRequests();
178 void processAnchorRequests();
179 bool processFootNoteRequests();
181 int syntaxVersion( )
const {
return m_syntaxVersion; }
184 void progressItemLoaded();
189 virtual void paintContent( TQPainter& painter,
const TQRect& rect,
bool transparent =
false,
double zoomX = 1.0,
double zoomY = 1.0 );
191 virtual TQPixmap generatePreview(
const TQSize &size );
197 void createEmptyRegion(
const TQRect & crect, TQRegion & emptyRegion,
KWViewMode * viewMode );
202 void eraseEmptySpace( TQPainter * painter,
const TQRegion & emptySpaceRegion,
const TQBrush & brush );
204 virtual void setEmpty();
206 virtual void addView( KoView *view );
207 virtual void removeView( KoView *view );
209 virtual void addShell( KoMainWindow *shell );
211 KWPartFrameSet* insertObject(
const KoRect& rect, KoDocumentEntry& e, TQWidget* parentWidget );
215 KWDocumentChild* createChildDoc(
const KoRect& rect, KoDocument* childDoc );
217 void setPageLayout(
const KoPageLayout& layout,
const KoColumns& cl,
const KoKWHeaderFooter& hf,
bool updateViews =
true );
219 void getPageLayout( KoPageLayout& layout, KoColumns& cl, KoKWHeaderFooter& hf );
224 {
return m_lstFrameSet.at( num ); }
227 KWFrameSet * frameSetByName(
const TQString & name );
230 unsigned int frameSetCount()
const
231 {
return m_lstFrameSet.count(); }
234 TQString generateFramesetName(
const TQString & templateName );
237 TQPtrListIterator<KWFrameSet> framesetsIterator()
const {
return TQPtrListIterator<KWFrameSet>(m_lstFrameSet); }
239 TQValueList<KoTextObject *> visibleTextObjects(
KWViewMode *viewmode)
const;
242 void addFrameSet(
KWFrameSet *f,
bool finalize =
true );
249 void deleteFrame(
KWFrame * frame );
252 unsigned int paperHeight(
int pageNum)
const;
254 unsigned int paperWidth(
int pageNum)
const;
256 unsigned int pageTop(
int pgNum )
const;
257 double ptColumnWidth()
const;
258 double ptColumnSpacing()
const {
return m_pageColumns.ptColumnSpacing; }
259 double ptFootnoteBodySpacing()
const {
return m_pageHeaderFooter.ptFootNoteBodySpacing; }
261 unsigned int numColumns()
const {
return m_pageColumns.columns; }
263 void repaintAllViews(
bool erase =
false );
267 void repaintAllViewsExcept( KWView *view,
bool erase =
false );
273 void delayedRepaintAllViews();
278 void delayedRecalcFrames(
int fromPage );
283 TQPixmap* doubleBufferPixmap(
const TQSize& );
289 void maybeDeleteDoubleBufferPixmap();
295 void frameChanged(
KWFrame * frame );
296 void framesChanged(
const TQPtrList<KWFrame> & frames, KWView * view = 0L );
298 TQString uniqueFramesetName(
const TQString& oldName );
304 void pasteFrames( TQDomElement topElem, KMacroCommand * macroCmd,
bool copyFootNote =
false,
bool dontCreateFootNote =
false,
bool selectFrames =
true );
306 void insertEmbedded( KoStore *store, TQDomElement topElem, KMacroCommand * macroCmd,
double offset );
307 void completePasting();
308 void completeOasisPasting();
309 void saveOasisDocumentStyles( KoStore* store, KoGenStyles& mainStyles, KoSavingContext& savingContext, SaveFlag saveFlag,
const TQByteArray& headerFooterContent )
const;
311 KoStyleCollection * styleCollection()
const {
return m_styleColl;}
314 KWTableTemplateCollection * tableTemplateCollection()
const {
return m_tableTemplateColl;}
316 TQFont defaultFont()
const {
return m_defaultFont; }
317 void setDefaultFont(
const TQFont & newFont ) {
318 m_defaultFont = newFont;
325 int pageCount()
const;
331 int startPage()
const;
336 int lastPage()
const;
338 KoPictureCollection *pictureCollection() {
return m_pictureCollection; }
339 KoVariableFormatCollection *variableFormatCollection()
const {
return m_varFormatCollection; }
341 TQValueList<KWView *> getAllViews()
const {
return m_lstViews; }
351 KWPage* insertPage(
int afterPageNum );
362 void afterInsertPage(
int num );
368 TQPtrList<KWFrame> framesToCopyOnNewPage(
int afterPageNum )
const;
373 void removePage(
int num );
378 void afterRemovePages();
385 bool tryRemovingPages();
387 ProcessingType processingType()
const {
return m_processingType; }
388 int frameSetNum(
KWFrameSet* fs ) {
return m_lstFrameSet.findRef( fs ); }
390 void lowerMainFrames(
int pageNum );
391 void lowerMainFrames(
int pageNum,
int lowestZOrder );
394 TQPtrList<KWTextFrameSet> allTextFramesets(
bool onlyReadWrite )
const;
396 int numberOfTextFrameSet(
KWFrameSet* fs,
bool onlyReadWrite );
398 KWFrameSet * textFrameSetFromIndex(
unsigned int num,
bool onlyReadWrite );
402 virtual TQValueList<KoTextDocument *> allTextDocuments()
const;
410 TQPtrList<KWFrame> framesInPage(
int pageNum ,
bool sorted=
true)
const;
417 int maxZOrder(
int pageNum )
const;
419 void updateAllFrames(
int flags = 0xff );
422 double gridX()
const {
return m_gridX; }
423 double gridY()
const {
return m_gridY; }
424 void setGridX(
double gridx);
425 void setGridY(
double gridy) { m_gridY = gridy; }
427 void updateGridButton();
429 bool showGrid()
const {
return m_bShowGrid; }
430 void setShowGrid (
bool grid ) { m_bShowGrid = grid; }
432 bool snapToGrid()
const {
return m_bSnapToGrid; }
433 void setSnapToGrid(
bool b ) { m_bSnapToGrid = b; }
443 void applyStyleChange( KoStyleChangeDefMap changed );
444 void updateAllStyleLists();
445 void updateStyleListOrder(
const TQStringList &list );
447 void updateAllFrameStyleLists();
448 void updateAllTableStyleLists();
450 bool isHeaderVisible()
const {
return m_headerVisible; }
451 bool isFooterVisible()
const {
return m_footerVisible; }
452 void setHeaderVisible(
bool h );
453 void setFooterVisible(
bool f );
454 bool hasEndNotes()
const;
457 void recalcFrames(
int fromPage = 0,
int toPage = -1, uint flags = 0 );
459 KoHFType headerType()
const {
return m_pageHeaderFooter.header; }
460 KoHFType footerType()
const {
return m_pageHeaderFooter.footer; }
461 const KoKWHeaderFooter& headerFooterInfo()
const {
return m_pageHeaderFooter; }
463 void setFrameCoords(
double x,
double y,
double w,
double h );
465 void addCommand( KCommand * cmd );
467 KoCommandHistory * commandHistory()
const {
return m_commandHistory; }
468 KoAutoFormat * autoFormat()
const {
return m_autoFormat; }
479 void addPictureRequest( KWPictureFrameSet *fs );
484 void addAnchorRequest(
const TQString &framesetName,
const KWAnchorPosition &anchorPos );
492 KWFrameSet *loadFrameSet( TQDomElement framesetElem,
bool loadFrames =
true ,
bool loadFootnote =
true);
493 void loadEmbeddedObjects( TQDomElement& word );
494 void saveEmbeddedObjects( TQDomElement& parentElem,
const TQPtrList<KoDocumentChild>& childList );
495 void loadEmbedded(
const TQDomElement &embedded );
497 void recalcVariables(
int type );
499 KWVariableCollection *variableCollection()
const {
return m_varColl; }
501 KWMailMergeDataBase *mailMergeDataBase()
const {
return m_slDataBase; }
502 int mailMergeRecord()
const;
503 void setMailMergeRecord(
int r );
505 bool backgroundSpellCheckEnabled()
const;
506 void enableBackgroundSpellCheck(
bool b );
508 bool canRemovePage(
int num );
517 virtual void setZoomAndResolution(
int zoom,
int dpiX,
int dpiY );
519 void newZoomAndResolution(
bool updateViews,
bool forPrint );
526 TQString viewModeType()
const {
return m_viewModeType; }
531 KWViewMode* layoutViewMode()
const {
return m_layoutViewMode; }
536 void switchViewMode(
const TQString& newViewMode );
540 static TQString getAttribute(TQDomElement &element,
const char *attributeName,
const TQString &defaultValue)
542 return element.attribute( attributeName, defaultValue );
545 static int getAttribute(TQDomElement &element,
const char *attributeName,
int defaultValue)
548 if ( ( value = element.attribute( attributeName ) ) != TQString() )
549 return value.toInt();
554 static double getAttribute(TQDomElement &element,
const char *attributeName,
double defaultValue)
557 if ( ( value = element.attribute( attributeName ) ) != TQString() )
558 return value.toDouble();
564 void printStyleDebug();
573 bool viewFormattingChars()
const {
return m_viewFormattingChars; }
574 void setViewFormattingChars(
bool b) { m_viewFormattingChars=b; }
576 bool viewFormattingEndParag()
const {
return m_viewFormattingEndParag; }
577 void setViewFormattingEndParag(
bool b) { m_viewFormattingEndParag=b; }
579 bool viewFormattingSpace()
const {
return m_viewFormattingSpace; }
580 void setViewFormattingSpace(
bool b) { m_viewFormattingSpace=b; }
582 bool viewFormattingTabs()
const {
return m_viewFormattingTabs; }
583 void setViewFormattingTabs(
bool b) { m_viewFormattingTabs=b; }
585 bool viewFormattingBreak()
const {
return m_viewFormattingBreak; }
586 void setViewFormattingBreak(
bool b) { m_viewFormattingBreak=b; }
589 bool viewFrameBorders()
const {
return m_viewFrameBorders; }
590 void setViewFrameBorders(
bool b );
591 void setShowRuler(
bool ruler){ m_bShowRuler=ruler; }
592 bool showRuler()
const {
return m_bShowRuler; }
594 bool showStatusBar()
const {
return m_bShowStatusBar;}
595 void setShowStatusBar(
bool status ) { m_bShowStatusBar = status;}
597 bool showScrollBar()
const {
return m_bShowScrollBar; }
598 void setShowScrollBar(
bool status ) { m_bShowScrollBar = status;}
600 bool pgUpDownMovesCaret()
const {
return m_pgUpDownMovesCaret; }
601 void setPgUpDownMovesCaret(
bool b ) { m_pgUpDownMovesCaret = b; }
603 bool showdocStruct()
const {
return m_bShowDocStruct;}
604 void setShowDocStruct(
bool b){m_bShowDocStruct=b;}
606 bool allowAutoFormat()
const {
return m_bAllowAutoFormat; }
607 void setAllowAutoFormat(
bool b){ m_bAllowAutoFormat=b; }
609 bool insertDirectCursor()
const {
return m_bInsertDirectCursor; }
610 void setInsertDirectCursor(
bool b);
614 double indentValue()
const {
return m_indent; }
615 void setIndentValue(
double ind) { m_indent=ind; }
617 int nbPagePerRow()
const{
return m_iNbPagePerRow; }
618 void setNbPagePerRow(
int nb) { m_iNbPagePerRow=nb; }
620 int maxRecentFiles()
const {
return m_maxRecentFiles; }
624 double defaultColumnSpacing()
const{
return m_defaultColumnSpacing ;}
625 void setDefaultColumnSpacing(
double val){ m_defaultColumnSpacing=val; }
632 KFormula::Document* formulaDocument(
bool init =
true );
634 void reorganizeGUI();
636 void terminateEditing(
KWFrameSet * frameSet )
637 { emit sig_terminateEditing( frameSet ); }
639 void clearUndoRedoInfos();
641 void refreshDocStructure(FrameSetType);
642 void refreshDocStructure(
int);
644 int typeItemDocStructure(FrameSetType type);
646 void refreshMenuExpression();
648 void refreshMenuCustomVariable();
650 void updateZoomRuler();
653 void setTocPresent(
bool hasToc);
655 bool tocPresent(){
return m_hasTOC;}
657 TQString sectionTitle(
int pageNum )
const;
659 void updateRulerFrameStartEnd();
664 static TQColor resolveTextColor(
const TQColor & col, TQPainter * painter );
665 static TQColor defaultTextColor( TQPainter * painter );
666 static TQColor resolveBgColor(
const TQColor & col, TQPainter * painter = 0 );
667 static TQBrush resolveBgBrush(
const TQBrush & brush, TQPainter * painter = 0 );
668 static TQColor defaultBgColor( TQPainter * painter );
671 virtual DCOPObject* dcopObject();
673 int undoRedoLimit()
const;
674 void setUndoRedoLimit(
int val);
676 void updateContentsSize(){emit newContentsSize();}
678 void refreshGUIButton();
682 void startBackgroundSpellCheck();
683 void reactivateBgSpellChecking();
685 void updateHeaderButton();
686 void updateFooterButton();
688 TQStringList spellCheckIgnoreList()
const {
return m_spellCheckIgnoreList; }
689 void setSpellCheckIgnoreList(
const TQStringList& lst );
690 void addSpellCheckIgnoreWord(
const TQString & );
692 void updateTextFrameSetEdit();
693 void changeFootNoteConfig();
694 void displayFootNoteFieldCode();
697 double tabStopValue()
const {
return m_tabStop; }
698 void setTabStopValue (
double tabStop );
700 void changeBgSpellCheckingState(
bool b );
703 TQString initialFrameSet()
const;
704 int initialCursorParag()
const;
705 int initialCursorIndex()
const;
707 void deleteInitialEditingInfo();
709 bool cursorInProtectedArea()
const;
710 void setCursorInProtectedArea(
bool b );
712 SeparatorLinePos footNoteSeparatorLinePosition()
const {
return m_footNoteSeparatorLinePos;}
713 void setFootNoteSeparatorLinePosition(SeparatorLinePos pos) {m_footNoteSeparatorLinePos = pos;}
715 int footNoteSeparatorLineLength()
const {
return m_iFootNoteSeparatorLineLength;}
716 void setFootNoteSeparatorLineLength(
int length){ m_iFootNoteSeparatorLineLength = length;}
718 double footNoteSeparatorLineWidth()
const {
return m_footNoteSeparatorLineWidth;}
719 void setFootNoteSeparatorLineWidth(
double width){ m_footNoteSeparatorLineWidth=width;}
721 SeparatorLineLineType footNoteSeparatorLineType()
const {
return m_footNoteSeparatorLineType;}
722 void setFootNoteSeparatorLineType( SeparatorLineLineType type) {m_footNoteSeparatorLineType = type;}
724 const KoTextBookmarkList* bookmarkList()
const {
return m_bookmarkList; }
725 void insertBookmark(
const TQString &name, KoTextParag *startparag, KoTextParag *endparag,
int start,
int end );
726 void deleteBookmark(
const TQString &name );
727 void renameBookmark(
const TQString &oldname,
const TQString &newName );
729 const KoTextBookmark * bookmarkByName(
const TQString & name )
const;
730 TQStringList listOfBookmarkName(
KWViewMode * viewMode)
const;
732 void paragraphDeleted( KoTextParag *parag,
KWFrameSet *frm);
733 void paragraphModified(KoTextParag* parag,
int type,
int start,
int length);
735 void initBookmarkList();
736 void loadImagesFromStore( KoStore *store );
737 void loadPictureMap ( TQDomElement& domElement );
739 void testAndCloseAllFrameSetProtectedContent();
740 void updateRulerInProtectContentMode();
742 KoPageLayout pageLayout(
int pageNumber = 0)
const;
744 TQStringList personalExpressionPath()
const {
return m_personalExpressionPath;}
745 void setPersonalExpressionPath(
const TQStringList & );
748 void updateDirectCursorButton();
750 TQString globalLanguage()
const {
return m_globalLanguage; }
751 void setGlobalLanguage(
const TQString & lang ){m_globalLanguage = lang;}
752 void addWordToDictionary(
const TQString & );
754 bool globalHyphenation()
const {
return m_bGlobalHyphenation; }
755 void setGlobalHyphenation (
bool hyphen );
759 void deleteLoadingInfo();
761 KFormula::DocumentWrapper* formulaDocumentWrapper() {
return m_formulaDocumentWrapper; }
765 KWBgSpellCheck* backSpeller()
const {
return m_bgSpellCheck; }
768 bool loadOasisPageLayout(
const TQString& masterPageName, KoOasisContext& context );
774 void pageLayoutChanged(
const KoPageLayout& );
777 void newContentsSize();
782 void mainTextHeightChanged();
785 void numPagesChanged();
787 void docStructureChanged(
int);
790 void sig_refreshMenuCustomVariable();
796 void slotRepaintChanged(
KWFrameSet * frameset );
797 void framesChanged(
const TQValueList<KWFrame*> &frames);
800 void invalidate(
const KWFrameSet *skipThisFrameSet=0);
802 virtual void initEmpty();
805 void slotRecalcFrames();
806 void slotRepaintAllViews();
807 void slotDocumentRestored();
808 void slotCommandExecuted();
809 void slotDocumentInfoModifed();
810 void slotChapterParagraphFormatted( KoTextParag* parag );
811 void saveDialogShown();
813 virtual void openExistingFile(
const TQString& file );
814 virtual void openTemplate(
const TQString& file );
818 void updateFramesChanged();
821 void nextParagraphNeedingCheck();
824 TQString checkSectionTitleInParag( KoTextParag* parag,
KWTextFrameSet*,
int pageNum )
const;
825 KoView* createViewInstance( TQWidget* parent,
const char* name );
827 virtual bool completeLoading( KoStore* store );
828 virtual bool completeSaving( KoStore *store );
830 void loadFrameSets(
const TQDomElement &framesets );
831 void loadStyleTemplates(
const TQDomElement &styles );
832 void saveStyle( KoParagStyle *sty, TQDomElement parentElem );
833 void saveFrameStyle(
KWFrameStyle *sty, TQDomElement parentElem );
834 void saveTableStyle(
KWTableStyle *sty, TQDomElement parentElem );
836 void loadFrameStyleTemplates(
const TQDomElement &styles );
837 void loadDefaultFrameStyleTemplates();
838 void loadTableStyleTemplates(
const TQDomElement &styles );
839 void loadDefaultTableStyleTemplates();
840 void loadDefaultTableTemplates();
841 bool loadMasterPageStyle(
const TQString& masterPageName, KoOasisContext& context );
843 void saveOasisBody( KoXmlWriter& writer, KoSavingContext& context )
const;
844 void saveOasisCustomFied( KoXmlWriter &writer )
const;
846 TQValueList<KoPictureKey> savePictureList();
849 TQDragObject* dragSelectedPrivate( TQWidget *parent,
const TQValueList<KWFrameView*> &selectedFrames,
KWTextFrameSet* fs);
864 bool saveOasisHelper( KoStore* store, KoXmlWriter* manifestWriter, SaveFlag saveFlag,
865 const TQValueList<KWFrameView*> &selectedFrames,
866 TQString* plainText = 0, KoPicture* picture = 0,
KWTextFrameSet* fs = 0 );
868 void saveOasisSettings( KoXmlWriter &settingsWriter )
const;
869 void saveSelectedFrames( KoXmlWriter& bodyWriter,
870 KoSavingContext& savingContext, TQValueList<KoPictureKey>& pictureList,
871 const TQValueList<KWFrameView*> &selectedFrames, TQString* plainText )
const;
874 TQWidget* createCustomDocumentWidget(TQWidget *parent);
880 class FramesChangedHandler {
882 FramesChangedHandler(KWDocument *parent);
887 KWDocument *m_parent;
888 TQValueList<KWFrameSet*> m_frameSets;
893 TQValueList<KWView *> m_lstViews;
895 KoColumns m_pageColumns;
896 KoKWHeaderFooter m_pageHeaderFooter;
898 KoPictureCollection* m_pictureCollection;
900 TQPtrList<KWFrameSet> m_lstFrameSet;
902 unsigned int m_itemsLoaded;
903 unsigned int m_nrItemsToLoad;
905 ProcessingType m_processingType;
906 double m_gridX, m_gridY;
910 KoCommandHistory * m_commandHistory;
911 KoAutoFormat * m_autoFormat;
915 TQString m_urlIntern;
917 TQMap<KoPictureKey, TQString> m_pictureMap;
920 TQPtrList<KWTextImage> m_textImageRequests;
921 TQPtrList<KWPictureFrameSet> m_pictureRequests;
922 TQMap<TQString, KWAnchorPosition> m_anchorRequests;
923 TQMap<TQString, KWFootNoteVariable *> m_footnoteVarRequests;
926 TQMap<TQString,TQString> * m_pasteFramesetsMap;
928 KoVariableFormatCollection *m_varFormatCollection;
929 KWMailMergeDataBase *m_slDataBase;
939 TQFont m_defaultFont;
940 bool m_headerVisible, m_footerVisible;
941 bool m_viewFrameBorders;
943 bool m_bShowDocStruct;
945 bool m_bShowStatusBar;
946 bool m_pgUpDownMovesCaret;
947 bool m_repaintAllViewsPending;
948 bool m_bAllowAutoFormat;
949 bool m_bShowScrollBar;
950 bool m_cursorInProtectectedArea;
951 bool m_bInsertDirectCursor;
954 bool m_viewFormattingChars;
955 bool m_viewFormattingEndParag;
956 bool m_viewFormattingSpace;
957 bool m_viewFormattingTabs;
958 bool m_viewFormattingBreak;
963 KFormula::DocumentWrapper* m_formulaDocumentWrapper;
966 double m_defaultColumnSpacing;
969 int m_maxRecentFiles;
970 int m_recalcFramesPending;
973 TQString m_viewModeType;
976 KWVariableCollection *m_varColl;
977 KWBgSpellCheck *m_bgSpellCheck;
978 KoStyleCollection *m_styleColl;
981 KWTableTemplateCollection *m_tableTemplateColl;
984 SeparatorLinePos m_footNoteSeparatorLinePos;
986 int m_iFootNoteSeparatorLineLength;
988 double m_footNoteSeparatorLineWidth;
990 SeparatorLineLineType m_footNoteSeparatorLineType;
994 TQValueVector< TQString > m_sectionTitles;
997 TQStringList m_spellCheckIgnoreList;
998 TQStringList m_spellCheckPersonalDict;
999 TQPixmap* m_bufPixmap;
1003 class InitialEditing;
1005 InitialEditing *m_initialEditing;
1007 KoTextBookmarkList* m_bookmarkList;
1009 TQStringList m_personalExpressionPath;
1010 TQString m_globalLanguage;
1011 bool m_bGlobalHyphenation;
1012 bool m_bGeneratingPreview;
1018 FramesChangedHandler *m_framesChangedHandler;
Class: KWFrameSet Base type, a frameset holds content as well as frames to show that content.
Collection of frame styles.
The user-visible style for frames (borders and background)
This class represents a single frame.
Temporary information used only during loading.
The Page Manager manages all the pages a document contains and separates all the frames the document ...
This class represents a printed page of the document.
A frameset that contains an embedded object (a KWDocumentChild)
This class implements tables by acting as the manager for the frame(set)s which make up the table cel...
Collection of user-defined table styles.
Table style (can created/modified/deleted by the user) A table style is simply a paragraph style and ...
Class: KWTextFrameSet Contains text (KoTextObject) and frames to display that text.
This class is used by "Insert Picture", i.e.
Abstract base class for KWCanvas's view modes.
Definition of an anchor's position: