LibreOffice Module extensions (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
pcr::PushButtonNavigation Class Referencefinal

#include <pushbuttonnavigation.hxx>

Public Member Functions

 PushButtonNavigation (const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel)
 ctor More...
 
css::uno::Any getCurrentButtonType () const
 returns the current value of the "ButtonType" property, taking into account the "virtual" button types such as "move-to-next-record button". More...
 
void setCurrentButtonType (const css::uno::Any &_rValue) const
 sets the current value of the "ButtonType" property, taking into account the "virtual" button types such as "move-to-next-record button". More...
 
css::beans::PropertyState getCurrentButtonTypeState () const
 retrieves the current state of the "ButtonType" property, taking into account the "virtual" button types such as "move-to-next-record button". More...
 
css::uno::Any getCurrentTargetURL () const
 returns the current value of the "TargetURL" property, taking into account that some URLs are special values caused by "virtual" ButtonTypes More...
 
void setCurrentTargetURL (const css::uno::Any &_rValue) const
 sets the current value of the "TargetURL" property, taking into account that some URLs are special values caused by "virtual" ButtonTypes More...
 
css::beans::PropertyState getCurrentTargetURLState () const
 retrieves the current state of the "TargetURL" property, taking into account that some URLs are special values caused by "virtual" ButtonTypes More...
 
bool currentButtonTypeIsOpenURL () const
 determines whether the current button type is FormButtonType_URL More...
 
bool hasNonEmptyCurrentTargetURL () const
 determines whether the TargetURL property does currently denote a non-empty string More...
 

Private Member Functions

css::form::FormButtonType implGetCurrentButtonType () const
 

Private Attributes

css::uno::Reference< css::beans::XPropertySetm_xControlModel
 
bool m_bIsPushButton
 

Detailed Description

Definition at line 33 of file pushbuttonnavigation.hxx.

Constructor & Destructor Documentation

◆ PushButtonNavigation()

pcr::PushButtonNavigation::PushButtonNavigation ( const css::uno::Reference< css::beans::XPropertySet > &  _rxControlModel)
explicit

ctor

Parameters
_rxControlModelthe control model which is or will be bound

Definition at line 83 of file pushbuttonnavigation.cxx.

References Exception, m_bIsPushButton, m_xControlModel, PROPERTY_BUTTONTYPE, and TOOLS_WARN_EXCEPTION.

Member Function Documentation

◆ currentButtonTypeIsOpenURL()

bool pcr::PushButtonNavigation::currentButtonTypeIsOpenURL ( ) const

determines whether the current button type is FormButtonType_URL

Definition at line 272 of file pushbuttonnavigation.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, and implGetCurrentButtonType().

◆ getCurrentButtonType()

Any pcr::PushButtonNavigation::getCurrentButtonType ( ) const

returns the current value of the "ButtonType" property, taking into account the "virtual" button types such as "move-to-next-record button".

Definition at line 123 of file pushbuttonnavigation.cxx.

References Any, Exception, implGetCurrentButtonType(), m_bIsPushButton, and TOOLS_WARN_EXCEPTION.

◆ getCurrentButtonTypeState()

PropertyState pcr::PushButtonNavigation::getCurrentButtonTypeState ( ) const

retrieves the current state of the "ButtonType" property, taking into account the "virtual" button types such as "move-to-next-record button".

Definition at line 171 of file pushbuttonnavigation.cxx.

References Exception, m_bIsPushButton, m_xControlModel, PROPERTY_BUTTONTYPE, PROPERTY_TARGET_URL, and TOOLS_WARN_EXCEPTION.

◆ getCurrentTargetURL()

Any pcr::PushButtonNavigation::getCurrentTargetURL ( ) const

returns the current value of the "TargetURL" property, taking into account that some URLs are special values caused by "virtual" ButtonTypes

Definition at line 205 of file pushbuttonnavigation.cxx.

References Any, Exception, implGetCurrentButtonType(), m_bIsPushButton, m_xControlModel, PROPERTY_TARGET_URL, and TOOLS_WARN_EXCEPTION.

Referenced by hasNonEmptyCurrentTargetURL().

◆ getCurrentTargetURLState()

PropertyState pcr::PushButtonNavigation::getCurrentTargetURLState ( ) const

retrieves the current state of the "TargetURL" property, taking into account that some URLs are special values caused by "virtual" ButtonTypes

Definition at line 251 of file pushbuttonnavigation.cxx.

References Exception, m_xControlModel, PROPERTY_TARGET_URL, and TOOLS_WARN_EXCEPTION.

◆ hasNonEmptyCurrentTargetURL()

bool pcr::PushButtonNavigation::hasNonEmptyCurrentTargetURL ( ) const

determines whether the TargetURL property does currently denote a non-empty string

Definition at line 287 of file pushbuttonnavigation.cxx.

References getCurrentTargetURL().

◆ implGetCurrentButtonType()

FormButtonType pcr::PushButtonNavigation::implGetCurrentButtonType ( ) const
private

◆ setCurrentButtonType()

void pcr::PushButtonNavigation::setCurrentButtonType ( const css::uno::Any &  _rValue) const

sets the current value of the "ButtonType" property, taking into account the "virtual" button types such as "move-to-next-record button".

Definition at line 140 of file pushbuttonnavigation.cxx.

References Any, Exception, m_bIsPushButton, m_xControlModel, PROPERTY_BUTTONTYPE, PROPERTY_TARGET_URL, and TOOLS_WARN_EXCEPTION.

◆ setCurrentTargetURL()

void pcr::PushButtonNavigation::setCurrentTargetURL ( const css::uno::Any &  _rValue) const

sets the current value of the "TargetURL" property, taking into account that some URLs are special values caused by "virtual" ButtonTypes

Definition at line 235 of file pushbuttonnavigation.cxx.

References Exception, m_xControlModel, PROPERTY_TARGET_URL, and TOOLS_WARN_EXCEPTION.

Member Data Documentation

◆ m_bIsPushButton

bool pcr::PushButtonNavigation::m_bIsPushButton
private

◆ m_xControlModel

css::uno::Reference< css::beans::XPropertySet > pcr::PushButtonNavigation::m_xControlModel
private

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