|
LibreOffice Module lotuswordpro (master) 1
|
For register frame style and parse frame. More...
#include <lwpframelayout.hxx>
Public Member Functions | |
| LwpFrame (LwpPlacableLayout *pLayout) | |
| ~LwpFrame () | |
| void | RegisterStyle (std::unique_ptr< XFFrameStyle > &rFrameStyle) |
| @descr: parse frame More... | |
| void | Parse (XFFrame *pXFFrame, sal_Int32 nPageNo) |
| @descr: parse frame and set frame properties More... | |
| void | XFConvert (XFContentContainer *pCont) |
| @descr: parse frame relative to page, frame or cell More... | |
Private Member Functions | |
| void | ApplyWrapType (XFFrameStyle *pFrameStyle) |
| @descr: set frame wrap type style More... | |
| void | ApplyMargins (XFFrameStyle *pFrameStyle) |
| @descr: set frame margins style More... | |
| void | ApplyPadding (XFFrameStyle *pFrameStyle) |
| @descr: set padding border style More... | |
| void | ApplyBorders (XFFrameStyle *pFrameStyle) |
| @descr: set frame border style More... | |
| void | ApplyColumns (XFFrameStyle *pFrameStyle) |
| @descr: set frame columns style More... | |
| void | ApplyShadow (XFFrameStyle *pFrameStyle) |
| @descr: set frame shadow style More... | |
| void | ApplyBackColor (XFFrameStyle *pFrameStyle) |
| @descr: set frame back color style More... | |
| void | ApplyProtect (XFFrameStyle *pFrameStyle) |
| @descr: set frame protect style More... | |
| void | ApplyTextDir (XFFrameStyle *pFrameStyle) |
| @descr: set frame text direction style More... | |
| void | ApplyPosType (XFFrameStyle *pFrameStyle) |
| @descr: set frame position type style More... | |
| void | ApplyWatermark (XFFrameStyle *pFrameStyle) |
| @descr: set frame watermark style More... | |
| void | ApplyPatternFill (XFFrameStyle *pFrameStyle) |
| Apply pattern fill to frame style. More... | |
| void | ApplyBackGround (XFFrameStyle *pFrameStyle) |
| Apply background to frame style. More... | |
| void | ParseAnchorType (XFFrame *pXFFrame) |
| @descr: set frame size, anchor type, anchored page number More... | |
| bool | IsLeftWider () |
| @descr Calculate the distance between the frame object and the page margins. More... | |
Private Attributes | |
| LwpPlacableLayout * | m_pLayout |
| OUString | m_StyleName |
For register frame style and parse frame.
Definition at line 76 of file lwpframelayout.hxx.
|
explicit |
Definition at line 72 of file lwpframelayout.cxx.
| LwpFrame::~LwpFrame | ( | ) |
Definition at line 77 of file lwpframelayout.cxx.
|
private |
@descr: set frame back color style
| pFrameStyle - Frame Style object |
Definition at line 381 of file lwpframelayout.cxx.
References LwpMiddleLayout::GetBackColor(), m_pLayout, XFFrameStyle::SetBackColor(), and LwpColor::To24Color().
Referenced by ApplyBackGround().
|
private |
Apply background to frame style.
| pFrameStyle | - pointer of XFFrameStyle |
Definition at line 563 of file lwpframelayout.cxx.
References ApplyBackColor(), ApplyPatternFill(), LwpMiddleLayout::IsPatternFill(), and m_pLayout.
Referenced by RegisterStyle().
|
private |
@descr: set frame border style
| pFrameStyle - Frame Style object |
Definition at line 342 of file lwpframelayout.cxx.
References LwpMiddleLayout::GetXFBorders(), m_pLayout, and XFFrameStyle::SetBorders().
Referenced by RegisterStyle().
|
private |
@descr: set frame columns style
| pFrameStyle - Frame Style object |
Definition at line 355 of file lwpframelayout.cxx.
References LwpLayout::GetXFColumns(), m_pLayout, and XFFrameStyle::SetColumns().
Referenced by RegisterStyle().
|
private |
@descr: set frame margins style
| pFrameStyle - Frame Style object |
Definition at line 316 of file lwpframelayout.cxx.
References LwpVirtualLayout::GetExtMarginsValue(), m_pLayout, MARGIN_BOTTOM, MARGIN_LEFT, MARGIN_RIGHT, MARGIN_TOP, and XFFrameStyle::SetMargins().
Referenced by RegisterStyle().
|
private |
@descr: set padding border style
| pFrameStyle - Frame Style object |
Definition at line 329 of file lwpframelayout.cxx.
References LwpVirtualLayout::GetMarginsValue(), m_pLayout, MARGIN_BOTTOM, MARGIN_LEFT, MARGIN_RIGHT, MARGIN_TOP, and XFFrameStyle::SetPadding().
Referenced by RegisterStyle().
|
private |
Apply pattern fill to frame style.
| pFrameStyle | - pointer of XFFrameStyle |
Definition at line 549 of file lwpframelayout.cxx.
References LwpMiddleLayout::GetFillPattern(), m_pLayout, and XFFrameStyle::SetBackImage().
Referenced by ApplyBackGround().
|
private |
@descr: set frame position type style
| pFrameStyle - Frame Style object |
Definition at line 416 of file lwpframelayout.cxx.
References enumXFFrameXPosCenter, enumXFFrameXPosFromLeft, enumXFFrameXRelPage, enumXFFrameXRelPara, enumXFFrameXRelParaContent, enumXFFrameYPosBelow, enumXFFrameYPosBottom, enumXFFrameYPosFromTop, enumXFFrameYPosMiddle, enumXFFrameYPosTop, enumXFFrameYRelBaseLine, enumXFFrameYRelChar, enumXFFrameYRelPage, enumXFFrameYRelPara, enumXFFrameYRelParaContent, LwpPlacableLayout::GetBaseLineOffset(), LwpLayout::GetContainerLayout(), LwpPlacableLayout::GetRelativeType(), LwpPlacableLayout::IsAnchorCell(), LwpPlacableLayout::IsAnchorFrame(), LwpPlacableLayout::IsAnchorPage(), LwpLayoutRelativityGuts::LAY_CONTENT_RELATIVE, LwpLayoutRelativityGuts::LAY_INLINE, LwpLayoutRelativityGuts::LAY_INLINE_NEWLINE, LwpLayoutRelativityGuts::LAY_INLINE_VERTICAL, LwpLayoutRelativityGuts::LAY_PARA_RELATIVE, LwpLayoutRelativityGuts::LAY_PARENT_RELATIVE, m_pLayout, nType, XFFrameStyle::SetXPosType(), and XFFrameStyle::SetYPosType().
Referenced by RegisterStyle().
|
private |
@descr: set frame protect style
| pFrameStyle - Frame Style object |
Definition at line 395 of file lwpframelayout.cxx.
References LwpVirtualLayout::GetIsProtected(), m_pLayout, and XFFrameStyle::SetProtect().
Referenced by RegisterStyle().
|
private |
@descr: set frame shadow style
| pFrameStyle - Frame Style object |
Definition at line 368 of file lwpframelayout.cxx.
References LwpLayout::GetXFShadow(), m_pLayout, and XFFrameStyle::SetShadow().
Referenced by RegisterStyle().
|
private |
@descr: set frame text direction style
| pFrameStyle - Frame Style object |
Definition at line 407 of file lwpframelayout.cxx.
References LwpMiddleLayout::GetTextDirection(), m_pLayout, and XFFrameStyle::SetTextDir().
Referenced by RegisterStyle().
|
private |
@descr: set frame watermark style
| pFrameStyle - Frame Style object |
Definition at line 527 of file lwpframelayout.cxx.
References LwpMiddleLayout::GetBackgroundStuff(), LwpMiddleLayout::GetWaterMarkLayout(), LwpMiddleLayout::GetXFBGImage(), LwpBackgroundStuff::IsTransparent(), m_pLayout, XFFrameStyle::SetBackImage(), and XFFrameStyle::SetTransparency().
Referenced by RegisterStyle().
|
private |
@descr: set frame wrap type style
| pFrameStyle - Frame Style object |
Definition at line 239 of file lwpframelayout.cxx.
References enumXFWrapBest, enumXFWrapLeft, enumXFWrapNone, enumXFWrapParallel, enumXFWrapRight, enumXFWrapRunThrough, LwpMiddleLayout::GetBackColor(), LwpLayout::GetContainerLayout(), LwpPlacableLayout::GetRelativeType(), LwpMiddleLayout::GetWaterMarkLayout(), LwpPlacableLayout::GetWrapType(), IsLeftWider(), LwpLayoutRelativityGuts::LAY_INLINE_NEWLINE, LwpPlacableLayout::LAY_NO_WRAP_AROUND, LwpPlacableLayout::LAY_NO_WRAP_BESIDE, LwpPlacableLayout::LAY_WRAP_AROUND, LwpPlacableLayout::LAY_WRAP_BOTH, LwpPlacableLayout::LAY_WRAP_IRREG_BIGGEST, LwpPlacableLayout::LAY_WRAP_IRREG_BOTH, LwpPlacableLayout::LAY_WRAP_IRREG_LEFT, LwpPlacableLayout::LAY_WRAP_IRREG_RIGHT, LwpPlacableLayout::LAY_WRAP_LEFT, LwpPlacableLayout::LAY_WRAP_RIGHT, m_pLayout, XFFrameStyle::SetBackColor(), XFFrameStyle::SetTransparency(), and XFFrameStyle::SetWrapType().
Referenced by RegisterStyle().
|
private |
@descr Calculate the distance between the frame object and the page margins.
And determine which side(left or right) is wider
Definition at line 712 of file lwpframelayout.cxx.
References LwpTools::ConvertFromUnitsToMetric(), LwpLayout::GetContainerLayout(), LwpVirtualLayout::GetExtMarginsValue(), LwpVirtualLayout::GetMarginsValue(), LwpMiddleLayout::GetOrigin(), LwpVirtualLayout::GetWidth(), LwpMiddleLayout::GetWidth(), LwpPoint::GetX(), LwpVirtualLayout::IsCell(), m_pLayout, MARGIN_LEFT, and MARGIN_RIGHT.
Referenced by ApplyWrapType().
| void LwpFrame::Parse | ( | XFFrame * | pXFFrame, |
| sal_Int32 | nPageNo | ||
| ) |
@descr: parse frame and set frame properties
| pXFFrame - XFFrame object | |
| nPageNo - the page number that the frame anchors |
Definition at line 110 of file lwpframelayout.cxx.
References LwpMiddleLayout::GetContent(), LwpMiddleLayout::GetGeometry(), LwpMiddleLayout::GetHeight(), LwpDLNFVList::GetName(), LwpFrameLayout::GetNextLinkName(), LwpMiddleLayout::GetWidth(), LwpMiddleLayout::IsAutoGrow(), LwpVirtualLayout::IsFrame(), LwpVirtualLayout::IsGroupHead(), LwpVirtualLayout::IsMinimumHeight(), m_pLayout, m_StyleName, LwpObjectID::obj(), ParseAnchorType(), XFFrame::SetAnchorPage(), XFFrame::SetHeight(), XFFrame::SetMinHeight(), XFFrame::SetName(), XFFrame::SetNextLink(), XFContent::SetStyleName(), XFFrame::SetWidth(), and LwpAtomHolder::str().
|
private |
@descr: set frame size, anchor type, anchored page number
| pXFFrame - XFFrame object |
Definition at line 585 of file lwpframelayout.cxx.
References CM_PER_INCH, LwpTools::ConvertFromUnitsToMetric(), enumXFAnchorAsChar, enumXFAnchorChar, enumXFAnchorFrame, enumXFAnchorNone, enumXFAnchorPage, enumXFAnchorPara, LwpPlacableLayout::GetBaseLineOffset(), LwpLayout::GetContainerLayout(), LwpVirtualLayout::GetExtMarginsValue(), LwpPlacableLayout::GetFont(), LwpMiddleLayout::GetGeometry(), LwpMiddleLayout::GetGeometryHeight(), LwpVirtualLayout::GetMarginsValue(), LwpLayoutGeometry::GetOrigin(), LwpPlacableLayout::GetRelativeType(), LwpPoint::GetX(), LwpPoint::GetY(), LwpPlacableLayout::IsAnchorCell(), LwpPlacableLayout::IsAnchorFrame(), LwpPlacableLayout::IsAnchorPage(), LwpLayoutRelativityGuts::LAY_CONTENT_RELATIVE, LwpLayoutRelativityGuts::LAY_INLINE, LwpLayoutRelativityGuts::LAY_INLINE_NEWLINE, LwpLayoutRelativityGuts::LAY_INLINE_VERTICAL, LwpLayoutRelativityGuts::LAY_PARA_RELATIVE, LwpLayoutRelativityGuts::LAY_PARENT_RELATIVE, m_pLayout, MARGIN_BOTTOM, MARGIN_TOP, nType, POINTS_PER_INCH, XFFrame::SetAnchorPage(), XFFrame::SetAnchorType(), XFFrame::SetX(), and XFFrame::SetY().
Referenced by Parse().
| void LwpFrame::RegisterStyle | ( | std::unique_ptr< XFFrameStyle > & | rFrameStyle | ) |
@descr: parse frame
| register frame style | |
| pFrameStyle - Frame Style object |
Definition at line 84 of file lwpframelayout.cxx.
References XFStyleManager::AddStyle(), ApplyBackGround(), ApplyBorders(), ApplyColumns(), ApplyMargins(), ApplyPadding(), ApplyPosType(), ApplyProtect(), ApplyShadow(), ApplyTextDir(), ApplyWatermark(), ApplyWrapType(), LwpGlobalMgr::GetInstance(), LwpDLNFVList::GetName(), IXFStyle::GetStyleName(), LwpGlobalMgr::GetXFStyleManager(), m_pLayout, IXFStyleRet::m_pStyle, m_StyleName, LwpVirtualLayout::SetStyleName(), and LwpAtomHolder::str().
| void LwpFrame::XFConvert | ( | XFContentContainer * | pCont | ) |
@descr: parse frame relative to page, frame or cell
| pCont - content container which contains the frame |
Definition at line 184 of file lwpframelayout.cxx.
References first, FIRST_LAYOUTPAGENO, LwpVirtualLayout::GetParentLayout(), LwpLayout::GetUsePage(), LwpPlacableLayout::IsAnchorPage(), LwpTools::IsEvenNumber(), LwpTools::IsOddNumber(), LwpLayout::IsUseOnAllEvenPages(), LwpLayout::IsUseOnAllOddPages(), LwpLayout::IsUseOnAllPages(), LwpLayout::IsUseOnPage(), LAST_LAYOUTPAGENO, m_pLayout, and LwpPlacableLayout::XFConvertFrame().
|
private |
Definition at line 103 of file lwpframelayout.hxx.
Referenced by ApplyBackColor(), ApplyBackGround(), ApplyBorders(), ApplyColumns(), ApplyMargins(), ApplyPadding(), ApplyPatternFill(), ApplyPosType(), ApplyProtect(), ApplyShadow(), ApplyTextDir(), ApplyWatermark(), ApplyWrapType(), IsLeftWider(), Parse(), ParseAnchorType(), RegisterStyle(), and XFConvert().
|
private |
Definition at line 104 of file lwpframelayout.hxx.
Referenced by Parse(), and RegisterStyle().