LibreOffice Module lotuswordpro (master) 1
|
#include <lwplayout.hxx>
Public Types | |
enum | UseWhenType { StartWithinColume , StartWithinPage , StartOnNextPage , StartOnOddPage , StartOnEvenPage } |
Public Member Functions | |
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 () |
Protected Member Functions | |
void | Read () override |
@descr Read name of LwpDLNFVList from object stream More... | |
Protected Member Functions inherited from LwpMiddleLayout | |
void | Read () override |
@descr Read name of LwpDLNFVList from object stream More... | |
virtual bool | MarginsSameAsParent () override |
@descr: Whether the margins is same as parent layout More... | |
virtual double | MarginsValue (sal_uInt8 nWhichSide) override |
@descr: Get margin More... | |
virtual double | ExtMarginsValue (sal_uInt8 nWhichSide) override |
@descr: Get extmargin value More... | |
virtual bool | IsAutoGrowDown () override |
@descr: Whether the height of layout is auto grow down More... | |
rtl::Reference< LwpObject > | GetBasedOnStyle () const |
Protected Member Functions inherited from LwpVirtualLayout | |
void | Read () override |
@descr Read name of LwpDLNFVList from object stream More... | |
bool | HasProtection () |
@descr: Whether it has protection More... | |
virtual bool | HonorProtection () |
@descr: Whether it is honoring protection More... | |
virtual bool | IsProtected () |
@descr: Whether it is protected More... | |
virtual bool | IsAutoGrowDown () |
virtual double | MarginsValue (sal_uInt8) |
virtual double | ExtMarginsValue (sal_uInt8) |
virtual bool | MarginsSameAsParent () |
Protected Member Functions inherited from LwpDLNFPVList | |
void | Read () override |
@descr Read name of LwpDLNFVList from object stream More... | |
void | ReadPropertyList (LwpObjectStream *pObjStrm) |
@descr Read property list More... | |
Protected Member Functions inherited from LwpDLNFVList | |
virtual | ~LwpDLNFVList () override |
void | Read () override |
@descr Read LwpDLNFVList data from object stream More... | |
void | ReadName (LwpObjectStream *pObjStrm) |
@descr Read name of LwpDLNFVList from object stream More... | |
Protected Member Functions inherited from LwpDLVList | |
virtual | ~LwpDLVList () override |
void | Read () override |
@descr Read LwpDLVList data from object stream More... | |
Protected Member Functions inherited from LwpObject | |
virtual | ~LwpObject () override |
@descr dtor() More... | |
virtual void | Read () |
@descr default read function More... | |
virtual void | RegisterStyle () |
@descr default register style function More... | |
virtual void | Parse (IXFStream *pOutputStream) |
@descr default parse function More... | |
virtual void | XFConvert (XFContentContainer *pCont) |
@descr default XFConvert function pCont is the XFContentContainer for the object conversion More... | |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Definition at line 419 of file lwplayout.hxx.
Enumerator | |
---|---|
StartWithinColume | |
StartWithinPage | |
StartOnNextPage | |
StartOnOddPage | |
StartOnEvenPage |
Definition at line 436 of file lwplayout.hxx.
LwpLayout::LwpLayout | ( | LwpObjectHeader const & | objHdr, |
LwpSvStream * | pStrm | ||
) |
Definition at line 1469 of file lwplayout.cxx.
|
overridevirtual |
Definition at line 1476 of file lwplayout.cxx.
|
overridevirtual |
@descr: Get gap between columns
the order of column |
Reimplemented from LwpVirtualLayout.
Definition at line 1545 of file lwplayout.cxx.
References LwpMiddleLayout::GetBasedOnStyle(), LwpVirtualLayout::GetColGap(), LwpLayoutColumns::GetColGap(), m_LayColumns, LwpVirtualLayout::m_nAttributes2, LwpVirtualLayout::m_nOverrideFlag, nIndex, LwpObjectID::obj(), OVER_COLUMNS, and STYLE2_LOCALCOLUMNINFO.
Referenced by GetXFColumns().
XFColumnSep * LwpLayout::GetColumnSep | ( | ) |
@descr: Create and return XFColumnSep object
Definition at line 1620 of file lwplayout.cxx.
References enumXFAlignTop, eType, LwpLayoutGutters::GetBorderStuff(), LwpBorderStuff::GetSideColor(), LwpBorderStuff::GetSideWidth(), LwpBorderStuff::LEFT, m_LayGutterStuff, LwpObjectID::obj(), XFColumnSep::SetColor(), XFColumnSep::SetRelHeight(), XFColumnSep::SetVerticalAlign(), XFColumnSep::SetWidth(), and LwpColor::To24Color().
Referenced by GetXFColumns().
|
overridevirtual |
@descr get the layout that containers the current frame layout
Reimplemented from LwpVirtualLayout.
Definition at line 1909 of file lwplayout.cxx.
References LwpVirtualLayout::GetParentLayout(), GetPosition(), LwpPara::GetStory(), LwpStory::GetTabLayout(), LwpVirtualLayout::IsRelativeAnchored(), and LwpObjectID::obj().
Referenced by LwpFrame::ApplyPosType(), LwpFrame::ApplyWrapType(), LwpFrameLayout::GetMaxWidth(), LwpFrame::IsLeftWider(), LwpFrame::ParseAnchorType(), LwpTableLayout::RegisterStyle(), LwpFribTable::XFConvert(), LwpSuperTableLayout::XFConvert(), LwpTocSuperLayout::XFConvert(), and LwpTocSuperLayout::XFConvertFrame().
|
overridevirtual |
@descr: Get columns number
Reimplemented from LwpVirtualLayout.
Definition at line 1517 of file lwplayout.cxx.
References LwpMiddleLayout::GetBasedOnStyle(), LwpVirtualLayout::GetNumCols(), LwpLayoutColumns::GetNumCols(), m_bGettingNumCols, m_LayColumns, LwpVirtualLayout::m_nOverrideFlag, LwpObjectID::obj(), and OVER_COLUMNS.
Referenced by GetXFColumns(), LwpPageLayout::HasColumns(), and LwpFribColumnBreak::RegisterBreakStyle().
|
inline |
Definition at line 449 of file lwplayout.hxx.
References m_Position.
Referenced by GetContainerLayout(), and LwpPageLayout::GetPagePosition().
LwpShadow * LwpLayout::GetShadow | ( | ) |
@descr: Get the LwpShadow object according to m_LayShadow id.
Definition at line 1834 of file lwplayout.cxx.
References LwpMiddleLayout::GetBasedOnStyle(), LwpLayoutShadow::GetShadow(), m_bGettingShadow, m_LayShadow, LwpVirtualLayout::m_nOverrideFlag, LwpObjectID::obj(), and OVER_SHADOW.
Referenced by GetXFShadow().
sal_uInt16 LwpLayout::GetUsePage | ( | ) |
@descr: Get use page
Definition at line 1689 of file lwplayout.cxx.
References LwpMiddleLayout::GetBasedOnStyle(), LwpUseWhen::GetUsePage(), LwpVirtualLayout::GetUseWhen(), LwpVirtualLayout::m_nOverrideFlag, and OVER_PLACEMENT.
Referenced by LwpFrame::XFConvert().
LwpLayout::UseWhenType LwpLayout::GetUseWhenType | ( | ) |
@descr: Get use when type
Definition at line 1651 of file lwplayout.cxx.
References eType, LwpVirtualLayout::GetUseWhen(), LwpUseWhen::IsStartOnNextEvenPage(), LwpUseWhen::IsStartOnNextOddPage(), LwpUseWhen::IsStartOnNextPage(), LwpUseWhen::IsStartOnThisHF(), LwpUseWhen::IsStartOnThisPage(), StartOnEvenPage, StartOnNextPage, StartOnOddPage, StartWithinColume, and StartWithinPage.
Referenced by LwpPageLayout::HasFillerPageText(), LwpStory::IsNeedSection(), LwpMasterPage::IsNextPageType(), LwpFribSection::ParseSection(), LwpMasterPage::RegisterFillerPageStyle(), LwpMasterPage::RegisterMasterPage(), and LwpStory::SortPageLayout().
XFColumns * LwpLayout::GetXFColumns | ( | ) |
@descr: Create and return XFColumns object
Definition at line 1570 of file lwplayout.cxx.
References GetColGap(), GetColumnSep(), GetNumCols(), nIndex, XFColumn::SetMargins(), and XFColumn::SetRelWidth().
Referenced by LwpFrame::ApplyColumns(), LwpPageLayout::ParseColumns(), LwpMasterPage::RegisterMasterPage(), and LwpPara::RegisterNewSectionStyle().
XFShadow * LwpLayout::GetXFShadow | ( | ) |
@descr: create xfshadow
Definition at line 1860 of file lwplayout.cxx.
References enumXFShadowLeftBottom, enumXFShadowLeftTop, enumXFShadowRightBottom, enumXFShadowRightTop, LwpShadow::GetColor(), LwpShadow::GetOffsetX(), LwpShadow::GetOffsetY(), GetShadow(), left, XFShadow::SetColor(), XFShadow::SetOffset(), XFShadow::SetPosition(), and top.
Referenced by LwpFrame::ApplyShadow(), LwpSuperTableLayout::ApplyShadow(), LwpFooterLayout::ParseShadow(), LwpHeaderLayout::ParseShadow(), and LwpPageLayout::ParseShadow().
|
overridevirtual |
@descr: Whether it is use on all even pages
Reimplemented from LwpVirtualLayout.
Definition at line 1760 of file lwplayout.cxx.
References LwpMiddleLayout::GetBasedOnStyle(), LwpVirtualLayout::GetUseWhen(), LwpVirtualLayout::IsUseOnAllEvenPages(), LwpUseWhen::IsUseOnAllEvenPages(), LwpVirtualLayout::m_nOverrideFlag, and OVER_PLACEMENT.
Referenced by LwpFrame::XFConvert().
|
overridevirtual |
@descr: Whether it is use on all odd pages
Reimplemented from LwpVirtualLayout.
Definition at line 1785 of file lwplayout.cxx.
References LwpMiddleLayout::GetBasedOnStyle(), LwpVirtualLayout::GetUseWhen(), LwpVirtualLayout::IsUseOnAllOddPages(), LwpUseWhen::IsUseOnAllOddPages(), LwpVirtualLayout::m_nOverrideFlag, and OVER_PLACEMENT.
Referenced by LwpFrame::XFConvert().
|
overridevirtual |
@descr: Whether it is use on all pages
Reimplemented from LwpVirtualLayout.
Definition at line 1735 of file lwplayout.cxx.
References LwpMiddleLayout::GetBasedOnStyle(), LwpVirtualLayout::GetUseWhen(), LwpVirtualLayout::IsUseOnAllPages(), LwpUseWhen::IsUseOnAllPages(), LwpVirtualLayout::m_nOverrideFlag, and OVER_PLACEMENT.
Referenced by LwpFrame::XFConvert().
|
overridevirtual |
@descr: Whether it is use on current page
Reimplemented from LwpVirtualLayout.
Definition at line 1810 of file lwplayout.cxx.
References LwpMiddleLayout::GetBasedOnStyle(), LwpVirtualLayout::GetUseWhen(), LwpVirtualLayout::IsUseOnPage(), LwpUseWhen::IsUseOnPage(), LwpVirtualLayout::m_nOverrideFlag, and OVER_PLACEMENT.
Referenced by LwpFrame::XFConvert().
|
overrideprotectedvirtual |
@descr Read name of LwpDLNFVList from object stream
Reimplemented from LwpMiddleLayout.
Reimplemented in LwpPlacableLayout, LwpNoteLayout, LwpNoteHeaderLayout, LwpNoteTextLayout, LwpViewportLayout, LwpPageLayout, LwpHeaderLayout, LwpFooterLayout, LwpTableLayout, LwpSuperTableLayout, LwpTableHeadingLayout, LwpSuperParallelColumnLayout, LwpParallelColumnsLayout, LwpSuperGlossaryLayout, and LwpTocSuperLayout.
Definition at line 1478 of file lwplayout.cxx.
References LwpObjectStream::CheckExtra(), m_aUseWhen, m_LayColumns, m_LayExtJoinStuff, m_LayGutterStuff, m_LayJoinStuff, m_LayShadow, LwpFileHeader::m_nFileRevision, LwpObject::m_pObjStrm, m_Position, LwpObjectStream::QuickReaduInt16(), LwpObjectStream::QuickReaduInt8(), LwpMiddleLayout::Read(), LwpUseWhen::Read(), LwpObjectID::ReadIndexed(), and LwpObjectStream::SkipExtra().
Referenced by LwpPlacableLayout::Read(), LwpPageLayout::Read(), and LwpTableLayout::Read().
|
overridevirtual |
@descr: Get usewhen pointer
Reimplemented from LwpVirtualLayout.
Definition at line 1714 of file lwplayout.cxx.
References LwpMiddleLayout::GetBasedOnStyle(), m_aUseWhen, LwpVirtualLayout::m_nOverrideFlag, OVER_PLACEMENT, and LwpVirtualLayout::VirtualGetUseWhen().
|
private |
Definition at line 455 of file lwplayout.hxx.
Referenced by Read(), and VirtualGetUseWhen().
|
private |
Definition at line 454 of file lwplayout.hxx.
Referenced by GetNumCols().
|
private |
Definition at line 453 of file lwplayout.hxx.
Referenced by GetShadow().
|
private |
Definition at line 457 of file lwplayout.hxx.
Referenced by GetColGap(), GetNumCols(), and Read().
|
private |
Definition at line 461 of file lwplayout.hxx.
Referenced by Read().
|
private |
Definition at line 458 of file lwplayout.hxx.
Referenced by GetColumnSep(), and Read().
|
private |
Definition at line 459 of file lwplayout.hxx.
Referenced by Read().
|
private |
Definition at line 460 of file lwplayout.hxx.
Referenced by GetShadow(), and Read().
|
private |
Definition at line 456 of file lwplayout.hxx.
Referenced by GetPosition(), and Read().