167 sal_uInt16 numeditors =
m_pObjStrm->QuickReaduInt16();
170 for (
i = 0;
i<numeditors;
i++)
172 std::unique_ptr<LwpEditorAttr> xEditorAttr(
new LwpEditorAttr);
176 xEditorAttr->cInitials.Read(
m_pObjStrm.get());
178 xEditorAttr->cHiLiteColor.Read(
m_pObjStrm.get());
181 xEditorAttr->nID =
m_pObjStrm->QuickReaduInt16();
185 xEditorAttr->cInsFontOver.cFontAttributeOverride.cAttrBits =
m_pObjStrm->QuickReaduInt16();
187 xEditorAttr->cInsFontOver.cFontAttributeOverride.cAttrOverrideBits =
m_pObjStrm->QuickReaduInt16();
189 xEditorAttr->cInsFontOver.cFontAttributeOverride.cAttrApplyBits =
m_pObjStrm->QuickReaduInt16();
191 xEditorAttr->cInsFontOver.cFontAttributeOverride.cAttrOverrideBits2 =
m_pObjStrm->QuickReaduInt8();
193 xEditorAttr->cInsFontOver.cFontAttributeOverride.cAttrApplyBits2 =
m_pObjStrm->QuickReaduInt8();
195 xEditorAttr->cInsFontOver.cFontAttributeOverride.cCase =
m_pObjStrm->QuickReaduInt8();
197 xEditorAttr->cInsFontOver.cFontAttributeOverride.cUnder =
m_pObjStrm->QuickReaduInt8();
200 xEditorAttr->cInsFontOver.cFontDescriptionOverrideBase.cOverrideBits =
m_pObjStrm->QuickReaduInt8();
202 xEditorAttr->cInsFontOver.cFontDescriptionOverrideBase.cApplyBits =
m_pObjStrm->QuickReaduInt8();
204 xEditorAttr->cInsFontOver.cFontDescriptionOverrideBase.cPointSize =
m_pObjStrm->QuickReadInt32();
206 xEditorAttr->cInsFontOver.cFontDescriptionOverrideBase.cOverstrike =
m_pObjStrm->QuickReaduInt8();
208 xEditorAttr->cInsFontOver.cFontDescriptionOverrideBase.cTightness =
m_pObjStrm->QuickReaduInt16();
210 xEditorAttr->cInsFontOver.cFontDescriptionOverrideBase.cColor.Read(
m_pObjStrm.get());
213 xEditorAttr->cInsFontOver.cFontDescriptionOverrideBase.cBackgroundColor.Read(
m_pObjStrm.get());
217 xEditorAttr->cInsFontOver.cFaceName.Read(
m_pObjStrm.get());
219 xEditorAttr->cInsFontOver.cAltFaceName.Read(
m_pObjStrm.get());
224 xEditorAttr->cDelFontOver.cFontAttributeOverride.cAttrBits =
m_pObjStrm->QuickReaduInt16();
226 xEditorAttr->cDelFontOver.cFontAttributeOverride.cAttrOverrideBits =
m_pObjStrm->QuickReaduInt16();
228 xEditorAttr->cDelFontOver.cFontAttributeOverride.cAttrApplyBits =
m_pObjStrm->QuickReaduInt16();
230 xEditorAttr->cDelFontOver.cFontAttributeOverride.cAttrOverrideBits2 =
m_pObjStrm->QuickReaduInt8();
232 xEditorAttr->cDelFontOver.cFontAttributeOverride.cAttrApplyBits2 =
m_pObjStrm->QuickReaduInt8();
234 xEditorAttr->cDelFontOver.cFontAttributeOverride.cCase =
m_pObjStrm->QuickReaduInt8();
236 xEditorAttr->cDelFontOver.cFontAttributeOverride.cUnder =
m_pObjStrm->QuickReaduInt8();
239 xEditorAttr->cDelFontOver.cFontDescriptionOverrideBase.cOverrideBits =
m_pObjStrm->QuickReaduInt8();
241 xEditorAttr->cDelFontOver.cFontDescriptionOverrideBase.cApplyBits =
m_pObjStrm->QuickReaduInt8();
243 xEditorAttr->cDelFontOver.cFontDescriptionOverrideBase.cPointSize =
m_pObjStrm->QuickReadInt32();
245 xEditorAttr->cDelFontOver.cFontDescriptionOverrideBase.cOverstrike =
m_pObjStrm->QuickReaduInt8();
247 xEditorAttr->cDelFontOver.cFontDescriptionOverrideBase.cTightness =
m_pObjStrm->QuickReaduInt16();
249 xEditorAttr->cDelFontOver.cFontDescriptionOverrideBase.cColor.Read(
m_pObjStrm.get());
252 xEditorAttr->cDelFontOver.cFontDescriptionOverrideBase.cBackgroundColor.Read(
m_pObjStrm.get());
256 xEditorAttr->cDelFontOver.cFaceName.Read(
m_pObjStrm.get());
258 xEditorAttr->cDelFontOver.cAltFaceName.Read(
m_pObjStrm.get());
262 xEditorAttr->nAbilities =
m_pObjStrm->QuickReaduInt16();
264 xEditorAttr->nLocks =
m_pObjStrm->QuickReaduInt16();
266 xEditorAttr->nSuggestions =
m_pObjStrm->QuickReaduInt16();
272 xEditorAttr->cDelTextAttr.cOverride.cValues =
m_pObjStrm->QuickReaduInt16();
273 xEditorAttr->cDelTextAttr.cOverride.cOverride =
m_pObjStrm->QuickReaduInt16();
274 xEditorAttr->cDelTextAttr.cOverride.cApply =
m_pObjStrm->QuickReaduInt16();
276 xEditorAttr->cDelTextAttr.cHideLevels =
m_pObjStrm->QuickReaduInt16();
280 xEditorAttr->cDelTextAttr.cBaselineOffset =
m_pObjStrm->QuickReadInt32();
284 xEditorAttr->cDelTextAttr.cBaselineOffset = 0;
291 sal_uInt16 nID = xEditorAttr->nID;
297 OUString aResult = OUString::number(dt.
tm_year) +
"-" + OUString::number(dt.
tm_mon) +
"-" + OUString::number(dt.
tm_mday) +
298 "T" + OUString::number(dt.
tm_hour) +
":" + OUString::number(dt.
tm_min) +
":" + OUString::number(dt.
tm_sec) +
".0";
305 OUString aResult =
"PT" + OUString::number(dt.
tm_hour) +
"H" + OUString::number(dt.
tm_min) +
"M" + OUString::number(dt.
tm_sec) +
"S";
321 xfMeta.
ToXml(pOutputStream);
Stream wrapper for sax writer.
AtomHolder class of Word Pro to hold a string.
void Read(LwpObjectStream *pStrm)
@descr read atomholder from object stream the default encoding used in Word Pro is 1252
const OUString & str() const
LwpDocControl m_DocControl
LwpDocData(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
void Read() override
@descr default read function
static OUString TimeToOUString(LtTm const &dt)
void Parse(IXFStream *pOutputStream) override
@descr default parse function
virtual ~LwpDocData() override
LwpDocOptions m_DocOptions
static OUString DateTimeToOUString(LtTm const &dt)
void SetEditorAttrMap(sal_uInt16 nID, LwpEditorAttr *pAttr)
static LwpGlobalMgr * GetInstance(LwpSvStream *pSvStream=nullptr)
void ReadIndexed(LwpSvStream *pStrm)
@descr Read object id with indexed format from stream if index>0, lowid is get from time table per th...
Base class of all Lwp VO objects.
std::unique_ptr< LwpObjectStream > m_pObjStrm
encapsulate XInputStream to provide SvStream like interfaces
bool LtgLocalTime(tools::Long rtime, LtTm &rtm)
sal_uInt16 nDocControlProtection
sal_uInt16 nAutoVersioning
LwpAtomHolder cDocControlOnlyEditor
sal_uInt16 nFileProtection
sal_uInt16 nEditorVerification
sal_Int32 nLastRevisionTime
LwpAtomHolder description
LwpAtomHolder encrypt1password
LwpAtomHolder encrypt2password
sal_uInt16 nMarginMarksChar
sal_uInt16 nMarginMarksLocation
LwpAtomHolder characterSet