LibreOffice Module reportdesign (master) 1
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
reportdesign::OReportControlModel Class Reference

#include <ReportControlModel.hxx>

Collaboration diagram for reportdesign::OReportControlModel:
[legend]

Public Member Functions

 OReportControlModel (osl::Mutex &_rMutex, css::container::XContainer *_pOwner, css::uno::Reference< css::uno::XComponentContext > const &_xContext)
 
void addContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener)
 
void removeContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener)
 
bool hasElements ()
 
void replaceByIndex (::sal_Int32 Index, const css::uno::Any &Element)
 
void insertByIndex (::sal_Int32 Index, const css::uno::Any &Element)
 
void removeByIndex (::sal_Int32 Index)
 
::sal_Int32 getCount ()
 
css::uno::Any getByIndex (::sal_Int32 Index)
 

Static Public Member Functions

static bool isInterfaceForbidden (const css::uno::Type &_rType)
 

Public Attributes

::comphelper::OInterfaceContainerHelper3< css::container::XContainerListener > aContainerListeners
 
OReportComponentProperties aComponent
 
OFormatProperties aFormatProperties
 
css::container::XContainer * m_pOwner
 
::std::vector< css::uno::Reference< css::report::XFormatCondition > > m_aFormatConditions
 
osl::Mutex & m_rMutex
 
OUString aDataField
 
OUString aConditionalPrintExpression
 
bool bPrintWhenGroupChange
 

Private Member Functions

void checkIndex (sal_Int32 _nIndex)
 
 OReportControlModel (OReportControlModel const &)=delete
 
void operator= (OReportControlModel const &)=delete
 

Detailed Description

Definition at line 70 of file ReportControlModel.hxx.

Constructor & Destructor Documentation

◆ OReportControlModel() [1/2]

reportdesign::OReportControlModel::OReportControlModel ( OReportControlModel const &  )
privatedelete

◆ OReportControlModel() [2/2]

reportdesign::OReportControlModel::OReportControlModel ( osl::Mutex &  _rMutex,
css::container::XContainer *  _pOwner,
css::uno::Reference< css::uno::XComponentContext > const &  _xContext 
)
inline

Definition at line 87 of file ReportControlModel.hxx.

References _xContext.

Member Function Documentation

◆ addContainerListener()

void reportdesign::OReportControlModel::addContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
Exceptions
css::uno::RuntimeException

Definition at line 30 of file ReportControlModel.cxx.

References aContainerListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface().

◆ checkIndex()

void reportdesign::OReportControlModel::checkIndex ( sal_Int32  _nIndex)
private

Definition at line 120 of file ReportControlModel.cxx.

References m_aFormatConditions, and o3tl::make_unsigned().

Referenced by getByIndex(), removeByIndex(), and replaceByIndex().

◆ getByIndex()

uno::Any reportdesign::OReportControlModel::getByIndex ( ::sal_Int32  Index)
Exceptions
css::lang::IndexOutOfBoundsException
css::lang::WrappedTargetException
css::uno::RuntimeException

Definition at line 109 of file ReportControlModel.cxx.

References checkIndex(), m_aFormatConditions, and m_rMutex.

◆ getCount()

sal_Int32 reportdesign::OReportControlModel::getCount ( )
Exceptions
css::uno::RuntimeException

Definition at line 103 of file ReportControlModel.cxx.

References m_aFormatConditions, and m_rMutex.

◆ hasElements()

bool reportdesign::OReportControlModel::hasElements ( )
Exceptions
css::uno::RuntimeException

Definition at line 42 of file ReportControlModel.cxx.

References m_aFormatConditions, and m_rMutex.

◆ insertByIndex()

void reportdesign::OReportControlModel::insertByIndex ( ::sal_Int32  Index,
const css::uno::Any &  Element 
)
Exceptions
css::lang::IllegalArgumentException
css::lang::IndexOutOfBoundsException
css::lang::WrappedTargetException
css::uno::RuntimeException

Definition at line 49 of file ReportControlModel.cxx.

References aContainerListeners, aEvent, m_aFormatConditions, m_pOwner, m_rMutex, and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().

◆ isInterfaceForbidden()

bool reportdesign::OReportControlModel::isInterfaceForbidden ( const css::uno::Type &  _rType)
static

Definition at line 126 of file ReportControlModel.cxx.

◆ operator=()

void reportdesign::OReportControlModel::operator= ( OReportControlModel const &  )
privatedelete

◆ removeByIndex()

void reportdesign::OReportControlModel::removeByIndex ( ::sal_Int32  Index)
Exceptions
css::lang::IndexOutOfBoundsException
css::lang::WrappedTargetException
css::uno::RuntimeException

Definition at line 70 of file ReportControlModel.cxx.

References aContainerListeners, aEvent, checkIndex(), m_aFormatConditions, m_pOwner, m_rMutex, and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().

◆ removeContainerListener()

void reportdesign::OReportControlModel::removeContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
Exceptions
css::uno::RuntimeException

Definition at line 36 of file ReportControlModel.cxx.

References aContainerListeners, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().

◆ replaceByIndex()

void reportdesign::OReportControlModel::replaceByIndex ( ::sal_Int32  Index,
const css::uno::Any &  Element 
)
Exceptions
css::lang::IllegalArgumentException
css::lang::IndexOutOfBoundsException
css::lang::WrappedTargetException
css::uno::RuntimeException

Definition at line 86 of file ReportControlModel.cxx.

References aContainerListeners, aEvent, checkIndex(), m_aFormatConditions, m_pOwner, m_rMutex, and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().

Member Data Documentation

◆ aComponent

OReportComponentProperties reportdesign::OReportControlModel::aComponent

Definition at line 77 of file ReportControlModel.hxx.

◆ aConditionalPrintExpression

OUString reportdesign::OReportControlModel::aConditionalPrintExpression

Definition at line 84 of file ReportControlModel.hxx.

◆ aContainerListeners

::comphelper::OInterfaceContainerHelper3<css::container::XContainerListener> reportdesign::OReportControlModel::aContainerListeners

◆ aDataField

OUString reportdesign::OReportControlModel::aDataField

Definition at line 83 of file ReportControlModel.hxx.

◆ aFormatProperties

OFormatProperties reportdesign::OReportControlModel::aFormatProperties

Definition at line 78 of file ReportControlModel.hxx.

◆ bPrintWhenGroupChange

bool reportdesign::OReportControlModel::bPrintWhenGroupChange

Definition at line 85 of file ReportControlModel.hxx.

◆ m_aFormatConditions

::std::vector< css::uno::Reference< css::report::XFormatCondition> > reportdesign::OReportControlModel::m_aFormatConditions

◆ m_pOwner

css::container::XContainer* reportdesign::OReportControlModel::m_pOwner

Definition at line 79 of file ReportControlModel.hxx.

Referenced by insertByIndex(), removeByIndex(), and replaceByIndex().

◆ m_rMutex

osl::Mutex& reportdesign::OReportControlModel::m_rMutex

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