LibreOffice Module sw (master)  1
Public Member Functions | Private Attributes | Friends | List of all members
SwFormatRuby Class Reference

#include <fmtruby.hxx>

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

Public Member Functions

 SwFormatRuby (const OUString &rRubyText)
 
 SwFormatRuby (const SwFormatRuby &rAttr)
 
virtual ~SwFormatRuby () override
 
SwFormatRubyoperator= (const SwFormatRuby &rAttr)
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override
 
const SwTextRubyGetTextRuby () const
 
const OUString & GetText () const
 
void SetText (const OUString &rText)
 
const OUString & GetCharFormatName () const
 
void SetCharFormatName (const OUString &rNm)
 
sal_uInt16 GetCharFormatId () const
 
void SetCharFormatId (sal_uInt16 nNew)
 
sal_uInt16 GetPosition () const
 
void SetPosition (sal_uInt16 nNew)
 
css::text::RubyAdjust GetAdjustment () const
 
void SetAdjustment (css::text::RubyAdjust nNew)
 
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
 
virtual ~SfxPoolItem ()
 
void SetWhich (sal_uInt16 nId)
 
sal_uInt16 Which () const
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual void ScaleMetrics (long lMult, long lDiv)
 
virtual bool HasMetrics () const
 
std::unique_ptr< SfxPoolItemCloneSetWhich (sal_uInt16 nNewWhich) const
 
std::unique_ptr< T > CloneSetWhich (TypedWhichId< T > nId) const
 
sal_uInt32 GetRefCount () const
 
SfxItemKind GetKind () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual bool IsVoidItem () const
 

Private Attributes

OUString m_sRubyText
 The ruby text. More...
 
OUString m_sCharFormatName
 Name of the charformat. More...
 
SwTextRubym_pTextAttr
 The TextAttribute. More...
 
sal_uInt16 m_nCharFormatId
 PoolId of the charformat. More...
 
sal_uInt16 m_nPosition
 Position of the Ruby-character. More...
 
css::text::RubyAdjust m_eAdjustment
 Specific adjustment of the Ruby-ch. More...
 

Friends

class SwTextRuby
 

Additional Inherited Members

- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

Definition at line 28 of file fmtruby.hxx.

Constructor & Destructor Documentation

SwFormatRuby::SwFormatRuby ( const OUString &  rRubyText)

Definition at line 389 of file fmtatr2.cxx.

References text().

Referenced by Clone().

SwFormatRuby::SwFormatRuby ( const SwFormatRuby rAttr)

Definition at line 399 of file fmtatr2.cxx.

SwFormatRuby::~SwFormatRuby ( )
overridevirtual

Definition at line 410 of file fmtatr2.cxx.

Member Function Documentation

SfxPoolItem * SwFormatRuby::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 438 of file fmtatr2.cxx.

References SwFormatRuby().

css::text::RubyAdjust SwFormatRuby::GetAdjustment ( ) const
inline

Definition at line 73 of file fmtruby.hxx.

Referenced by SwXTextView::getRubyList(), and WW8Ruby::WW8Ruby().

sal_uInt16 SwFormatRuby::GetCharFormatId ( ) const
inline

Definition at line 67 of file fmtruby.hxx.

Referenced by SwTextRuby::GetCharFormat().

const OUString& SwFormatRuby::GetCharFormatName ( ) const
inline

Definition at line 64 of file fmtruby.hxx.

Referenced by SwTextRuby::GetCharFormat(), and SwXTextView::getRubyList().

sal_uInt16 SwFormatRuby::GetPosition ( ) const
inline

Definition at line 70 of file fmtruby.hxx.

Referenced by SwXTextView::getRubyList(), and WW8Ruby::WW8Ruby().

bool SwFormatRuby::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper rIntl 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 140 of file attrdesc.cxx.

const OUString& SwFormatRuby::GetText ( ) const
inline
const SwTextRuby* SwFormatRuby::GetTextRuby ( ) const
inline

Definition at line 59 of file fmtruby.hxx.

Referenced by DocxAttributeOutput::StartRuby(), and WW8Ruby::WW8Ruby().

SwFormatRuby & SwFormatRuby::operator= ( const SwFormatRuby rAttr)
bool SwFormatRuby::operator== ( const SfxPoolItem rAttr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 428 of file fmtatr2.cxx.

References m_eAdjustment, m_nCharFormatId, m_nPosition, m_sCharFormatName, and m_sRubyText.

bool SwFormatRuby::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual
bool SwFormatRuby::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual
void SwFormatRuby::SetAdjustment ( css::text::RubyAdjust  nNew)
inline

Definition at line 74 of file fmtruby.hxx.

Referenced by SwWW8ImplReader::Read_SubF_Ruby().

void SwFormatRuby::SetCharFormatId ( sal_uInt16  nNew)
inline

Definition at line 68 of file fmtruby.hxx.

Referenced by SwWW8ImplReader::Read_SubF_Ruby().

void SwFormatRuby::SetCharFormatName ( const OUString &  rNm)
inline

Definition at line 65 of file fmtruby.hxx.

Referenced by SwWW8ImplReader::Read_SubF_Ruby().

void SwFormatRuby::SetPosition ( sal_uInt16  nNew)
inline

Definition at line 71 of file fmtruby.hxx.

void SwFormatRuby::SetText ( const OUString &  rText)
inline

Definition at line 62 of file fmtruby.hxx.

Friends And Related Function Documentation

friend class SwTextRuby
friend

Definition at line 30 of file fmtruby.hxx.

Member Data Documentation

css::text::RubyAdjust SwFormatRuby::m_eAdjustment
private

Specific adjustment of the Ruby-ch.

Definition at line 37 of file fmtruby.hxx.

Referenced by operator=(), operator==(), PutValue(), and QueryValue().

sal_uInt16 SwFormatRuby::m_nCharFormatId
private

PoolId of the charformat.

Definition at line 35 of file fmtruby.hxx.

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

sal_uInt16 SwFormatRuby::m_nPosition
private

Position of the Ruby-character.

Definition at line 36 of file fmtruby.hxx.

Referenced by operator=(), operator==(), PutValue(), and QueryValue().

SwTextRuby* SwFormatRuby::m_pTextAttr
private

The TextAttribute.

Definition at line 34 of file fmtruby.hxx.

Referenced by operator=(), and SwTextRuby::SwTextRuby().

OUString SwFormatRuby::m_sCharFormatName
private

Name of the charformat.

Definition at line 33 of file fmtruby.hxx.

Referenced by operator=(), operator==(), PutValue(), and QueryValue().

OUString SwFormatRuby::m_sRubyText
private

The ruby text.

Definition at line 32 of file fmtruby.hxx.

Referenced by operator=(), operator==(), PutValue(), and QueryValue().


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