LibreOffice Module lotuswordpro (master) 1
|
VO_TOCSUPERTABLELAYOUT object. More...
#include <lwptoc.hxx>
Public Member Functions | |
LwpTocSuperLayout (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
virtual | ~LwpTocSuperLayout () override |
void | RegisterStyle () override |
Register style of TOC. More... | |
virtual void | XFConvert (XFContentContainer *pCont) override |
Convert TOC. More... | |
virtual LWP_LAYOUT_TYPE | GetLayoutType () override |
virtual void | XFConvertFrame (XFContentContainer *pCont, sal_Int32 nStart=0, sal_Int32 nEnd=0, bool bAll=false) override |
convert frame which anchor to page More... | |
Public Member Functions inherited from LwpSuperTableLayout | |
LwpSuperTableLayout (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
virtual | ~LwpSuperTableLayout () override |
virtual LWP_LAYOUT_TYPE | GetLayoutType () override |
void | RegisterNewStyle () |
Register super table layout style. More... | |
void | ApplyPatternFill (XFTableStyle *pTableStyle) |
Apply pattern fill to table style. More... | |
void | ApplyBackGround (XFTableStyle *pTableStyle) |
Apply background to table style. More... | |
void | ApplyBackColor (XFTableStyle *pTableStyle) |
Apply back color to table. More... | |
void | ApplyShadow (XFTableStyle *pTableStyle) |
Apply shadow to table. More... | |
double | GetWidth () override |
Get width of frame outside table. More... | |
double | GetTableWidth () |
Get width of table. More... | |
void | ApplyWatermark (XFTableStyle *pTableStyle) |
Apply watermark to table. More... | |
void | ApplyAlignment (XFTableStyle *pTableStyle) |
Apply alignment to table. More... | |
void | XFConvert (XFContentContainer *pCont) override |
Add table to container. More... | |
virtual void | XFConvertFrame (XFContentContainer *pCont, sal_Int32 nStart=0, sal_Int32 nEnd=0, bool bAll=false) override |
convert frame which anchor to page More... | |
void | RegisterFrameStyle () |
register frame style More... | |
LwpTableHeadingLayout * | GetTableHeadingLayout () |
Get effective heading table layout, the one just before table layout is the only one which is effective. More... | |
Public Member Functions inherited from LwpPlacableLayout | |
LwpPlacableLayout (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
virtual | ~LwpPlacableLayout () override |
sal_uInt8 | GetWrapType () |
@descr: get wrap type More... | |
LwpLayoutRelativity * | GetRelativityPiece () |
@descr: get LayoutRelativity More... | |
virtual sal_uInt8 | GetRelativeType () override |
@descr: Get relative type More... | |
sal_Int32 | GetBaseLineOffset () |
@descr: Get offset from the baseline More... | |
virtual bool | IsAnchorPage () override |
@descr: whether the parent layout is page layout More... | |
virtual bool | IsAnchorFrame () override |
@descr: whether the parent layout is frame layout More... | |
virtual bool | IsAnchorCell () override |
@descr: whether the parent layout is cell layout More... | |
virtual void | XFConvertFrame (XFContentContainer *, sal_Int32=0, sal_Int32=0, bool=false) |
const rtl::Reference< XFFont > & | GetFont () const |
@descr: Get font style for setting position of frame More... | |
void | SetFont (rtl::Reference< XFFont > const &pFont) |
@descr: Set font style for setting position of frame More... | |
Public Member Functions inherited from LwpLayout | |
LwpLayout (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
virtual | ~LwpLayout () override |
XFColumns * | GetXFColumns () |
@descr: Create and return XFColumns object More... | |
XFColumnSep * | GetColumnSep () |
@descr: Create and return XFColumnSep object More... | |
LwpShadow * | GetShadow () |
@descr: Get the LwpShadow object according to m_LayShadow id. More... | |
XFShadow * | GetXFShadow () |
@descr: create xfshadow More... | |
LwpUseWhen * | VirtualGetUseWhen () override |
@descr: Get usewhen pointer More... | |
virtual sal_uInt16 | GetNumCols () override |
@descr: Get columns number More... | |
virtual double | GetColGap (sal_uInt16 nIndex) override |
@descr: Get gap between columns More... | |
sal_uInt16 | GetUsePage () |
@descr: Get use page More... | |
UseWhenType | GetUseWhenType () |
@descr: Get use when type More... | |
virtual bool | IsUseOnAllPages () override |
@descr: Whether it is use on all pages More... | |
virtual bool | IsUseOnAllEvenPages () override |
@descr: Whether it is use on all even pages More... | |
virtual bool | IsUseOnAllOddPages () override |
@descr: Whether it is use on all odd pages More... | |
virtual bool | IsUseOnPage () override |
@descr: Whether it is use on current page More... | |
LwpObjectID & | GetPosition () |
virtual rtl::Reference< LwpVirtualLayout > | GetContainerLayout () override |
@descr get the layout that containers the current frame layout More... | |
Public Member Functions inherited from LwpMiddleLayout | |
LwpMiddleLayout (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
virtual | ~LwpMiddleLayout () override |
double | GetGeometryHeight () |
@descr: Get layout height, measured by "cm" More... | |
double | GetGeometryWidth () |
@descr: Get layout width, measured by "cm" More... | |
LwpBorderStuff * | GetBorderStuff () |
@descr: Get the LwpBorderStuff object according to m_LayBorderStuff id. More... | |
LwpBackgroundStuff * | GetBackgroundStuff () |
@descr: Get LwpBackgroundStuff object according to m_LayBackgroundStuff id; More... | |
LwpLayoutGeometry * | GetGeometry () |
@descr: Get the geometry of current layout More... | |
enumXFTextDir | GetTextDirection () |
@descr: Get text direction settings. More... | |
std::unique_ptr< XFBorders > | GetXFBorders () |
@descr: create xfborder. More... | |
LwpColor * | GetBackColor () |
@descr: Get background color. More... | |
virtual bool | IsAutoGrow () override |
@descr: Whether the height and width of layout is auto grow More... | |
virtual bool | IsAutoGrowUp () override |
@descr: Whether the height of layout is auto grow up More... | |
virtual bool | IsAutoGrowLeft () override |
@descr: Whether the height of layout is auto grow down More... | |
virtual bool | IsAutoGrowRight () override |
@descr: Whether the height of layout is auto grow down More... | |
virtual sal_uInt8 | GetContentOrientation () override |
@descr: Get contents orientation More... | |
virtual bool | HonorProtection () override |
@descr: Whether it is honoring protection More... | |
virtual bool | IsProtected () override |
@descr: Whether it is protected More... | |
rtl::Reference< LwpVirtualLayout > | GetWaterMarkLayout () |
@descr: Get watermark layout More... | |
std::unique_ptr< XFBGImage > | GetXFBGImage () |
@descr: Create and return xfbgimage object for watermark More... | |
bool | GetUsePrinterSettings () |
@descr: Whether the page uses the printer setting More... | |
LwpLayoutScale * | GetLayoutScale () |
sal_uInt16 | GetScaleMode () |
@descr: Layscale for graphic & watermark More... | |
sal_uInt16 | GetScaleTile () |
sal_uInt16 | GetScaleCenter () |
bool | CanSizeRight () |
virtual double | GetWidth () override |
@descr: Get layout height More... | |
sal_Int32 | GetMinimumWidth () |
bool | IsSizeRightToContent () |
bool | IsSizeRightToContainer () |
sal_Int32 | DetermineWidth () |
virtual double | GetHeight () |
@descr: Get layout height More... | |
LwpPoint | GetOrigin () |
@descr: Get layout origin point More... | |
bool | IsPatternFill () |
@descr: Whether the fill is pattern fill or not More... | |
std::unique_ptr< XFBGImage > | GetFillPattern () |
@descr: Get the fill pattern style. More... | |
virtual bool | HasContent () override |
LwpObjectID & | GetContent () |
LwpTabOverride * | GetTabOverride () |
@descr: Add back color settings into xfpagemaster. More... | |
Public Member Functions inherited from LwpVirtualLayout | |
LwpVirtualLayout (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
virtual sal_uInt16 | GetNumCols () |
virtual double | GetColGap (sal_uInt16 nIndex) |
@descr: Get the gap between columns More... | |
virtual bool | IsAutoGrow () |
virtual bool | IsAutoGrowUp () |
virtual bool | IsAutoGrowLeft () |
virtual bool | IsAutoGrowRight () |
bool | IsFitGraphic () |
@descr: Whether the size of layout is fit the graphic More... | |
bool | IsAutoGrowWidth () |
@descr: Whether the width of layout is auto grow More... | |
bool | IsInlineToMargin () const |
@descr: Determine whether the layout width is to margin More... | |
virtual sal_uInt8 | GetContentOrientation () |
bool | GetHonorProtection () |
bool | GetMarginsSameAsParent () |
bool | GetIsProtected () |
bool | GetIsAutoGrowDown () |
bool | GetHasProtection () |
double | GetMarginsValue (sal_uInt8 nWhichSide) |
double | GetExtMarginsValue (sal_uInt8 nWhichSide) |
const OUString & | GetStyleName () const |
bool | IsComplex () const |
@descr: Whether it is a mirror layout More... | |
virtual bool | IsAnchorPage () |
virtual bool | IsAnchorFrame () |
virtual bool | IsAnchorCell () |
bool | IsPage () |
@descr: Whether this layout is page layout or not More... | |
bool | IsHeader () |
@descr: Whether this layout is header layout or not More... | |
bool | IsFooter () |
@descr: Whether this layout is footer layout or not More... | |
bool | IsFrame () |
@descr: Whether this layout is frame layout or not More... | |
bool | IsCell () |
@descr: Whether this layout is cell layout or not More... | |
bool | IsSuperTable () |
@descr: Whether this layout is supertable layout or not More... | |
bool | IsGroupHead () |
@descr: Whether this layout is group layout or not More... | |
virtual sal_uInt8 | GetRelativeType () |
@descr: get the relative type More... | |
bool | IsRelativeAnchored () |
@descr: whether it is relative anchored layout More... | |
LwpUseWhen * | GetUseWhen () |
@descr: Get usewhen pointer More... | |
virtual LwpUseWhen * | VirtualGetUseWhen () |
virtual bool | IsUseOnAllPages () |
virtual bool | IsUseOnAllEvenPages () |
virtual bool | IsUseOnAllOddPages () |
virtual bool | IsUseOnPage () |
virtual sal_Int32 | GetPageNumber (sal_uInt16) |
bool | IsMinimumHeight () const |
@descr: whether it is MinimumHeight layout More... | |
virtual bool | IsForWaterMark () |
virtual LwpPara * | GetLastParaOfPreviousStory () |
rtl::Reference< LwpVirtualLayout > | GetParentLayout () |
@descr: Get parent layout More... | |
virtual rtl::Reference< LwpVirtualLayout > | GetContainerLayout () |
void | RegisterChildStyle () |
@descr: Register child layout style More... | |
bool | NoContentReference () |
bool | IsStyleLayout () |
enumXFAlignType | GetVerticalAlignmentType () const |
void | SetStyleName (const OUString &str) |
virtual double | GetWidth () |
virtual bool | HasContent () |
virtual LWP_LAYOUT_TYPE | GetLayoutType () |
LwpVirtualLayout * | FindChildByType (LWP_LAYOUT_TYPE eType) |
@descr: Find child layout by layout type More... | |
Public Member Functions inherited from LwpDLNFPVList | |
LwpDLNFPVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
@descr ctor of LwpDLNFPVList from object stream Note that m_bHasProperties is initialized to true More... | |
virtual | ~LwpDLNFPVList () override |
@descr release property list More... | |
LwpPropList * | GetPropList () |
Public Member Functions inherited from LwpDLNFVList | |
LwpDLNFVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
LwpAtomHolder & | GetName () |
LwpObjectID & | GetChildHead () |
LwpObjectID & | GetChildTail () |
LwpObjectID & | GetParent () |
Public Member Functions inherited from LwpDLVList | |
LwpDLVList (LwpObjectHeader const &objHdr, LwpSvStream *pStrm) | |
LwpObjectID & | GetNext () |
LwpObjectID & | GetPrevious () |
Public Member Functions inherited from LwpObject | |
LwpObject (LwpObjectHeader objHdr, LwpSvStream *pStrm) | |
@descr construct lwpobject from stream More... | |
void | QuickRead () |
@descr QuickRead template More... | |
void | DoRegisterStyle () |
void | DoParse (IXFStream *pOutputStream) |
void | DoXFConvert (XFContentContainer *pCont) |
LwpFoundry * | GetFoundry () |
void | SetFoundry (LwpFoundry *pFoundry) |
LwpObjectID & | GetObjectID () |
sal_uInt32 | GetTag () const |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Private Types | |
enum | { MAX_LEVELS = 9 } |
enum | { TS_NOLEADERS = 0x01 , TS_LEADERDOTS = 0x02 , TS_LEADERDASHES = 0x04 , TS_LEADERUNDERLINE = 0x08 , TS_SEPARATORCOMMA = 0x10 , TS_SEPARATORDOTS = 0x20 , TS_PAGENUMBER = 0x40 , TS_RIGHTALIGN = 0x80 } |
enum | { NONE = 0 , LEADERDOTS = 1 , LEADERDASHES = 2 , LEADERUNDERLINE = 3 , SEPARATORCOMMA = 4 , SEPARATORDOTS = 5 } |
enum | { SELECTEDTEXT = 1 , ENTIREDOCUMENT = 2 , CURRENTLEVELDIVISION = 3 , CURRENTDIVISION = 4 , CURRENTSECTION = 5 } |
Private Member Functions | |
void | Read () override |
Read TOCSUPERTABLELAYOUT object. More... | |
bool | GetRightAlignPageNumber (sal_uInt16 index) |
Get whether page number is right alignment. More... | |
bool | GetUsePageNumber (sal_uInt16 index) |
Get whether page number is used in TOC entries. More... | |
sal_uInt16 | GetSeparatorType (sal_uInt16 index) |
Get what is used for separator. More... | |
LwpTocLevelData * | GetSearchLevelPtr (sal_uInt16 index) |
Get TOCLEVELDATA obj. More... | |
void | AddSourceStyle (XFIndex *pToc, LwpTocLevelData *pLevel, LwpFoundry *pFoundry) |
Add source style into TOC. More... | |
Static Private Member Functions | |
static LwpTocLevelData * | GetNextSearchLevelPtr (sal_uInt16 index, LwpTocLevelData *pCurData) |
Get next TOCLEVELDATA obj from current position. More... | |
Private Attributes | |
LwpAtomHolder | m_TextMarker |
LwpAtomHolder | m_ParentName |
LwpAtomHolder | m_DivisionName |
LwpAtomHolder | m_SectionName |
sal_uInt16 | m_nFrom |
LwpDLVListHeadTail | m_SearchItems |
LwpAtomHolder | m_DestName [MAX_LEVELS] |
LwpAtomHolder | m_DestPGName [MAX_LEVELS] |
sal_uInt32 | m_nFlags [MAX_LEVELS] |
OUString | m_TabStyleName |
XFContentContainer * | m_pCont |
VO_TOCSUPERTABLELAYOUT object.
Definition at line 70 of file lwptoc.hxx.
|
private |
Enumerator | |
---|---|
MAX_LEVELS |
Definition at line 90 of file lwptoc.hxx.
|
private |
Enumerator | |
---|---|
TS_NOLEADERS | |
TS_LEADERDOTS | |
TS_LEADERDASHES | |
TS_LEADERUNDERLINE | |
TS_SEPARATORCOMMA | |
TS_SEPARATORDOTS | |
TS_PAGENUMBER | |
TS_RIGHTALIGN |
Definition at line 94 of file lwptoc.hxx.
|
private |
Enumerator | |
---|---|
NONE | |
LEADERDOTS | |
LEADERDASHES | |
LEADERUNDERLINE | |
SEPARATORCOMMA | |
SEPARATORDOTS |
Definition at line 106 of file lwptoc.hxx.
|
private |
Enumerator | |
---|---|
SELECTEDTEXT | |
ENTIREDOCUMENT | |
CURRENTLEVELDIVISION | |
CURRENTDIVISION | |
CURRENTSECTION |
Definition at line 117 of file lwptoc.hxx.
LwpTocSuperLayout::LwpTocSuperLayout | ( | LwpObjectHeader const & | objHdr, |
LwpSvStream * | pStrm | ||
) |
Definition at line 74 of file lwptoc.cxx.
|
overridevirtual |
Definition at line 81 of file lwptoc.cxx.
|
private |
Add source style into TOC.
pToc | - TOC pointer |
pLevel | - TOC level data |
pFoundry | - foundry pointer |
Definition at line 308 of file lwptoc.cxx.
References AddSourceStyle(), XFIndex::AddTocSource(), LwpFoundry::FindActualStyleName(), LwpFoundry::GetDocument(), LwpDocument::GetFirstDivision(), LwpDocument::GetFoundry(), LwpTocLevelData::GetLevel(), LwpDocument::GetNextDivision(), LwpTocLevelData::GetSearchStyle(), and LwpDocument::IsChildDoc().
Referenced by AddSourceStyle(), and XFConvert().
|
inlineoverridevirtual |
Reimplemented from LwpSuperTableLayout.
Definition at line 77 of file lwptoc.hxx.
References LwpVirtualLayout::LWP_TOC_SUPERTABLE_LAYOUT.
|
staticprivate |
Get next TOCLEVELDATA obj from current position.
index | - TOC level |
pCurData | - current LwpTocLevelData |
Definition at line 414 of file lwptoc.cxx.
References LwpTocLevelData::GetLevel(), LwpDLVList::GetNext(), index, and LwpObjectID::obj().
Referenced by XFConvert().
|
private |
Get whether page number is right alignment.
index | - TOC level |
Definition at line 342 of file lwptoc.cxx.
References index, m_nFlags, MAX_LEVELS, and TS_RIGHTALIGN.
Referenced by XFConvert().
|
private |
Get TOCLEVELDATA obj.
index | - TOC level |
Definition at line 390 of file lwptoc.cxx.
References LwpDLVListHeadTail::GetHead(), LwpTocLevelData::GetLevel(), LwpDLVList::GetNext(), index, m_SearchItems, and LwpObjectID::obj().
Referenced by XFConvert().
|
private |
Get what is used for separator.
index | - TOC level |
Definition at line 364 of file lwptoc.cxx.
References index, LEADERDASHES, LEADERDOTS, LEADERUNDERLINE, m_nFlags, MAX_LEVELS, NONE, SEPARATORCOMMA, SEPARATORDOTS, TS_LEADERDASHES, TS_LEADERDOTS, TS_LEADERUNDERLINE, TS_SEPARATORCOMMA, and TS_SEPARATORDOTS.
Referenced by XFConvert().
|
private |
Get whether page number is used in TOC entries.
index | - TOC level |
Definition at line 353 of file lwptoc.cxx.
References index, m_nFlags, MAX_LEVELS, and TS_PAGENUMBER.
Referenced by XFConvert().
|
overrideprivatevirtual |
Read TOCSUPERTABLELAYOUT object.
Reimplemented from LwpSuperTableLayout.
Definition at line 89 of file lwptoc.cxx.
References count, i, m_DestName, m_DestPGName, m_DivisionName, m_nFlags, m_nFrom, m_ParentName, LwpObject::m_pObjStrm, m_SearchItems, m_SectionName, m_TextMarker, MAX_LEVELS, LwpSuperTableLayout::Read(), Read(), LwpDLVListHeadTail::Read(), and LwpAtomHolder::Read().
Referenced by Read().
|
overridevirtual |
Register style of TOC.
Reimplemented from LwpObject.
Definition at line 124 of file lwptoc.cxx.
References XFStyleManager::AddStyle(), LwpFoundry::GetDefaultTextStyle(), XFParaStyle::GetFont(), LwpGlobalMgr::GetInstance(), LwpStyleManager::GetStyle(), LwpFoundry::GetStyleManager(), IXFStyle::GetStyleName(), LwpGlobalMgr::GetXFStyleManager(), LwpObject::m_pFoundry, IXFStyleRet::m_pStyle, m_TabStyleName, and LwpObject::RegisterStyle().
|
overridevirtual |
Convert TOC.
pCont | - container |
Reimplemented from LwpSuperTableLayout.
Definition at line 143 of file lwptoc.cxx.
References XFContentContainer::Add(), XFIndexTemplate::AddEntry(), AddSourceStyle(), XFIndexTemplate::AddTabEntry(), XFIndexTemplate::AddTextEntry(), enumXFIndexTemplateChapter, enumXFIndexTemplatePage, enumXFIndexTemplateText, enumXFIndexTOC, enumXFTabRight, LwpFoundry::FindActualStyleName(), LwpLayout::GetContainerLayout(), LwpFoundry::GetDocument(), LwpDocument::GetFoundry(), GetNextSearchLevelPtr(), GetRightAlignPageNumber(), LwpDocument::GetRootDocument(), GetSearchLevelPtr(), LwpTocLevelData::GetSearchStyle(), GetSeparatorType(), LwpTocLevelData::GetUseLeadingText(), GetUsePageNumber(), LwpTocLevelData::GetUseText(), i, LEADERDASHES, LEADERDOTS, LEADERUNDERLINE, m_pCont, LwpObject::m_pFoundry, m_TabStyleName, MAX_LEVELS, NONE, SEPARATORCOMMA, SEPARATORDOTS, XFIndexTemplate::SetLevel(), and LwpSuperTableLayout::XFConvert().
|
overridevirtual |
convert frame which anchor to page
pCont | - |
Reimplemented from LwpSuperTableLayout.
Definition at line 258 of file lwptoc.cxx.
References XFContentContainer::Add(), LwpLayout::GetContainerLayout(), LwpSuperTableLayout::GetTableLayout(), m_pCont, LwpSuperTableLayout::m_pFrame, and LwpTableLayout::XFConvert().
|
private |
Definition at line 132 of file lwptoc.hxx.
Referenced by Read().
|
private |
Definition at line 133 of file lwptoc.hxx.
Referenced by Read().
|
private |
Definition at line 128 of file lwptoc.hxx.
Referenced by Read().
|
private |
Definition at line 134 of file lwptoc.hxx.
Referenced by GetRightAlignPageNumber(), GetSeparatorType(), GetUsePageNumber(), and Read().
|
private |
Definition at line 130 of file lwptoc.hxx.
Referenced by Read().
|
private |
Definition at line 127 of file lwptoc.hxx.
Referenced by Read().
|
private |
Definition at line 138 of file lwptoc.hxx.
Referenced by XFConvert(), and XFConvertFrame().
|
private |
Definition at line 131 of file lwptoc.hxx.
Referenced by GetSearchLevelPtr(), and Read().
|
private |
Definition at line 129 of file lwptoc.hxx.
Referenced by Read().
|
private |
Definition at line 136 of file lwptoc.hxx.
Referenced by RegisterStyle(), and XFConvert().
|
private |
Definition at line 126 of file lwptoc.hxx.
Referenced by Read().