LibreOffice Module forms (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
frm::AttributeHandler Class Referenceabstract

#include <rtattributehandler.hxx>

Inheritance diagram for frm::AttributeHandler:
[legend]
Collaboration diagram for frm::AttributeHandler:
[legend]

Public Member Functions

 AttributeHandler (AttributeId _nAttributeId, WhichId _nWhichId)
 
AttributeId getAttributeId () const
 
virtual AttributeState getState (const SfxItemSet &_rAttribs) const
 
virtual void executeAttribute (const SfxItemSet &_rCurrentAttribs, SfxItemSet &_rNewAttribs, const SfxPoolItem *_pAdditionalArg, SvtScriptType _nForScriptType) const =0
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Protected Member Functions

AttributeId getAttribute () const
 
WhichId getWhich () const
 
AttributeCheckState getCheckState (const SfxItemSet &_rAttribs) const
 helper method calling implGetCheckState More...
 
void putItemForScript (SfxItemSet &_rAttribs, const SfxPoolItem &_rItem, SvtScriptType _nForScriptType) const
 helper method putting an item into a set, respecting a script type More...
 
virtual AttributeCheckState implGetCheckState (const SfxPoolItem &_rItem) const
 
virtual ~AttributeHandler () override
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 

Private Attributes

AttributeId m_nAttribute
 
WhichId m_nWhich
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 36 of file rtattributehandler.hxx.

Constructor & Destructor Documentation

◆ AttributeHandler()

frm::AttributeHandler::AttributeHandler ( AttributeId  _nAttributeId,
WhichId  _nWhichId 
)

Definition at line 43 of file rtattributehandler.cxx.

◆ ~AttributeHandler()

frm::AttributeHandler::~AttributeHandler ( )
overrideprotectedvirtual

Definition at line 50 of file rtattributehandler.cxx.

Member Function Documentation

◆ executeAttribute()

virtual void frm::AttributeHandler::executeAttribute ( const SfxItemSet _rCurrentAttribs,
SfxItemSet _rNewAttribs,
const SfxPoolItem _pAdditionalArg,
SvtScriptType  _nForScriptType 
) const
pure virtual

◆ getAttribute()

AttributeId frm::AttributeHandler::getAttribute ( ) const
inlineprotected

◆ getAttributeId()

AttributeId frm::AttributeHandler::getAttributeId ( ) const

◆ getCheckState()

AttributeCheckState frm::AttributeHandler::getCheckState ( const SfxItemSet _rAttribs) const
protected

helper method calling implGetCheckState

Definition at line 76 of file rtattributehandler.cxx.

References frm::eIndetermined, SfxItemSet::GetItem(), getWhich(), and implGetCheckState().

Referenced by frm::EscapementHandler::executeAttribute(), and getState().

◆ getState()

AttributeState frm::AttributeHandler::getState ( const SfxItemSet _rAttribs) const
virtual

◆ getWhich()

WhichId frm::AttributeHandler::getWhich ( ) const
inlineprotected

◆ implGetCheckState()

AttributeCheckState frm::AttributeHandler::implGetCheckState ( const SfxPoolItem _rItem) const
protectedvirtual

◆ putItemForScript()

void frm::AttributeHandler::putItemForScript ( SfxItemSet _rAttribs,
const SfxPoolItem _rItem,
SvtScriptType  _nForScriptType 
) const
protected

helper method putting an item into a set, respecting a script type

Definition at line 68 of file rtattributehandler.cxx.

References getAttributeId(), SfxItemSet::GetPool(), SfxItemSet::Put(), and SvxScriptSetItem::PutItemForScriptType().

Referenced by frm::SlotHandler::executeAttribute(), and frm::FontSizeHandler::executeAttribute().

Member Data Documentation

◆ m_nAttribute

AttributeId frm::AttributeHandler::m_nAttribute
private

Definition at line 39 of file rtattributehandler.hxx.

Referenced by getAttribute().

◆ m_nWhich

WhichId frm::AttributeHandler::m_nWhich
private

Definition at line 40 of file rtattributehandler.hxx.

Referenced by getWhich().


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