LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
svxform::AddDataItemDialog Class Referencefinal

#include <datanavi.hxx>

Inheritance diagram for svxform::AddDataItemDialog:
[legend]
Collaboration diagram for svxform::AddDataItemDialog:
[legend]

Public Member Functions

 AddDataItemDialog (weld::Window *pParent, ItemNode *_pNode, const css::uno::Reference< css::xforms::XFormsUIHelper1 > &_rUIHelper)
 
virtual ~AddDataItemDialog () override
 
void InitText (DataItemType _eType)
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

void Check (const weld::Toggleable *pBox)
 
 DECL_LINK (CheckHdl, weld::Toggleable &, void)
 
 DECL_LINK (ConditionHdl, weld::Button &, void)
 
 DECL_LINK (OKHdl, weld::Button &, void)
 
void InitDialog ()
 
void InitFromNode ()
 
void InitDataTypeBox ()
 

Private Attributes

css::uno::Reference< css::xforms::XFormsUIHelper1 > m_xUIHelper
 
css::uno::Reference< css::beans::XPropertySet > m_xBinding
 
css::uno::Reference< css::beans::XPropertySet > m_xTempBinding
 
ItemNodem_pItemNode
 
DataItemType m_eItemType
 
OUString m_sFL_Element
 
OUString m_sFL_Attribute
 
OUString m_sFL_Binding
 
OUString m_sFT_BindingExp
 
std::unique_ptr< weld::Framem_xItemFrame
 
std::unique_ptr< weld::Labelm_xNameFT
 
std::unique_ptr< weld::Entrym_xNameED
 
std::unique_ptr< weld::Labelm_xDefaultFT
 
std::unique_ptr< weld::Entrym_xDefaultED
 
std::unique_ptr< weld::Buttonm_xDefaultBtn
 
std::unique_ptr< weld::Widgetm_xSettingsFrame
 
std::unique_ptr< weld::Labelm_xDataTypeFT
 
std::unique_ptr< weld::ComboBoxm_xDataTypeLB
 
std::unique_ptr< weld::CheckButtonm_xRequiredCB
 
std::unique_ptr< weld::Buttonm_xRequiredBtn
 
std::unique_ptr< weld::CheckButtonm_xRelevantCB
 
std::unique_ptr< weld::Buttonm_xRelevantBtn
 
std::unique_ptr< weld::CheckButtonm_xConstraintCB
 
std::unique_ptr< weld::Buttonm_xConstraintBtn
 
std::unique_ptr< weld::CheckButtonm_xReadonlyCB
 
std::unique_ptr< weld::Buttonm_xReadonlyBtn
 
std::unique_ptr< weld::CheckButtonm_xCalculateCB
 
std::unique_ptr< weld::Buttonm_xCalculateBtn
 
std::unique_ptr< weld::Buttonm_xOKBtn
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 343 of file datanavi.hxx.

Constructor & Destructor Documentation

svxform::AddDataItemDialog::AddDataItemDialog ( weld::Window pParent,
ItemNode _pNode,
const css::uno::Reference< css::xforms::XFormsUIHelper1 > &  _rUIHelper 
)

Definition at line 2051 of file datanavi.cxx.

References Check(), InitDataTypeBox(), InitDialog(), and InitFromNode().

svxform::AddDataItemDialog::~AddDataItemDialog ( )
overridevirtual

Definition at line 2088 of file datanavi.cxx.

References Any, Exception, m_xBinding, m_xTempBinding, m_xUIHelper, TOOLS_WARN_EXCEPTION, and xModel.

Member Function Documentation

void svxform::AddDataItemDialog::Check ( const weld::Toggleable pBox)
private
svxform::AddDataItemDialog::DECL_LINK ( CheckHdl  ,
weld::Toggleable ,
void   
)
private
svxform::AddDataItemDialog::DECL_LINK ( ConditionHdl  ,
weld::Button ,
void   
)
private
svxform::AddDataItemDialog::DECL_LINK ( OKHdl  ,
weld::Button ,
void   
)
private
void svxform::AddDataItemDialog::InitDataTypeBox ( )
private
void svxform::AddDataItemDialog::InitDialog ( )
private
void svxform::AddDataItemDialog::InitFromNode ( )
private

Get binding of the node and clone it Then use this temporary binding in the dialog. When the user click OK the temporary binding will be copied into the original binding.

Definition at line 2310 of file datanavi.cxx.

References Any, svxform::DITAttribute, svxform::DITBinding, svxform::DITElement, svxform::DITText, Exception, m_eItemType, m_pItemNode, m_xBinding, m_xCalculateCB, m_xConstraintCB, m_xDefaultBtn, m_xDefaultED, m_xNameED, m_xNameFT, svxform::ItemNode::m_xNode, svxform::ItemNode::m_xPropSet, m_xReadonlyCB, m_xRelevantCB, m_xRequiredCB, m_xSettingsFrame, m_xTempBinding, m_xUIHelper, sName, TOOLS_WARN_EXCEPTION, and xModel.

Referenced by AddDataItemDialog().

void svxform::AddDataItemDialog::InitText ( DataItemType  _eType)

Member Data Documentation

DataItemType svxform::AddDataItemDialog::m_eItemType
private

Definition at line 354 of file datanavi.hxx.

Referenced by InitDataTypeBox(), and InitFromNode().

ItemNode* svxform::AddDataItemDialog::m_pItemNode
private

