LibreOffice Module editeng (master) 1
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
SvxAuthorField Class Referencefinal

#include <flditem.hxx>

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

Public Member Functions

virtual sal_Int32 GetClassId () const override
 
 SvxAuthorField (const OUString &rFirstName, const OUString &rLastName, const OUString &rShortName, SvxAuthorType eType=SvxAuthorType::Var, SvxAuthorFormat eFormat=SvxAuthorFormat::FullName)
 
SvxAuthorType GetType () const
 
void SetType (SvxAuthorType eTp)
 
SvxAuthorFormat GetFormat () const
 
void SetFormat (SvxAuthorFormat eFmt)
 
OUString GetFormatted () const
 
virtual std::unique_ptr< SvxFieldDataClone () const override
 
virtual bool operator== (const SvxFieldData &) const override
 
- Public Member Functions inherited from SvxFieldData
virtual sal_Int32 GetClassId () const
 
 SvxFieldData ()
 
virtual ~SvxFieldData ()
 
 SvxFieldData (SvxFieldData const &)=default
 
 SvxFieldData (SvxFieldData &&)=default
 
SvxFieldDataoperator= (SvxFieldData const &)=default
 
SvxFieldDataoperator= (SvxFieldData &&)=default
 
virtual std::unique_ptr< SvxFieldDataClone () const
 
virtual bool operator== (const SvxFieldData &) const
 
virtual MetaActioncreateBeginComment () const
 

Static Public Attributes

static constexpr auto CLASS_ID = css::text::textfield::Type::AUTHOR
 
- Static Public Attributes inherited from SvxFieldData
static constexpr auto CLASS_ID = css::text::textfield::Type::UNSPECIFIED
 

Private Attributes

OUString aName
 
OUString aFirstName
 
OUString aShortName
 
SvxAuthorType eType
 
SvxAuthorFormat eFormat
 

Additional Inherited Members

- Static Public Member Functions inherited from SvxFieldData
static SvxFieldDataCreate (const css::uno::Reference< css::text::XTextContent > &xContent)
 
static MetaActioncreateEndComment ()
 

Detailed Description

Definition at line 362 of file flditem.hxx.

Constructor & Destructor Documentation

◆ SvxAuthorField()

SvxAuthorField::SvxAuthorField ( const OUString &  rFirstName,
const OUString &  rLastName,
const OUString &  rShortName,
SvxAuthorType  eType = SvxAuthorType::Var,
SvxAuthorFormat  eFormat = SvxAuthorFormat::FullName 
)

Definition at line 813 of file flditem.cxx.

References aFirstName, aName, aShortName, eFormat, and eType.

Member Function Documentation

◆ Clone()

std::unique_ptr< SvxFieldData > SvxAuthorField::Clone ( ) const
overridevirtual

Reimplemented from SvxFieldData.

Definition at line 826 of file flditem.cxx.

◆ GetClassId()

virtual sal_Int32 SvxAuthorField::GetClassId ( ) const
inlineoverridevirtual

Reimplemented from SvxFieldData.

Definition at line 373 of file flditem.hxx.

◆ GetFormat()

SvxAuthorFormat SvxAuthorField::GetFormat ( ) const
inline

Definition at line 384 of file flditem.hxx.

◆ GetFormatted()

OUString SvxAuthorField::GetFormatted ( ) const

Definition at line 846 of file flditem.cxx.

References aFirstName, aName, aShortName, eFormat, FirstName, FullName, LastName, and ShortName.

◆ GetType()

SvxAuthorType SvxAuthorField::GetType ( ) const
inline

Definition at line 381 of file flditem.hxx.

References eType.

◆ operator==()

bool SvxAuthorField::operator== ( const SvxFieldData rOther) const
overridevirtual

Reimplemented from SvxFieldData.

Definition at line 832 of file flditem.cxx.

References aFirstName, aName, aShortName, eFormat, and eType.

◆ SetFormat()

void SvxAuthorField::SetFormat ( SvxAuthorFormat  eFmt)
inline

Definition at line 385 of file flditem.hxx.

◆ SetType()

void SvxAuthorField::SetType ( SvxAuthorType  eTp)
inline

Definition at line 382 of file flditem.hxx.

References eType.

Member Data Documentation

◆ aFirstName

OUString SvxAuthorField::aFirstName
private

Definition at line 366 of file flditem.hxx.

Referenced by GetFormatted(), operator==(), and SvxAuthorField().

◆ aName

OUString SvxAuthorField::aName
private

Definition at line 365 of file flditem.hxx.

Referenced by GetFormatted(), operator==(), and SvxAuthorField().

◆ aShortName

OUString SvxAuthorField::aShortName
private

Definition at line 367 of file flditem.hxx.

Referenced by GetFormatted(), operator==(), and SvxAuthorField().

◆ CLASS_ID

constexpr auto SvxAuthorField::CLASS_ID = css::text::textfield::Type::AUTHOR
staticconstexpr

Definition at line 372 of file flditem.hxx.

◆ eFormat

SvxAuthorFormat SvxAuthorField::eFormat
private

Definition at line 369 of file flditem.hxx.

Referenced by GetFormatted(), operator==(), and SvxAuthorField().

◆ eType

SvxAuthorType SvxAuthorField::eType
private

Definition at line 368 of file flditem.hxx.

Referenced by operator==(), and SvxAuthorField().


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