27 #ifndef __TOCENTRYINFO__ 28 #define __TOCENTRYINFO__ 31 #include "ITOCCmdData.h" 32 #include "IPMStream.h" 53 const int32& pageIndex,
54 const UID& bookContentUID,
57 fOrigStyleName(origStyleName),
58 fPageIndex(pageIndex),
59 fBookContentUID(bookContentUID),
60 fFormatUID(formatUID),
61 fTextAnchorName(textAnchorName) {}
86 const int32 entryIndex,
88 fEntryIndex(entryIndex),
89 fRunInSep(runInSep) {}
97 return ( (fEntryIndex == other.fEntryIndex) &&
98 (fRunInSep == other.fRunInSep) );
117 fParaFormatStyle(kInvalidUID),
121 fPageNumFormatStyle(kInvalidUID),
122 fSeparatorStyle(kInvalidUID),
124 fIncludeSectionName(kTrue)
127 defaultSep.Append(kTextChar_Tab);
128 fSeparator = defaultSep;
131 defaultRunInSep.Append(kTextChar_Semicolon);
132 fRunInSep = defaultRunInSep;
150 const UID paraFormatStyle,
154 const UID pageNumFormatStyle,
156 const UID separatorStyle,
159 const bool16 includeSectionName) :
160 fSourceDoc(sourceDoc),
161 fParaFormatStyle(paraFormatStyle),
165 fPageNumFormatStyle(pageNumFormatStyle),
166 fSeparator(separator),
167 fSeparatorStyle(separatorStyle),
170 fIncludeSectionName(includeSectionName){}
178 return ( (fSourceDoc == other.fSourceDoc) &&
179 (fParaFormatStyle == other.fParaFormatStyle) &&
180 (fLevel == other.fLevel) &&
181 (fLevelSort == other.fLevelSort) &&
182 (fPosition == other.fPosition) &&
183 (fPageNumFormatStyle == other.fPageNumFormatStyle) &&
184 (fSeparator == other.fSeparator) &&
185 (fSeparatorStyle == other.fSeparatorStyle) &&
186 (fRunIn == other.fRunIn) &&
187 (fRunInSep == other.fRunInSep) &&
188 (fIncludeSectionName == other.fIncludeSectionName) );
219 int16 position =
static_cast<int16
>(fPosition);
224 fSeparator.ReadWrite(s);
227 fRunInSep.ReadWrite(s);
232 UID fParaFormatStyle;
236 UID fPageNumFormatStyle;
241 bool16 fIncludeSectionName;
244 #endif // __TOCENTRYINFO__