kword
KWLoadingInfo.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KWLOADINGINFO_H
00021 #define KWLOADINGINFO_H
00022
00023 #include <qstring.h>
00024 #include <qvaluelist.h>
00025 #include <qdict.h>
00026 #include <KoPageLayout.h>
00027
00028 class KoTextParag;
00029 class KWTextDocument;
00030 class KWFrame;
00031
00033 class KWLoadingInfo
00034 {
00035 public:
00036 KWLoadingInfo();
00037 ~KWLoadingInfo() {}
00038
00040 QString m_currentMasterPage;
00041
00043 struct BookMark
00044 {
00045 QString bookname;
00046 int paragStartIndex;
00047 int paragEndIndex;
00048 QString frameSetName;
00049 int cursorStartIndex;
00050 int cursorEndIndex;
00051 };
00052
00053 typedef QValueList<BookMark> BookMarkList;
00054 BookMarkList bookMarkList;
00055
00057 struct BookmarkStart {
00058 BookmarkStart() {}
00059 BookmarkStart( KWTextDocument* _doc, KoTextParag* par, int ind )
00060 : doc( _doc ), parag( par ), pos( ind ) {}
00061 KWTextDocument* doc;
00062 KoTextParag* parag;
00063 int pos;
00064 };
00065 typedef QMap<QString, BookmarkStart> BookmarkStartsMap;
00066 BookmarkStartsMap m_bookmarkStarts;
00067
00068
00069
00070 void storeNextFrame( KWFrame* thisFrame, const QString& chainNextName ) {
00071 m_nextFrameDict.insert( chainNextName, thisFrame );
00072 }
00073 KWFrame* chainPrevFrame( const QString& frameName ) const {
00074 return m_nextFrameDict[frameName];
00075 }
00076
00077 void storeFrameName( KWFrame* frame, const QString& name ) {
00078 m_frameNameDict.insert( name, frame );
00079 }
00080 KWFrame* frameByName( const QString& name ) const {
00081 return m_frameNameDict[name];
00082 }
00083
00084 KoColumns columns;
00085 KoKWHeaderFooter hf;
00086
00087 private:
00088
00089 QDict<KWFrame> m_nextFrameDict;
00090 QDict<KWFrame> m_frameNameDict;
00091 };
00092
00093 #endif
00094
|