102 throw std::range_error(
"corrupt LwpTocSuperLayout");
103 for (sal_uInt16
i = 0;
i <
count; ++
i)
108 throw std::range_error(
"corrupt LwpTocSuperLayout");
109 for (sal_uInt16
i = 0;
i <
count; ++
i)
114 throw std::range_error(
"corrupt LwpTocSuperLayout");
115 for (sal_uInt16
i = 0;
i <
count; ++
i)
131 std::unique_ptr<XFTextStyle> pTextStyle(
new XFTextStyle);
133 pTextStyle->SetFont(pBaseStyle->
GetFont());
147 xToc->SetProtected(
false);
159 xToc->AddTemplate(OUString::number(
i), OUString(), pTemplate);
163 bool bInserted =
false;
169 pTemplate->
SetLevel(OUString::number(
i));
235 }
while (pLevel !=
nullptr);
243 if (!xContainer.is())
247 if (!xContainer->IsCell())
249 pCont->
Add(xToc.get());
273 m_pFrame->Parse(xXFFrame.get(),
static_cast<sal_uInt16
>(nStart));
284 if (!xContainer.is())
286 if (xContainer->IsCell())
288 pTableContainer = pCont;
289 xXFFrame->Add(pCont);
295 pCont->
Add(xXFFrame.get());
297 pTableLayout->
XFConvert(pTableContainer);
virtual OUString GetStyleName()=0
@descr: return the style name.
void Read(LwpObjectStream *pStrm)
@descr read atomholder from object stream the default encoding used in Word Pro is 1252
void Read(LwpObjectStream *pObjStrm)
@descr Read head id and tail id
Double Linked Virtual List.
void Read() override
@descr Read LwpDLVList data from object stream
Document object, represent document and division.
LwpDocument * GetNextDivision()
@descr Get next division
LwpFoundry * GetFoundry()
LwpDocument * GetRootDocument()
@descr Get root document
LwpDocument * GetFirstDivision()
@descr Get first division
OUString FindActualStyleName(const OUString &name)
@descr: Get style name registered according the original style name
LwpObjectID * GetDefaultTextStyle()
@descr: Get default text style id
LwpStyleManager * GetStyleManager()
LwpDocument * GetDocument()
XFStyleManager * GetXFStyleManager()
static LwpGlobalMgr * GetInstance(LwpSvStream *pSvStream=nullptr)
virtual rtl::Reference< LwpVirtualLayout > GetContainerLayout() override
@descr get the layout that containers the current frame layout
rtl::Reference< LwpObject > obj(VO_TYPE tag=VO_INVALID) const
@descr get object from object factory per the object id
virtual void RegisterStyle()
@descr default register style function
std::unique_ptr< LwpObjectStream > m_pObjStrm
IXFStyle * GetStyle(const LwpObjectID &styleObjID)
VO_SUPERTABLELAYOUT object.
void Read() override
Read super table layout record.
void XFConvert(XFContentContainer *pCont) override
Add table to container.
std::unique_ptr< LwpFrame > m_pFrame
LwpTableLayout * GetTableLayout()
Get child table layout.
encapsulate XInputStream to provide SvStream like interfaces
VO_TABLELAYOUT object and functions for registering styles and converting tables.
void XFConvert(XFContentContainer *pCont) override
Convert table.
void RegisterStyle() override
Register style.
LwpAtomHolder m_SearchName
sal_uInt16 GetLevel() const
void Read() override
Read TOCLEVELDATA obj.
virtual ~LwpTocLevelData() override
virtual void XFConvert(XFContentContainer *pCont) override
Convert.
bool GetUseLeadingText() const
LwpTocLevelData(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
OUString const & GetSearchStyle() const
LwpAtomHolder m_SectionName
XFContentContainer * m_pCont
virtual void XFConvertFrame(XFContentContainer *pCont, sal_Int32 nStart=0, sal_Int32 nEnd=0, bool bAll=false) override
convert frame which anchor to page
virtual ~LwpTocSuperLayout() override
LwpAtomHolder m_DestName[MAX_LEVELS]
LwpAtomHolder m_ParentName
virtual void XFConvert(XFContentContainer *pCont) override
Convert TOC.
LwpTocSuperLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
void RegisterStyle() override
Register style of TOC.
static LwpTocLevelData * GetNextSearchLevelPtr(sal_uInt16 index, LwpTocLevelData *pCurData)
Get next TOCLEVELDATA obj from current position.
LwpAtomHolder m_TextMarker
sal_uInt16 GetSeparatorType(sal_uInt16 index)
Get what is used for separator.
sal_uInt32 m_nFlags[MAX_LEVELS]
bool GetUsePageNumber(sal_uInt16 index)
Get whether page number is used in TOC entries.
LwpAtomHolder m_DestPGName[MAX_LEVELS]
LwpAtomHolder m_DivisionName
void AddSourceStyle(XFIndex *pToc, LwpTocLevelData *pLevel, LwpFoundry *pFoundry)
Add source style into TOC.
LwpDLVListHeadTail m_SearchItems
void Read() override
Read TOCSUPERTABLELAYOUT object.
bool GetRightAlignPageNumber(sal_uInt16 index)
Get whether page number is right alignment.
LwpTocLevelData * GetSearchLevelPtr(sal_uInt16 index)
Get TOCLEVELDATA obj.
virtual void Add(XFContent *pContent)
@descr Add content.
Floating frame on any page.
Base class for all frame object,include drawing,image,text-box.
void AddEntry(enumXFIndexTemplate entry, const OUString &styleName)
@descr Add an entry in the template.
void AddTabEntry(enumXFTab type, double len, sal_Unicode leader, sal_Unicode delimiter, const OUString &styleName)
@descr Add a tab entry in the template.
void SetLevel(const OUString &level)
@descr Set template level.
void AddTextEntry(const OUString &sSpan, const OUString &styleName)
@descr Add an entry in the template.
Index, include index template, index body.
void AddTocSource(sal_uInt16 nLevel, const OUString &sStyleName)
Style object for aragraph.
const rtl::Reference< XFFont > & GetFont() const
@descr get the font object.
Style manager for the filter.
IXFStyleRet AddStyle(std::unique_ptr< IXFStyle > pStyle)
@ enumXFIndexTemplateText
@ enumXFIndexTemplateChapter
@ enumXFIndexTemplatePage