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

Style for all drawing object, which can includes line style, area style, wrap style. More...

#include <xfdrawstyle.hxx>

Inheritance diagram for XFDrawStyle:
[legend]
Collaboration diagram for XFDrawStyle:
[legend]

Public Member Functions

 XFDrawStyle ()
 
virtual ~XFDrawStyle () override
 
void SetLineStyle (double width, XFColor color)
 @descr Set drawing object border line. More...
 
void SetLineDashStyle (enumXFLineStyle style, double len1, double len2, double space)
 @descr Set drawing object dash border style. More...
 
void SetAreaColor (XFColor const &color)
 @descr Set drawing object area fill color. More...
 
void SetAreaLineStyle (enumXFAreaLineStyle style, sal_Int32 angle, double space, XFColor lineColor)
 @descr Set drawing object area grid style. More...
 
void SetArrowStart (const OUString &start, double size)
 @descr Set drawing object arrow start style,only lines can have arrows. More...
 
void SetArrowEnd (const OUString &end, double size)
 @descr Set drawing object arrow end style,only lines can have arrows. More...
 
void SetFontWorkStyle (enumXFFWStyle eStyle, enumXFFWAdjust eAdjust)
 
virtual enumXFStyle GetStyleFamily () override
 @descr get style family. More...
 
virtual void ToXml (IXFStream *pStrm) override
 
- Public Member Functions inherited from XFStyle
 XFStyle ()
 
virtual ~XFStyle () override
 
 XFStyle (XFStyle const &)=default
 
 XFStyle (XFStyle &&)=default
 
XFStyleoperator= (XFStyle const &)=default
 
XFStyleoperator= (XFStyle &&)=default
 
virtual OUString GetStyleName () override
 @descr get style name. More...
 
virtual void SetStyleName (const OUString &styleName) override
 @descr set style name. More...
 
virtual OUString GetParentStyleName () override
 @descr set parent style name. More...
 
virtual void SetParentStyleName (const OUString &styleName) override
 @descr return parent style name. More...
 
virtual enumXFStyle GetStyleFamily () override
 @descr get style family. More...
 
virtual bool Equal (IXFStyle *pStyle) override
 @descr decide whether two style are equal. More...
 
- Public Member Functions inherited from IXFStyle
 IXFStyle ()=default
 
 IXFStyle (IXFStyle const &)=default
 
 IXFStyle (IXFStyle &&)=default
 
IXFStyleoperator= (IXFStyle const &)=default
 
IXFStyleoperator= (IXFStyle &&)=default
 
virtual ~IXFStyle ()
 
virtual OUString GetStyleName ()=0
 @descr: return the style name. More...
 
virtual void SetStyleName (const OUString &styleName)=0
 @descr: set the name of the style. More...
 
virtual OUString GetParentStyleName ()=0
 @descr return the parent style name. More...
 
virtual void SetParentStyleName (const OUString &parent)=0
 @descr: Parent paragraph style. More...
 
virtual enumXFStyle GetStyleFamily ()=0
 @descr: return the style family. More...
 
virtual bool Equal (IXFStyle *pStyle)=0
 @descr: Compare whatever two style object are the same. More...
 
virtual void ToXml (IXFStream *stream)=0
 

Private Attributes

std::unique_ptr< XFFontWorkStylem_pFontWorkStyle
 
XFDrawLineStylem_pLineStyle
 
XFDrawAreaStylem_pAreaStyle
 
OUString m_strArrowStart
 
OUString m_strArrowEnd
 
double m_fArrowStartSize
 
double m_fArrowEndSize
 
bool m_bArrowStartCenter
 
bool m_bArrowEndCenter
 
bool m_bLineStyleRegistered
 
bool m_bAreaStyleRegistered
 

Additional Inherited Members

- Protected Attributes inherited from XFStyle
OUString m_strStyleName
 
OUString m_strParentStyleName
 

Detailed Description

Style for all drawing object, which can includes line style, area style, wrap style.

Line style includes line type, line width and line color. Area style can be divided into 5 kinds, color fill, hatch, bitmap, gradient.I only support color fill and hatch now.

Definition at line 79 of file xfdrawstyle.hxx.

Constructor & Destructor Documentation

◆ XFDrawStyle()

XFDrawStyle::XFDrawStyle ( )

Definition at line 67 of file xfdrawstyle.cxx.

◆ ~XFDrawStyle()

XFDrawStyle::~XFDrawStyle ( )
overridevirtual

Member Function Documentation

◆ GetStyleFamily()

enumXFStyle XFDrawStyle::GetStyleFamily ( )
overridevirtual

@descr get style family.

Reimplemented from XFStyle.

Definition at line 158 of file xfdrawstyle.cxx.

