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

#include <tgrditem.hxx>

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

Public Member Functions

 SwTextGridItem ()
 
virtual ~SwTextGridItem () override
 
 SwTextGridItem (SwTextGridItem const &)=default
 
 SwTextGridItem (SwTextGridItem &&)=default
 
SwTextGridItemoperator= (SwTextGridItem const &)=delete
 
SwTextGridItemoperator= (SwTextGridItem &&)=delete
 
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 ColorGetColor () const
 
void SetColor (const Color &rCol)
 
sal_uInt16 GetLines () const
 
void SetLines (sal_uInt16 nNew)
 
sal_uInt16 GetBaseHeight () const
 
void SetBaseHeight (sal_uInt16 nNew)
 
sal_uInt16 GetRubyHeight () const
 
void SetRubyHeight (sal_uInt16 nNew)
 
SwTextGrid GetGridType () const
 
void SetGridType (SwTextGrid eNew)
 
bool IsRubyTextBelow () const
 
bool GetRubyTextBelow () const
 
void SetRubyTextBelow (bool bNew)
 
bool IsPrintGrid () const
 
bool GetPrintGrid () const
 
void SetPrintGrid (bool bNew)
 
bool IsDisplayGrid () const
 
bool GetDisplayGrid () const
 
void SetDisplayGrid (bool bNew)
 
sal_uInt16 GetBaseWidth () const
 
void SetBaseWidth (sal_uInt16 nNew)
 
bool IsSnapToChars () const
 
bool GetSnapToChars () const
 
void SetSnapToChars (bool bNew)
 
bool IsSquaredMode () const
 
bool GetSquaredMode () const
 
void SetSquaredMode (bool bNew)
 
void SwitchPaperMode (bool bNew)
 
void Init ()
 
- 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 boost::property_tree::ptree dumpAsJSON () const
 
virtual bool IsVoidItem () const
 

Private Attributes

Color m_aColor
 
sal_uInt16 m_nLines
 
sal_uInt16 m_nBaseHeight
 
sal_uInt16 m_nRubyHeight
 
SwTextGrid m_eGridType
 
bool m_bRubyTextBelow
 
bool m_bPrintGrid
 
bool m_bDisplayGrid
 
sal_uInt16 m_nBaseWidth
 
bool m_bSnapToChars
 
bool m_bSquaredMode
 

Additional Inherited Members

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

Detailed Description

Definition at line 32 of file tgrditem.hxx.

Constructor & Destructor Documentation

SwTextGridItem::SwTextGridItem ( )

Definition at line 2133 of file atrfrm.cxx.

References COL_LIGHTGRAY(), and m_aColor.

Referenced by Clone().

SwTextGridItem::~SwTextGridItem ( )
overridevirtual

Definition at line 2141 of file atrfrm.cxx.

SwTextGridItem::SwTextGridItem ( SwTextGridItem const &  )
default
SwTextGridItem::SwTextGridItem ( SwTextGridItem &&  )
default

Member Function Documentation

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

Implements SfxPoolItem.

Definition at line 2162 of file atrfrm.cxx.

References SwTextGridItem().

sal_uInt16 SwTextGridItem::GetBaseHeight ( ) const
inline
sal_uInt16 SwTextGridItem::GetBaseWidth ( ) const
inline
const Color& SwTextGridItem::GetColor ( ) const
inline

Definition at line 69 of file tgrditem.hxx.

Referenced by operator==(), SwPageFrame::PaintGrid(), QueryValue(), and SwTextGridPage::Reset().

bool SwTextGridItem::GetDisplayGrid ( ) const
inline

Definition at line 93 of file tgrditem.hxx.

Referenced by operator==(), and SwPageFrame::PaintGrid().

SwTextGrid SwTextGridItem::GetGridType ( ) const
inline
sal_uInt16 SwTextGridItem::GetLines ( ) const
inline

Definition at line 72 of file tgrditem.hxx.

Referenced by SwBodyFrame::Format(), operator==(), QueryValue(), and SwTextGridPage::Reset().

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

Reimplemented from SfxPoolItem.

Definition at line 636 of file attrdesc.cxx.

References GRID_LINES_CHARS, GRID_LINES_ONLY, GRID_NONE, and SwResId().

bool SwTextGridItem::GetPrintGrid ( ) const
inline

Definition at line 89 of file tgrditem.hxx.

Referenced by operator==(), and SwPageFrame::PaintGrid().

