LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LwpFrame Class Reference

For register frame style and parse frame. More...

#include <lwpframelayout.hxx>

Collaboration diagram for LwpFrame:
[legend]

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

LwpPlacableLayoutm_pLayout
 
OUString m_StyleName
 

Detailed Description

For register frame style and parse frame.

Definition at line 76 of file lwpframelayout.hxx.

Constructor & Destructor Documentation

◆ LwpFrame()

LwpFrame::LwpFrame ( LwpPlacableLayout pLayout)
explicit

Definition at line 72 of file lwpframelayout.cxx.

◆ ~LwpFrame()

LwpFrame::~LwpFrame ( )

Definition at line 77 of file lwpframelayout.cxx.

Member Function Documentation

◆ ApplyBackColor()

void LwpFrame::ApplyBackColor ( XFFrameStyle pFrameStyle)
private

@descr: set frame back color style

Parameters
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().

◆ ApplyBackGround()

void LwpFrame::ApplyBackGround ( XFFrameStyle pFrameStyle)
private

Apply background to frame style.

Parameters
pFrameStyle- pointer of XFFrameStyle
Returns

Definition at line 563 of file lwpframelayout.cxx.

References ApplyBackColor(), ApplyPatternFill(), LwpMiddleLayout::IsPatternFill(), and m_pLayout.

Referenced by RegisterStyle().

◆ ApplyBorders()

void LwpFrame::ApplyBorders ( XFFrameStyle pFrameStyle)
private

@descr: set frame border style

Parameters
pFrameStyle - Frame Style object

Definition at line 342 of file lwpframelayout.cxx.

References LwpMiddleLayout::GetXFBorders(), m_pLayout, and XFFrameStyle::SetBorders().

Referenced by RegisterStyle().

◆ ApplyColumns()

void LwpFrame::ApplyColumns ( XFFrameStyle pFrameStyle)
private

@descr: set frame columns style

Parameters
pFrameStyle - Frame Style object

Definition at line 355 of file lwpframelayout.cxx.

References LwpLayout::GetXFColumns(), m_pLayout, and XFFrameStyle::SetColumns().

Referenced by RegisterStyle().

◆ ApplyMargins()

void LwpFrame::ApplyMargins ( XFFrameStyle pFrameStyle)
private

@descr: set frame margins style

Parameters
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().

◆ ApplyPadding()

void LwpFrame::ApplyPadding ( XFFrameStyle pFrameStyle)
private

@descr: set padding border style

Parameters
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().

◆ ApplyPatternFill()

void LwpFrame::ApplyPatternFill ( XFFrameStyle pFrameStyle)
private

Apply pattern fill to frame style.

Parameters
pFrameStyle- pointer of XFFrameStyle
Returns

Definition at line 549 of file lwpframelayout.cxx.

References LwpMiddleLayout::GetFillPattern(), m_pLayout, and XFFrameStyle::SetBackImage().

Referenced by ApplyBackGround().

◆ ApplyPosType()

void LwpFrame::ApplyPosType ( XFFrameStyle pFrameStyle)
private

◆ ApplyProtect()

void LwpFrame::ApplyProtect ( XFFrameStyle pFrameStyle)
private

@descr: set frame protect style

Parameters
pFrameStyle - Frame Style object

Definition at line 395 of file lwpframelayout.cxx.

References LwpVirtualLayout::GetIsProtected(), m_pLayout, and XFFrameStyle::SetProtect().

Referenced by RegisterStyle().

◆ ApplyShadow()

void LwpFrame::ApplyShadow ( XFFrameStyle pFrameStyle)
private

@descr: set frame shadow style

Parameters
pFrameStyle - Frame Style object

Definition at line 368 of file lwpframelayout.cxx.

References LwpLayout::GetXFShadow(), m_pLayout, and XFFrameStyle::SetShadow().

Referenced by RegisterStyle().

◆ ApplyTextDir()

void LwpFrame::ApplyTextDir ( XFFrameStyle pFrameStyle)
private

@descr: set frame text direction style

Parameters
pFrameStyle - Frame Style object

Definition at line 407 of file lwpframelayout.cxx.

References LwpMiddleLayout::GetTextDirection(), m_pLayout, and XFFrameStyle::SetTextDir().

Referenced by RegisterStyle().

◆ ApplyWatermark()

void LwpFrame::ApplyWatermark ( XFFrameStyle pFrameStyle)
private

◆ ApplyWrapType()

void LwpFrame::ApplyWrapType ( XFFrameStyle pFrameStyle)
private

◆ IsLeftWider()

bool LwpFrame::IsLeftWider ( )
private

◆ Parse()

void LwpFrame::Parse ( XFFrame pXFFrame,
sal_Int32  nPageNo 
)

◆ ParseAnchorType()

void LwpFrame::ParseAnchorType ( XFFrame pXFFrame)
private

◆ RegisterStyle()

void LwpFrame::RegisterStyle ( std::unique_ptr< XFFrameStyle > &  rFrameStyle)

◆ XFConvert()

void LwpFrame::XFConvert ( XFContentContainer pCont)

Member Data Documentation

◆ m_pLayout

LwpPlacableLayout* LwpFrame::m_pLayout
private

◆ m_StyleName

OUString LwpFrame::m_StyleName
private

Definition at line 104 of file lwpframelayout.hxx.

Referenced by Parse(), and RegisterStyle().


The documentation for this class was generated from the following files: