61#ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPLAYOUT_HXX
62#define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_LWPLAYOUT_HXX
66#include <config_lgpl.h>
87#define FIRST_LAYOUTPAGENO 0x0001
88#define LAST_LAYOUTPAGENO 0xffff
90#define LAY_BUOYNEUTRAL 0x02
91#define LAY_BUOYLAYER 0x80
99 virtual double GetColGap(sal_uInt16 nIndex);
111 throw std::runtime_error(
"recursion in layout");
120 throw std::runtime_error(
"recursion in layout");
129 throw std::runtime_error(
"recursion in layout");
138 throw std::runtime_error(
"recursion in layout");
147 throw std::runtime_error(
"recursion in layout");
156 throw std::runtime_error(
"recursion in layout");
165 throw std::runtime_error(
"recursion in layout");
219 void Read()
override;
314 void Read()
override;
387 void Read()
override;
429 void Read()
override;
497 void Read()
override;
rtl::Reference< LwpVirtualLayout > GetLayout(LwpVirtualLayout const *pStartLayout)
@descr: Looking for the layout which follows the pStartLayout
LwpObjectID & GetOnlyLayout()
LwpDLVListHeadTail m_Layouts
void Read(LwpObjectStream *pStrm)
AtomHolder class of Word Pro to hold a string.
lwpcolor class (red, green, blue, extra)
Double Linked Named Family Properties Virtual List.
Double Linked Virtual List Head Tail.
void RegisterStyle() override
@descr default register style function
virtual LWP_LAYOUT_TYPE GetLayoutType() override
rtl::Reference< LwpVirtualLayout > FindEnSuperTableLayout()
@descr find endnote supertable layout from the child layout list.
LwpHeadLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
void Read() override
@descr Read name of LwpDLNFVList from object stream
void Read(LwpObjectStream *pStrm)
sal_Int32 m_nGridDistance
LwpAtomHolder m_aContentStyle
void Read(LwpObjectStream *pStrm)
LwpAtomHolder m_aDescription
sal_uInt32 m_nStyleDefinition
LwpObjectID m_LayGutterStuff
UseWhenType GetUseWhenType()
@descr: Get use when type
void Read() override
@descr Read name of LwpDLNFVList from object stream
LwpObjectID m_LayJoinStuff
LwpLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
virtual bool IsUseOnPage() override
@descr: Whether it is use on current page
virtual bool IsUseOnAllOddPages() override
@descr: Whether it is use on all odd pages
LwpObjectID m_LayExtJoinStuff
virtual bool IsUseOnAllEvenPages() override
@descr: Whether it is use on all even pages
XFShadow * GetXFShadow()
@descr: create xfshadow
virtual rtl::Reference< LwpVirtualLayout > GetContainerLayout() override
@descr get the layout that containers the current frame layout
LwpObjectID & GetPosition()
virtual sal_uInt16 GetNumCols() override
@descr: Get columns number
LwpUseWhen * VirtualGetUseWhen() override
@descr: Get usewhen pointer
virtual bool IsUseOnAllPages() override
@descr: Whether it is use on all pages
XFColumns * GetXFColumns()
@descr: Create and return XFColumns object
virtual ~LwpLayout() override
LwpShadow * GetShadow()
@descr: Get the LwpShadow object according to m_LayShadow id.
XFColumnSep * GetColumnSep()
@descr: Create and return XFColumnSep object
sal_uInt16 GetUsePage()
@descr: Get use page
virtual double GetColGap(sal_uInt16 nIndex) override
@descr: Get gap between columns
sal_Int32 GetMinimumWidth()
LwpObjectID & GetContent()
void Read() override
@descr Read name of LwpDLNFVList from object stream
virtual bool IsAutoGrow() override
@descr: Whether the height and width of layout is auto grow
virtual double MarginsValue(sal_uInt8 nWhichSide) override
@descr: Get margin
LwpLayoutStyle m_aStyleStuff
rtl::Reference< LwpVirtualLayout > GetWaterMarkLayout()
@descr: Get watermark layout
LwpTabOverride * GetTabOverride()
@descr: Add back color settings into xfpagemaster.
std::unique_ptr< XFBorders > GetXFBorders()
@descr: create xfborder.
LwpObjectID m_LayExtBorderStuff
std::unique_ptr< XFBGImage > GetXFBGImage()
@descr: Create and return xfbgimage object for watermark
LwpObjectID m_LayBorderStuff
sal_uInt16 GetScaleMode()
@descr: Layscale for graphic & watermark
sal_uInt16 GetScaleCenter()
bool m_bGettingBackgroundStuff
virtual ~LwpMiddleLayout() override
LwpBorderStuff * GetBorderStuff()
@descr: Get the LwpBorderStuff object according to m_LayBorderStuff id.
LwpMiddleLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
LwpLayoutScale * GetLayoutScale()
virtual double ExtMarginsValue(sal_uInt8 nWhichSide) override
@descr: Get extmargin value
virtual bool IsAutoGrowUp() override
@descr: Whether the height of layout is auto grow up
enumXFTextDir GetTextDirection()
@descr: Get text direction settings.
virtual bool MarginsSameAsParent() override
@descr: Whether the margins is same as parent layout
virtual bool IsAutoGrowLeft() override
@descr: Whether the height of layout is auto grow down
sal_uInt16 GetScaleTile()
LwpLayoutMisc m_aMiscStuff
virtual sal_uInt8 GetContentOrientation() override
@descr: Get contents orientation
virtual double GetWidth() override
@descr: Get layout height
virtual bool HasContent() override
LwpObjectID m_LayGeometry
sal_Int32 DetermineWidth()
virtual bool IsAutoGrowDown() override
@descr: Whether the height of layout is auto grow down
std::unique_ptr< XFBGImage > GetFillPattern()
@descr: Get the fill pattern style.
LwpPoint GetOrigin()
@descr: Get layout origin point
virtual bool IsAutoGrowRight() override
@descr: Whether the height of layout is auto grow down
double GetGeometryWidth()
@descr: Get layout width, measured by "cm"
virtual bool HonorProtection() override
@descr: Whether it is honoring protection
bool IsPatternFill()
@descr: Whether the fill is pattern fill or not
LwpObjectID m_BasedOnStyle
LwpBackgroundStuff * GetBackgroundStuff()
@descr: Get LwpBackgroundStuff object according to m_LayBackgroundStuff id;
virtual bool IsProtected() override
@descr: Whether it is protected
LwpObjectID m_LayBackgroundStuff
bool IsSizeRightToContainer()
LwpColor * GetBackColor()
@descr: Get background color.
LwpLayoutGeometry * GetGeometry()
@descr: Get the geometry of current layout
bool GetUsePrinterSettings()
@descr: Whether the page uses the printer setting
double GetGeometryHeight()
@descr: Get layout height, measured by "cm"
virtual double GetHeight()
@descr: Get layout height
bool IsSizeRightToContent()
rtl::Reference< LwpObject > GetBasedOnStyle() const
rtl::Reference< LwpObject > obj(VO_TYPE tag=VO_INVALID) const
@descr get object from object factory per the object id
stream class for LwpObject body data provide stream like interface to read object data
virtual sal_uInt8 GetRelativeType() override
@descr: Get relative type
LwpLayoutRelativity * GetRelativityPiece()
@descr: get LayoutRelativity
void SetFont(rtl::Reference< XFFont > const &pFont)
@descr: Set font style for setting position of frame
virtual ~LwpPlacableLayout() override
virtual bool IsAnchorFrame() override
@descr: whether the parent layout is frame layout
virtual bool IsAnchorPage() override
@descr: whether the parent layout is page layout
sal_Int32 m_nBaseLineOffset
sal_Int32 GetBaseLineOffset()
@descr: Get offset from the baseline
LwpObjectID m_LayRelativity
virtual bool IsAnchorCell() override
@descr: whether the parent layout is cell layout
virtual void XFConvertFrame(XFContentContainer *, sal_Int32=0, sal_Int32=0, bool=false)
void Read() override
@descr Read name of LwpDLNFVList from object stream
sal_uInt8 GetWrapType()
@descr: get wrap type
LwpPlacableLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
rtl::Reference< XFFont > m_pFont
bool m_bGettingLayoutRelativity
const rtl::Reference< XFFont > & GetFont() const
@descr: Get font style for setting position of frame
encapsulate XInputStream to provide SvStream like interfaces
enumXFAlignType GetVerticalAlignmentType() const
virtual sal_uInt8 GetRelativeType()
@descr: get the relative type
virtual bool IsAnchorCell()
LwpUseWhen * GetUseWhen()
@descr: Get usewhen pointer
virtual bool MarginsSameAsParent()
bool IsFrame()
@descr: Whether this layout is frame layout or not
bool IsInlineToMargin() const
@descr: Determine whether the layout width is to margin
bool IsFooter()
@descr: Whether this layout is footer layout or not
virtual rtl::Reference< LwpVirtualLayout > GetContainerLayout()
bool IsHeader()
@descr: Whether this layout is header layout or not
void Read() override
@descr Read name of LwpDLNFVList from object stream
virtual double ExtMarginsValue(sal_uInt8)
LwpVirtualLayout(LwpObjectHeader const &objHdr, LwpSvStream *pStrm)
virtual double GetColGap(sal_uInt16 nIndex)
@descr: Get the gap between columns
virtual bool IsUseOnPage()
bool GetMarginsSameAsParent()
sal_uInt32 m_nOverrideFlag
virtual bool IsAutoGrow()
bool IsRelativeAnchored()
@descr: whether it is relative anchored layout
bool m_bGettingExtMarginsValue
bool m_bGettingIsAutoGrowDown
rtl::Reference< LwpVirtualLayout > GetParentLayout()
@descr: Get parent layout
virtual sal_Int32 GetPageNumber(sal_uInt16)
virtual double MarginsValue(sal_uInt8)
bool IsComplex() const
@descr: Whether it is a mirror layout
virtual bool IsAnchorPage()
virtual sal_uInt8 GetContentOrientation()
virtual bool HonorProtection()
@descr: Whether it is honoring protection
bool GetHonorProtection()
void SetStyleName(const OUString &str)
bool m_bGettingScaleCenter
virtual bool IsUseOnAllEvenPages()
virtual bool IsProtected()
@descr: Whether it is protected
sal_uInt32 m_nAttributes3
virtual bool IsAutoGrowUp()
virtual bool IsAutoGrowDown()
virtual LwpPara * GetLastParaOfPreviousStory()
bool m_bGettingAutoGrowUp
bool m_bGettingUsePrinterSettings
virtual double GetWidth()
const OUString & GetStyleName() const
bool IsMinimumHeight() const
@descr: whether it is MinimumHeight layout
virtual bool IsUseOnAllPages()
virtual bool IsForWaterMark()
bool IsFitGraphic()
@descr: Whether the size of layout is fit the graphic
bool HasProtection()
@descr: Whether it has protection
bool m_bGettingIsProtected
bool m_bGettingHasProtection
bool IsSuperTable()
@descr: Whether this layout is supertable layout or not
double GetExtMarginsValue(sal_uInt8 nWhichSide)
bool IsGroupHead()
@descr: Whether this layout is group layout or not
bool NoContentReference()
bool IsAutoGrowWidth()
@descr: Whether the width of layout is auto grow
LwpObjectID m_NextEnumerated
void RegisterChildStyle()
@descr: Register child layout style
LwpVirtualLayout * FindChildByType(LWP_LAYOUT_TYPE eType)
@descr: Find child layout by layout type
bool IsPage()
@descr: Whether this layout is page layout or not
double GetMarginsValue(sal_uInt8 nWhichSide)
bool m_bGettingBorderStuff
virtual bool IsAutoGrowRight()
bool m_bGettingMarginsValue
bool IsCell()
@descr: Whether this layout is cell layout or not
virtual bool IsAutoGrowLeft()
virtual sal_uInt16 GetNumCols()
bool m_bGettingStyleLayout
virtual bool IsUseOnAllOddPages()
virtual LwpUseWhen * VirtualGetUseWhen()
virtual bool IsAnchorFrame()
sal_uInt32 m_nAttributes2
LwpObjectID m_PreviousEnumerated
bool m_bGettingHonorProtection
virtual bool HasContent()
virtual LWP_LAYOUT_TYPE GetLayoutType()
@ LWP_FOOTNOTE_SUPERTABLE_LAYOUT
@ LWP_FOOTNOTE_CELL_LAYOUT
@ LWP_CONNECTED_CELL_LAYOUT
@ LWP_FOOTNOTE_ROW_LAYOUT
@ LWP_TABLE_HEADING_LAYOUT
@ LWP_TOC_SUPERTABLE_LAYOUT
@ LWP_ENDNOTE_SUPERTABLE_LAYOUT
bool m_bGettingMarginsSameAsParent
#define STYLE_CENTEREDVERTICALLY
#define STYLE_BOTTOMALIGNED
Base class of all Lwp VO objects.