sal_uInt16 SwTextGridItem::GetRubyHeight ( ) const
inline
bool SwTextGridItem::GetRubyTextBelow ( ) const
inline
bool SwTextGridItem::GetSnapToChars ( ) const
inline

Definition at line 101 of file tgrditem.hxx.

Referenced by operator==().

bool SwTextGridItem::GetSquaredMode ( ) const
inline

Definition at line 105 of file tgrditem.hxx.

Referenced by operator==().

void SwTextGridItem::Init ( void  )
bool SwTextGridItem::IsDisplayGrid ( ) const
inline

Definition at line 92 of file tgrditem.hxx.

Referenced by SwTextGridPage::Reset().

bool SwTextGridItem::IsPrintGrid ( ) const
inline

Definition at line 88 of file tgrditem.hxx.

Referenced by SwTextGridPage::Reset().

bool SwTextGridItem::IsRubyTextBelow ( ) const
inline

Definition at line 84 of file tgrditem.hxx.

Referenced by SwTextGridPage::Reset().

bool SwTextGridItem::IsSnapToChars ( ) const
inline
bool SwTextGridItem::IsSquaredMode ( ) const
inline
SwTextGridItem& SwTextGridItem::operator= ( SwTextGridItem const &  )
delete
SwTextGridItem& SwTextGridItem::operator= ( SwTextGridItem &&  )
delete
bool SwTextGridItem::operator== ( const SfxPoolItem rAttr) const
overridevirtual
bool SwTextGridItem::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual
bool SwTextGridItem::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual
void SwTextGridItem::SetBaseHeight ( sal_uInt16  nNew)
inline
void SwTextGridItem::SetBaseWidth ( sal_uInt16  nNew)
inline
void SwTextGridItem::SetColor ( const Color rCol)
inline

Definition at line 70 of file tgrditem.hxx.

Referenced by SwTextGridPage::PutGridItem(), and PutValue().

void SwTextGridItem::SetDisplayGrid ( bool  bNew)
inline
void SwTextGridItem::SetGridType ( SwTextGrid  eNew)
inline
void SwTextGridItem::SetLines ( sal_uInt16  nNew)
inline
void SwTextGridItem::SetPrintGrid ( bool  bNew)
inline
void SwTextGridItem::SetRubyHeight ( sal_uInt16  nNew)
inline
void SwTextGridItem::SetRubyTextBelow ( bool  bNew)
inline

Definition at line 86 of file tgrditem.hxx.

Referenced by SwTextGridPage::PutGridItem(), and PutValue().

void SwTextGridItem::SetSnapToChars ( bool  bNew)
inline
void SwTextGridItem::SetSquaredMode ( bool  bNew)
inline
void SwTextGridItem::SwitchPaperMode ( bool  bNew)

Member Data Documentation

Color SwTextGridItem::m_aColor
private

Definition at line 35 of file tgrditem.hxx.

Referenced by operator==().

bool SwTextGridItem::m_bDisplayGrid
private

Definition at line 42 of file tgrditem.hxx.

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

bool SwTextGridItem::m_bPrintGrid
private

Definition at line 41 of file tgrditem.hxx.

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

bool SwTextGridItem::m_bRubyTextBelow
private

Definition at line 40 of file tgrditem.hxx.

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

bool SwTextGridItem::m_bSnapToChars
private

Definition at line 46 of file tgrditem.hxx.

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

bool SwTextGridItem::m_bSquaredMode
private

Definition at line 47 of file tgrditem.hxx.

Referenced by Init(), operator==(), QueryValue(), and SwitchPaperMode().

SwTextGrid SwTextGridItem::m_eGridType
private

Definition at line 39 of file tgrditem.hxx.

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

sal_uInt16 SwTextGridItem::m_nBaseHeight
private

Definition at line 37 of file tgrditem.hxx.

Referenced by Init(), operator==(), QueryValue(), and SwitchPaperMode().

sal_uInt16 SwTextGridItem::m_nBaseWidth
private

Definition at line 45 of file tgrditem.hxx.

Referenced by Init(), operator==(), QueryValue(), and SwitchPaperMode().

sal_uInt16 SwTextGridItem::m_nLines
private

Definition at line 36 of file tgrditem.hxx.

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

sal_uInt16 SwTextGridItem::m_nRubyHeight
private

Definition at line 38 of file tgrditem.hxx.

Referenced by Init(), operator==(), QueryValue(), and SwitchPaperMode().


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