LibreOffice Module cui (master)  1
Public Types | Public Member Functions | Protected Attributes | List of all members
svx::PseudoRubyText Class Reference

a class which allows to draw two texts in a pseudo-ruby way (which basically means one text above or below the other, and a little bit smaller) More...

Public Types

enum  RubyPosition {
  eAbove,
  eBelow
}
 

Public Member Functions

 PseudoRubyText ()
 
void init (const OUString &rPrimaryText, const OUString &rSecondaryText, const RubyPosition &rPosition)
 
const OUString & getPrimaryText () const
 
const OUString & getSecondaryText () const
 
void Paint (vcl::RenderContext &_rDevice, const ::tools::Rectangle &_rRect, DrawTextFlags _nTextStyle,::tools::Rectangle *_pPrimaryLocation,::tools::Rectangle *_pSecondaryLocation)
 

Protected Attributes

OUString m_sPrimaryText
 
OUString m_sSecondaryText
 
RubyPosition m_ePosition
 

Detailed Description

a class which allows to draw two texts in a pseudo-ruby way (which basically means one text above or below the other, and a little bit smaller)

Definition at line 84 of file hangulhanjadlg.cxx.

Member Enumeration Documentation

Enumerator
eAbove 
eBelow 

Definition at line 87 of file hangulhanjadlg.cxx.

Constructor & Destructor Documentation

svx::PseudoRubyText::PseudoRubyText ( )

Definition at line 108 of file hangulhanjadlg.cxx.

Member Function Documentation

const OUString& svx::PseudoRubyText::getPrimaryText ( ) const
inline

Definition at line 100 of file hangulhanjadlg.cxx.

Referenced by svx::RubyRadioButton::GetOptimalSize().

const OUString& svx::PseudoRubyText::getSecondaryText ( ) const
inline

Definition at line 101 of file hangulhanjadlg.cxx.

Referenced by svx::RubyRadioButton::GetOptimalSize().

void svx::PseudoRubyText::init ( const OUString &  rPrimaryText,
const OUString &  rSecondaryText,
const RubyPosition rPosition 
)

Definition at line 113 of file hangulhanjadlg.cxx.

References m_ePosition, m_sPrimaryText, and m_sSecondaryText.

Referenced by svx::RubyRadioButton::init().

void svx::PseudoRubyText::Paint ( vcl::RenderContext _rDevice,
const ::tools::Rectangle _rRect,
DrawTextFlags  _nTextStyle,
::tools::Rectangle _pPrimaryLocation,
::tools::Rectangle _pSecondaryLocation 
)

Member Data Documentation

RubyPosition svx::PseudoRubyText::m_ePosition
protected

Definition at line 95 of file hangulhanjadlg.cxx.

Referenced by init(), and Paint().

OUString svx::PseudoRubyText::m_sPrimaryText
protected

Definition at line 93 of file hangulhanjadlg.cxx.

Referenced by init(), and Paint().

OUString svx::PseudoRubyText::m_sSecondaryText
protected

Definition at line 94 of file hangulhanjadlg.cxx.

Referenced by init(), and Paint().


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