Definition at line 353 of file datanavi.hxx.

Referenced by InitFromNode().

OUString svxform::AddDataItemDialog::m_sFL_Attribute
private

Definition at line 356 of file datanavi.hxx.

Referenced by InitText().

OUString svxform::AddDataItemDialog::m_sFL_Binding
private

Definition at line 357 of file datanavi.hxx.

Referenced by InitText().

OUString svxform::AddDataItemDialog::m_sFL_Element
private

Definition at line 355 of file datanavi.hxx.

Referenced by InitText().

OUString svxform::AddDataItemDialog::m_sFT_BindingExp
private

Definition at line 358 of file datanavi.hxx.

Referenced by InitText().

css::uno::Reference< css::beans::XPropertySet > svxform::AddDataItemDialog::m_xBinding
private

Definition at line 349 of file datanavi.hxx.

Referenced by InitFromNode(), and ~AddDataItemDialog().

std::unique_ptr<weld::Button> svxform::AddDataItemDialog::m_xCalculateBtn
private

Definition at line 378 of file datanavi.hxx.

Referenced by Check(), and InitDialog().

std::unique_ptr<weld::CheckButton> svxform::AddDataItemDialog::m_xCalculateCB
private

Definition at line 377 of file datanavi.hxx.

Referenced by Check(), InitDialog(), and InitFromNode().

std::unique_ptr<weld::Button> svxform::AddDataItemDialog::m_xConstraintBtn
private

Definition at line 374 of file datanavi.hxx.

Referenced by Check(), and InitDialog().

std::unique_ptr<weld::CheckButton> svxform::AddDataItemDialog::m_xConstraintCB
private

Definition at line 373 of file datanavi.hxx.

Referenced by Check(), InitDialog(), and InitFromNode().

std::unique_ptr<weld::Label> svxform::AddDataItemDialog::m_xDataTypeFT
private

Definition at line 367 of file datanavi.hxx.

std::unique_ptr<weld::ComboBox> svxform::AddDataItemDialog::m_xDataTypeLB
private

Definition at line 368 of file datanavi.hxx.

Referenced by InitDataTypeBox().

std::unique_ptr<weld::Button> svxform::AddDataItemDialog::m_xDefaultBtn
private

Definition at line 365 of file datanavi.hxx.

Referenced by InitDialog(), and InitFromNode().

std::unique_ptr<weld::Entry> svxform::AddDataItemDialog::m_xDefaultED
private

Definition at line 364 of file datanavi.hxx.

Referenced by InitFromNode().

std::unique_ptr<weld::Label> svxform::AddDataItemDialog::m_xDefaultFT
private

Definition at line 363 of file datanavi.hxx.

Referenced by InitText().

std::unique_ptr<weld::Frame> svxform::AddDataItemDialog::m_xItemFrame
private

Definition at line 360 of file datanavi.hxx.

Referenced by InitText().

std::unique_ptr<weld::Entry> svxform::AddDataItemDialog::m_xNameED
private

Definition at line 362 of file datanavi.hxx.

Referenced by InitFromNode().

std::unique_ptr<weld::Label> svxform::AddDataItemDialog::m_xNameFT
private

Definition at line 361 of file datanavi.hxx.

Referenced by InitFromNode().

std::unique_ptr<weld::Button> svxform::AddDataItemDialog::m_xOKBtn
private

Definition at line 379 of file datanavi.hxx.

Referenced by InitDialog().

std::unique_ptr<weld::Button> svxform::AddDataItemDialog::m_xReadonlyBtn
private

Definition at line 376 of file datanavi.hxx.

Referenced by Check(), and InitDialog().

std::unique_ptr<weld::CheckButton> svxform::AddDataItemDialog::m_xReadonlyCB
private

Definition at line 375 of file datanavi.hxx.

Referenced by Check(), InitDialog(), and InitFromNode().

std::unique_ptr<weld::Button> svxform::AddDataItemDialog::m_xRelevantBtn
private

Definition at line 372 of file datanavi.hxx.

Referenced by Check(), and InitDialog().

std::unique_ptr<weld::CheckButton> svxform::AddDataItemDialog::m_xRelevantCB
private

Definition at line 371 of file datanavi.hxx.

Referenced by Check(), InitDialog(), and InitFromNode().

std::unique_ptr<weld::Button> svxform::AddDataItemDialog::m_xRequiredBtn
private

Definition at line 370 of file datanavi.hxx.

Referenced by Check(), and InitDialog().

std::unique_ptr<weld::CheckButton> svxform::AddDataItemDialog::m_xRequiredCB
private

Definition at line 369 of file datanavi.hxx.

Referenced by Check(), InitDialog(), and InitFromNode().

std::unique_ptr<weld::Widget> svxform::AddDataItemDialog::m_xSettingsFrame
private

Definition at line 366 of file datanavi.hxx.

Referenced by InitFromNode().

css::uno::Reference< css::beans::XPropertySet > svxform::AddDataItemDialog::m_xTempBinding
private

Definition at line 351 of file datanavi.hxx.

Referenced by Check(), InitDataTypeBox(), InitFromNode(), and ~AddDataItemDialog().

css::uno::Reference< css::xforms::XFormsUIHelper1 > svxform::AddDataItemDialog::m_xUIHelper
private

Definition at line 347 of file datanavi.hxx.

Referenced by InitDataTypeBox(), InitFromNode(), and ~AddDataItemDialog().


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