78 , m_bGettingFirstDivisionWithContentsThatIsNotOLE(false)
79 , m_bGettingPreviousDivisionWithContents(false)
80 , m_bGettingGetLastDivisionWithContents(false)
82 , m_nPersistentFlags(0)
165 pDocSock->DoParse(pOutputStream);
177 if (!sDivName.isEmpty() && !pDiv->
IsGotoable())
224 pDocSock->DoRegisterStyle();
237 if (pTextStyleHolder)
244 throw std::runtime_error(
"loop in register text style");
301 bool bAlreadySeen = !aSeen.
insert(xStory.get()).second;
303 throw std::runtime_error(
"loop in conversion");
306 xStory->DoRegisterStyle();
326 bool bAlreadySeen = !aSeen.
insert(pBullet).second;
328 throw std::runtime_error(
"loop in conversion");
346 pGraphic->DoRegisterStyle();
377 if (
this != pEndnoteDiv)
427 if (pDivInfo ==
nullptr)
431 if (!pLayoutObj.is())
437 pLayoutObj->DoParse(pOutputStream);
543 throw std::runtime_error(
"recursion in page divisions");
562 throw std::runtime_error(
"recursion in page divisions");
575 while (pDivision && pDivision !=
this)
577 bool bAlreadySeen = !aSeen.
insert(pDivision).second;
579 throw std::runtime_error(
"loop in conversion");
581 if (pContentDivision)
583 pRet = pContentDivision;
643 bool bAlreadySeen = !aSeen.
insert(pRoot).second;
645 throw std::runtime_error(
"loop in conversion");
665 bool bAlreadySeen = !aSeen.
insert(pDivision).second;
667 throw std::runtime_error(
"loop in conversion");
669 if (pContentDivision)
670 return pContentDivision;
685 bool bAlreadySeen = !aSeen.
insert(pLastDoc).second;
687 throw std::runtime_error(
"loop in conversion");
713 if (
this == pEndDivision)
736 sal_uInt16 nPageNumber = 0;
754 xXFContainer->ToXml(pOutputStream);
815 pDoc->DoRegisterStyle();
819 pDoc->DoRegisterStyle();
828 pDoc->DoParse(pOutputStream);
832 pDoc->DoParse(pOutputStream);
Stream wrapper for sax writer.
void Read(LwpObjectStream *pStrm)
@descr read atomholder from object stream the default encoding used in Word Pro is 1252
Double Linked Named Family Properties Virtual List.
void Read() override
@descr Read name of LwpDLNFVList from object stream
Double Linked Named Family Virtual List.
void Read() override
@descr Read LwpDLNFVList data from object stream
LwpObjectID & GetParent()
LwpObjectID & GetChildHead()
LwpObjectID & GetChildTail()
VO_HEADHOLDER, LwpDLVListHeadHolder, contains an id to the head of LwpDLVList.
LwpObjectID & GetHeadID()
VO_HEADTAILHOLDER, LwpDLVListHeadTailHolder, contains a LwpDLVListHeadTail (Head and tail id)
LwpObjectID & GetPrevious()
void GetNumberOfPages(sal_uInt16 &nPageno)
OUString const & GetDivName() const
OUString const & GetClassName() const
bool IsOleDivision() const
LwpObjectID & GetInitialLayoutID()
DocumentSock object, divisions are embedded by document socket object.
void Read() override
@descr read VO_DOCSOCK from file
LwpDocSock(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
void Parse(IXFStream *pOutputStream) override
@descr parse contents of documents plugged
void RegisterStyle() override
@descr register styles in documents plugged
Document object, represent document and division.
void ParseDocContent(IXFStream *pOutputStream)
@descr Parse content in this division to IXFStream LwpDocument->LwpDivInfo->LwpPageLayout....
LwpDocument * GetLastDivision()
@descr Get last division
LwpObjectID & GetDivInfoID()
void RegisterLayoutStyles()
@descr Register all layouts styles (page master and master page) All para styles used in master page ...
bool m_bGettingGetLastDivisionWithContents
LwpObjectID m_FootnoteOpts
virtual ~LwpDocument() override
sal_uInt16 GetEndnoteType()
@descr Get the endnote type
std::optional< LwpLineNumberOptions > m_oLnOpts
LwpDocument * GetNextDivision()
@descr Get next division
LwpDocument * GetFirstDivisionWithContentsThatIsNotOLE()
void ParseFrameInPage(IXFStream *pOutputStream)
@descr Parse the frame which anchor is to page before parse other contents, This method is called whe...
bool m_bGettingPreviousDivisionWithContents
LwpObjectID * GetValidFootnoteOpts()
@descr Get the footnoteoptions from the root document
LwpFoundry * GetFoundry()
LwpDocument * GetLastInGroupWithContents()
@descr Get last division in group which has contents, copy from lwp source code
LwpDocument * GetPreviousDivisionWithContents()
@descr Get previous division which has contents, copy from lwp source code
LwpObjectID & GetVerDoc()
void RegisterBulletStyles()
@descr Register all bullet styles used in this division
LwpDocument * GetParentDivision()
@descr Get parent division
void RegisterStyle() override
@descr Register all styles in this division
sal_uInt16 GetNumberOfPagesBefore()
@descr Get the numbers of page before current division
LwpDocument * GetLastDivisionWithContents()
@descr Get last division which has contents, copy from lwp source code
LwpObjectID & GetFootnoteOpts()
LwpObjectID & GetPageHintsID()
void ReadPlug()
@descr Read plug related data from m_pObjStram
void Parse(IXFStream *pOutputStream) override
@descr Parse obj to IXFStream
LwpObjectID m_WYSIWYGPageHints
bool GetNumberOfPages(LwpDocument *pEndDivision, sal_uInt16 &nCount)
@descr Get the numbers of page before pEndDivision, copy from lwp source code
sal_uInt32 m_nPersistentFlags
LwpDocument * GetLastDivisionThatHasEndnote()
@descr Get last division that has endnote
std::unique_ptr< LwpFoundry > m_xOwnedFoundry
LwpDocument * GetPreviousDivision()
@descr Get previous division
void XFConvertFrameInPage(XFContentContainer *pCont)
@descr Parse the frame which anchor is to page in the entire document
void RegisterTextStyles()
@descr Register all named para styles
rtl::Reference< LwpVirtualLayout > GetEnSuperTableLayout()
@descr Get endnote supertable layout, every division has only one endnote supertable layout.
void RegisterFootnoteStyles()
@descr Register footnote/endnote configuration for the entire document
static void ChangeStyleName()
@descr change click here to placeholder
LwpDocument * GetNextInGroup()
@descr Get previous division in group, copy from lwp source code
void RegisterStylesInPara()
@descr Register all styles used in para
void RegisterLinenumberStyles()
@descr Register line number styles
void RegisterGraphicsStyles()
@descr Register all styles used in VO_Graphic
LwpDocument * GetRootDocument()
@descr Get root document
void Read() override
@descr Read VO_Document from object stream
LwpDocument * GetPreviousInGroup()
@descr Get previous division in group, copy from lwp source code
LwpDocument(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
LwpDocument * GetFirstDivision()
@descr Get first division
void RegisterDefaultParaStyles()
@descr Register default para styles
LwpDocument * ImplGetFirstDivisionWithContentsThatIsNotOLE()
@descr Get first division with contents that is not ole, copy from lwp-source code
LwpObjectID & GetSocket()
LwpObjectID & GetLayout()
XFStyleManager * GetXFStyleManager()
static LwpGlobalMgr * GetInstance(LwpSvStream *pSvStream=nullptr)
Head object of content list.
rtl::Reference< LwpVirtualLayout > FindEnSuperTableLayout()
@descr find endnote supertable layout from the child layout list.
LwpObjectID & GetContent()
void ReadIndexed(LwpSvStream *pStrm)
@descr Read object id with indexed format from stream if index>0, lowid is get from time table per th...
rtl::Reference< LwpObject > obj(VO_TYPE tag=VO_INVALID) const
@descr get object from object factory per the object id
void SetFoundry(LwpFoundry *pFoundry)
std::unique_ptr< LwpObjectStream > m_pObjStrm
LwpFoundry * GetFoundry()
LwpObjectID & GetPageLayoutID()
OUString RegisterEndnoteStyle()
@descr: Register master page for endnote which name is "endnote"
printer info used in VO_DOCUMENT not parsed yet
virtual void RegisterStyle() override
: Register bullet or numbering style-list and store the returned name from XFStyleManager.
sort options in VO_DOCUMENT only for read, not parsed now
LwpObjectID & GetLastPara()
void SetCurrentLayout(LwpPageLayout *pPageLayout)
LwpObjectID & GetFirstPara()
void XFConvertFrameInPage(XFContentContainer *pCont)
encapsulate XInputStream to provide SvStream like interfaces
virtual void RegisterStyle() override
@descr default register style function
UIDocument structure contained in VO_DOCUMENT not parsed yet.
User defined words used in VO_DOCUMENT.
virtual void RegisterStyle() override
@descr default register style function
Style manager for the filter.
IXFStyle * FindStyle(std::u16string_view name)
virtual void SetStyleName(const OUString &styleName) override
@descr set style name.
std::pair< const_iterator, bool > insert(Value &&x)