References enumXFStyleGraphics.

◆ SetAreaColor()

void XFDrawStyle::SetAreaColor ( XFColor const &  color)

@descr Set drawing object area fill color.

Definition at line 130 of file xfdrawstyle.cxx.

References XFGlobal::GenAreaName(), m_pAreaStyle, XFDrawAreaStyle::SetBackColor(), and XFStyle::SetStyleName().

Referenced by LwpDrawObj::SetFillStyle().

◆ SetAreaLineStyle()

void XFDrawStyle::SetAreaLineStyle ( enumXFAreaLineStyle  style,
sal_Int32  angle,
double  space,
XFColor  lineColor 
)

◆ SetArrowEnd()

void XFDrawStyle::SetArrowEnd ( const OUString &  end,
double  size 
)
inline

@descr Set drawing object arrow end style,only lines can have arrows.

Definition at line 146 of file xfdrawstyle.hxx.

References end, m_bArrowEndCenter, m_fArrowEndSize, m_strArrowEnd, and size.

Referenced by LwpDrawObj::SetArrowHead().

◆ SetArrowStart()

void XFDrawStyle::SetArrowStart ( const OUString &  start,
double  size 
)
inline

@descr Set drawing object arrow start style,only lines can have arrows.

Definition at line 138 of file xfdrawstyle.hxx.

References m_bArrowStartCenter, m_fArrowStartSize, m_strArrowStart, size, and start.

Referenced by LwpDrawObj::SetArrowHead().

◆ SetFontWorkStyle()

void XFDrawStyle::SetFontWorkStyle ( enumXFFWStyle  eStyle,
enumXFFWAdjust  eAdjust 
)

Definition at line 118 of file xfdrawstyle.cxx.

References m_pFontWorkStyle.

◆ SetLineDashStyle()

void XFDrawStyle::SetLineDashStyle ( enumXFLineStyle  style,
double  len1,
double  len2,
double  space 
)

◆ SetLineStyle()

void XFDrawStyle::SetLineStyle ( double  width,
XFColor  color 
)

◆ ToXml()

void XFDrawStyle::ToXml ( IXFStream pStrm)
overridevirtual

Member Data Documentation

◆ m_bAreaStyleRegistered

bool XFDrawStyle::m_bAreaStyleRegistered
private

Definition at line 135 of file xfdrawstyle.hxx.

Referenced by SetAreaLineStyle(), and ~XFDrawStyle().

◆ m_bArrowEndCenter

bool XFDrawStyle::m_bArrowEndCenter
private

Definition at line 133 of file xfdrawstyle.hxx.

Referenced by SetArrowEnd(), and ToXml().

◆ m_bArrowStartCenter

bool XFDrawStyle::m_bArrowStartCenter
private

Definition at line 132 of file xfdrawstyle.hxx.

Referenced by SetArrowStart(), and ToXml().

◆ m_bLineStyleRegistered

bool XFDrawStyle::m_bLineStyleRegistered
private

Definition at line 134 of file xfdrawstyle.hxx.

Referenced by SetLineDashStyle(), and ~XFDrawStyle().

◆ m_fArrowEndSize

double XFDrawStyle::m_fArrowEndSize
private

Definition at line 131 of file xfdrawstyle.hxx.

Referenced by SetArrowEnd(), and ToXml().

◆ m_fArrowStartSize

double XFDrawStyle::m_fArrowStartSize
private

Definition at line 130 of file xfdrawstyle.hxx.

Referenced by SetArrowStart(), and ToXml().

◆ m_pAreaStyle

XFDrawAreaStyle* XFDrawStyle::m_pAreaStyle
private

Definition at line 127 of file xfdrawstyle.hxx.

Referenced by SetAreaColor(), SetAreaLineStyle(), ToXml(), and ~XFDrawStyle().

◆ m_pFontWorkStyle

std::unique_ptr<XFFontWorkStyle> XFDrawStyle::m_pFontWorkStyle
private

Definition at line 125 of file xfdrawstyle.hxx.

Referenced by SetFontWorkStyle(), and ToXml().

◆ m_pLineStyle

XFDrawLineStyle* XFDrawStyle::m_pLineStyle
private

Definition at line 126 of file xfdrawstyle.hxx.

Referenced by SetLineDashStyle(), SetLineStyle(), ToXml(), and ~XFDrawStyle().

◆ m_strArrowEnd

OUString XFDrawStyle::m_strArrowEnd
private

Definition at line 129 of file xfdrawstyle.hxx.

Referenced by SetArrowEnd(), and ToXml().

◆ m_strArrowStart

OUString XFDrawStyle::m_strArrowStart
private

Definition at line 128 of file xfdrawstyle.hxx.

Referenced by SetArrowStart(), and ToXml().


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