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

#include <xftextstyle.hxx>

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

Public Member Functions

 XFTextStyle ()
 
virtual ~XFTextStyle () override
 
 XFTextStyle (XFTextStyle const &)=default
 
 XFTextStyle (XFTextStyle &&)=default
 
XFTextStyleoperator= (XFTextStyle const &)=default
 
XFTextStyleoperator= (XFTextStyle &&)=default
 
void SetFont (rtl::Reference< XFFont > const &font)
 @descr: set the font for the text span. More...
 
const rtl::Reference< XFFont > & GetFont () const
 
virtual enumXFStyle GetStyleFamily () override
 @descr get style family. More...
 
virtual bool Equal (IXFStyle *pStyle) override
 @descr decide whether two style are equal. More...
 
virtual void ToXml (IXFStream *strm) 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

rtl::Reference< XFFontm_pFont
 

Additional Inherited Members

- Protected Attributes inherited from XFStyle
OUString m_strStyleName
 
OUString m_strParentStyleName
 

Detailed Description

Definition at line 73 of file xftextstyle.hxx.

Constructor & Destructor Documentation

◆ XFTextStyle() [1/3]

XFTextStyle::XFTextStyle ( )

Definition at line 66 of file xftextstyle.cxx.

◆ ~XFTextStyle()

XFTextStyle::~XFTextStyle ( )
overridevirtual

Definition at line 68 of file xftextstyle.cxx.

◆ XFTextStyle() [2/3]

XFTextStyle::XFTextStyle ( XFTextStyle const &  )
default

◆ XFTextStyle() [3/3]

XFTextStyle::XFTextStyle ( XFTextStyle &&  )
default

Member Function Documentation

◆ Equal()

bool XFTextStyle::Equal ( IXFStyle pStyle)
overridevirtual

@descr decide whether two style are equal.

Reimplemented from XFStyle.

Definition at line 72 of file xftextstyle.cxx.

References enumXFStyleText, IXFStyle::GetStyleFamily(), and m_pFont.

◆ GetFont()

const rtl::Reference< XFFont > & XFTextStyle::GetFont ( ) const
inline

◆ GetStyleFamily()

enumXFStyle XFTextStyle::GetStyleFamily ( )
overridevirtual

@descr get style family.

Reimplemented from XFStyle.

Definition at line 98 of file xftextstyle.cxx.

References enumXFStyleText.

◆ operator=() [1/2]

XFTextStyle & XFTextStyle::operator= ( XFTextStyle &&  )
default

◆ operator=() [2/2]

XFTextStyle & XFTextStyle::operator= ( XFTextStyle const &  )
default

◆ SetFont()

void XFTextStyle::SetFont ( rtl::Reference< XFFont > const &  font)

@descr: set the font for the text span.

Definition at line 70 of file xftextstyle.cxx.

References m_pFont.

Referenced by XFStyleContainer::ManageStyleFont().

◆ ToXml()

void XFTextStyle::ToXml ( IXFStream strm)
overridevirtual

Member Data Documentation

◆ m_pFont

rtl::Reference<XFFont> XFTextStyle::m_pFont
private

Definition at line 100 of file xftextstyle.hxx.

Referenced by Equal(), GetFont(), SetFont(), and ToXml().


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