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

#include <xftimestyle.hxx>

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

Public Member Functions

 XFTimeStyle ()
 
virtual ~XFTimeStyle () override
 
void AddHour (bool bLongFmt=true)
 
void AddMinute (bool bLongFmt=true)
 
void AddSecond (bool bLongFmt=true)
 
void SetAmPm (bool bAmPm)
 
void AddText (const OUString &part)
 
virtual enumXFStyle GetStyleFamily () override
 @descr get style family. More...
 
virtual void ToXml (IXFStream *pStrm) override
 
void SetTruncate (bool bTrunc)
 
- 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

bool m_bAmPm
 
std::vector< XFTimePartm_aParts
 
bool m_bTruncate
 

Additional Inherited Members

- Protected Attributes inherited from XFStyle
OUString m_strStyleName
 
OUString m_strParentStyleName
 

Detailed Description

Definition at line 99 of file xftimestyle.hxx.

Constructor & Destructor Documentation

◆ XFTimeStyle()

XFTimeStyle::XFTimeStyle ( )

Definition at line 110 of file xftimestyle.cxx.

References m_bAmPm, and m_bTruncate.

◆ ~XFTimeStyle()

XFTimeStyle::~XFTimeStyle ( )
overridevirtual

Definition at line 116 of file xftimestyle.cxx.

Member Function Documentation

◆ AddHour()

void XFTimeStyle::AddHour ( bool  bLongFmt = true)
inline

◆ AddMinute()

void XFTimeStyle::AddMinute ( bool  bLongFmt = true)
inline

◆ AddSecond()

void XFTimeStyle::AddSecond ( bool  bLongFmt = true)
inline

◆ AddText()

void XFTimeStyle::AddText ( const OUString &  part)
inline

◆ GetStyleFamily()

enumXFStyle XFTimeStyle::GetStyleFamily ( )
overridevirtual

@descr get style family.

Reimplemented from XFStyle.

Definition at line 120 of file xftimestyle.cxx.

References enumXFStyleTime.

◆ SetAmPm()

void XFTimeStyle::SetAmPm ( bool  bAmPm)
inline

Definition at line 175 of file xftimestyle.hxx.

References m_bAmPm.

◆ SetTruncate()

void XFTimeStyle::SetTruncate ( bool  bTrunc)
inline

Definition at line 188 of file xftimestyle.hxx.

References m_bTruncate.

◆ ToXml()

void XFTimeStyle::ToXml ( IXFStream pStrm)
overridevirtual

Member Data Documentation

◆ m_aParts

std::vector<XFTimePart> XFTimeStyle::m_aParts
private

Definition at line 126 of file xftimestyle.hxx.

Referenced by AddHour(), AddMinute(), AddSecond(), AddText(), and ToXml().

◆ m_bAmPm

bool XFTimeStyle::m_bAmPm
private

Definition at line 125 of file xftimestyle.hxx.

Referenced by SetAmPm(), ToXml(), and XFTimeStyle().

◆ m_bTruncate

bool XFTimeStyle::m_bTruncate
private

Definition at line 127 of file xftimestyle.hxx.

Referenced by SetTruncate(), ToXml(), and XFTimeStyle().


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