LibreOffice Module svx (master) 1
|
#include <datanavi.hxx>
Public Member Functions | |
XFormsPage (weld::Container *pParent, DataNavigatorWindow *_pNaviWin, DataGroupType _eGroup) | |
virtual | ~XFormsPage () override |
bool | HasModel () const |
OUString | SetModel (const css::uno::Reference< css::xforms::XModel > &_xModel, int _nPagePos) |
void | ClearModel () |
OUString | LoadInstance (const css::uno::Sequence< css::beans::PropertyValue > &_xPropSeq) |
bool | DoMenuAction (std::u16string_view rMenuID) |
void | EnableMenuItems () |
void | SelectFirstEntry () |
const OUString & | GetInstanceName () const |
const OUString & | GetInstanceURL () const |
bool | GetLinkOnce () const |
void | SetInstanceName (const OUString &name) |
void | SetInstanceURL (const OUString &url) |
void | SetLinkOnce (bool bLinkOnce) |
css::uno::Reference< css::beans::XPropertySet > | GetBindingForNode (const css::uno::Reference< css::xml::dom::XNode > &xNode) |
OUString | GetServiceNameForNode (const css::uno::Reference< css::xml::dom::XNode > &xNode) |
const css::uno::Reference< css::xforms::XFormsUIHelper1 > & | GetXFormsHelper () const |
Public Member Functions inherited from BuilderPage | |
BuilderPage (weld::Widget *pParent, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, bool bIsMobile=false) | |
virtual | ~BuilderPage () COVERITY_NOEXCEPT_FALSE |
void | SetPageTitle (const OUString &rPageTitle) |
const OUString & | GetPageTitle () const |
virtual void | Activate () |
virtual void | Deactivate () |
void | SetHelpId (const OUString &rHelpId) |
OUString | GetHelpId () const |
Private Member Functions | |
DECL_LINK (TbxSelectHdl, const OUString &, void) | |
DECL_LINK (ItemSelectHdl, weld::TreeView &, void) | |
DECL_LINK (KeyInputHdl, const KeyEvent &, bool) | |
DECL_LINK (PopupMenuHdl, const CommandEvent &, bool) | |
void | AddChildren (const weld::TreeIter *_pParent, const css::uno::Reference< css::xml::dom::XNode > &_xNode) |
bool | DoToolBoxAction (std::u16string_view rToolBoxID) |
void | AddEntry (std::unique_ptr< ItemNode > _pNewNode, bool _bIsElement, weld::TreeIter *pRet=nullptr) |
void | AddEntry (const css::uno::Reference< css::beans::XPropertySet > &_rPropSet, weld::TreeIter *pRet=nullptr) |
void | EditEntry (const css::uno::Reference< css::beans::XPropertySet > &_rPropSet) |
bool | RemoveEntry () |
void | PrepDnD () |
void | DeleteAndClearTree () |
void | SetMenuEntrySensitive (const OUString &rIdent, bool bSensitive) |
Private Attributes | |
MethodString | m_aMethodString |
ReplaceString | m_aReplaceString |
weld::Container * | m_pParent |
std::unique_ptr< weld::Toolbar > | m_xToolBox |
std::unique_ptr< weld::Menu > | m_xMenu |
std::unique_ptr< weld::TreeView > | m_xItemList |
std::unique_ptr< weld::TreeIter > | m_xScratchIter |
o3tl::sorted_vector< OUString > | m_aRemovedMenuEntries |
DataTreeDropTarget | m_aDropHelper |
css::uno::Reference< css::xforms::XFormsUIHelper1 > | m_xUIHelper |
DataNavigatorWindow * | m_pNaviWin |
bool | m_bHasModel |
DataGroupType | m_eGroup |
OUString | m_sInstanceName |
OUString | m_sInstanceURL |
bool | m_bLinkOnce |
Additional Inherited Members | |
Protected Attributes inherited from BuilderPage | |
weld::DialogController * | m_pDialogController |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Container > | m_xContainer |
Definition at line 180 of file datanavi.hxx.
svxform::XFormsPage::XFormsPage | ( | weld::Container * | pParent, |
DataNavigatorWindow * | _pNaviWin, | ||
DataGroupType | _eGroup | ||
) |
Definition at line 201 of file datanavi.cxx.
References svxform::DGTInstance, svxform::DGTSubmission, LINK, m_eGroup, m_xItemList, m_xToolBox, and SvxResId().
|
overridevirtual |
Definition at line 244 of file datanavi.cxx.
References DeleteAndClearTree(), m_pNaviWin, m_pParent, BuilderPage::m_xContainer, and weld::Container::move().
|
private |
Definition at line 329 of file datanavi.cxx.
References AddChildren(), DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, Exception, i, svxform::DataNavigatorWindow::IsShowDetails(), m_pNaviWin, m_xItemList, m_xScratchIter, m_xUIHelper, sId, sName, and weld::toId().
Referenced by AddChildren(), and LoadInstance().
|
private |
|
private |
Definition at line 706 of file datanavi.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, svxform::DataNavigatorWindow::IsShowDetails(), m_pNaviWin, m_xItemList, m_xScratchIter, m_xUIHelper, sId, sName, and weld::toId().
Referenced by DoToolBoxAction(), and SetModel().
void svxform::XFormsPage::ClearModel | ( | ) |
Definition at line 1134 of file datanavi.cxx.
References DeleteAndClearTree(), and m_bHasModel.
Referenced by svxform::DataNavigatorWindow::ClearAllPageModels().
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 183 of file datanavi.cxx.
References m_xItemList.
Referenced by ClearModel(), and ~XFormsPage().
bool svxform::XFormsPage::DoMenuAction | ( | std::u16string_view | rMenuID | ) |
Definition at line 1182 of file datanavi.cxx.
References DoToolBoxAction().
|
private |
Definition at line 400 of file datanavi.cxx.
References AddEntry(), Any, DBG_ASSERT, svxform::DGTBinding, svxform::DGTInstance, svxform::DGTSubmission, svxform::DataNavigatorWindow::DisableNotify(), svxform::DITAttribute, svxform::DITBinding, svxform::DITElement, EditEntry(), EnableMenuItems(), eType, Exception, svxform::DataNavigatorWindow::GetFrameWeld(), svxform::AddSubmissionDialog::GetNewSubmission(), svxform::AddDataItemDialog::InitText(), svxform::DataNavigatorWindow::IsShowDetails(), m_eGroup, m_pNaviWin, m_sInstanceURL, m_xItemList, svxform::ItemNode::m_xNode, svxform::ItemNode::m_xPropSet, m_xScratchIter, m_xUIHelper, svxform::NEW_ATTRIBUTE, svxform::NEW_ELEMENT, svxform::PN_BINDING_EXPR, svxform::PN_BINDING_ID, RemoveEntry(), RET_OK, weld::DialogController::run(), weld::DialogController::set_title(), svxform::DataNavigatorWindow::SetDocModified(), SvxResId(), TOOLS_WARN_EXCEPTION, u, and xModel.
Referenced by DoMenuAction().
|
private |
Definition at line 806 of file datanavi.cxx.
References svxform::DGTSubmission, Exception, m_aMethodString, m_aReplaceString, m_eGroup, m_xItemList, svxform::PN_SUBMISSION_ACTION, svxform::PN_SUBMISSION_BIND, svxform::PN_SUBMISSION_ID, svxform::PN_SUBMISSION_METHOD, svxform::PN_SUBMISSION_REF, svxform::PN_SUBMISSION_REPLACE, SAL_WARN, SvxResId(), TOOLS_WARN_EXCEPTION, svxform::ReplaceString::toUI(), and svxform::MethodString::toUI().
Referenced by DoToolBoxAction().
void svxform::XFormsPage::EnableMenuItems | ( | ) |
Definition at line 1194 of file datanavi.cxx.
References svxform::DGTInstance, svxform::DGTSubmission, Exception, m_eGroup, m_xItemList, m_xMenu, svxform::ItemNode::m_xNode, svxform::ItemNode::m_xPropSet, m_xToolBox, SetMenuEntrySensitive(), SvxResId(), and TOOLS_WARN_EXCEPTION.
Referenced by DoToolBoxAction(), and SetModel().
|
inline |
|
inline |
Definition at line 242 of file datanavi.hxx.
References m_sInstanceName.
Referenced by svxform::IMPL_LINK().
|
inline |
Definition at line 243 of file datanavi.hxx.
References m_sInstanceURL.
Referenced by svxform::IMPL_LINK().
|
inline |
Definition at line 244 of file datanavi.hxx.
References m_bLinkOnce.
Referenced by svxform::IMPL_LINK().
|
inline |
|
inline |
|
inline |
Definition at line 233 of file datanavi.hxx.
References m_bHasModel.
Referenced by svxform::IMPL_LINK().
OUString svxform::XFormsPage::LoadInstance | ( | const css::uno::Sequence< css::beans::PropertyValue > & | _xPropSeq | ) |
Definition at line 1140 of file datanavi.cxx.
References AddChildren(), svxform::DataNavigatorWindow::AddEventBroadcaster(), Exception, svxform::DataNavigatorWindow::IsShowDetails(), m_pNaviWin, m_sInstanceName, m_sInstanceURL, m_xUIHelper, svxform::PN_INSTANCE_ID, svxform::PN_INSTANCE_MODEL, svxform::PN_INSTANCE_URL, TOOLS_WARN_EXCEPTION, and xTarget.
Referenced by SetModel().
|
private |
Definition at line 262 of file datanavi.cxx.
References DBG_ASSERT, svxform::DGTBinding, svxform::DGTSubmission, DND_ACTION_COPY, DND_ACTION_NONE, FM_COMPONENT_COMMANDBUTTON, GetBindingForNode(), GetServiceNameForNode(), GetXFormsHelper(), m_eGroup, m_xItemList, svxform::ItemNode::m_xNode, svxform::ItemNode::m_xPropSet, m_xScratchIter, and xModel.
|
private |
Definition at line 878 of file datanavi.cxx.
References Any, ATTRIBUTENAME, BINDINGNAME, Application::CreateMessageDialog(), DBG_ASSERT, svxform::DGTInstance, svxform::DGTSubmission, ELEMENTNAME, Exception, svxform::DataNavigatorWindow::GetFrameWeld(), m_eGroup, m_pNaviWin, m_xItemList, svxform::ItemNode::m_xNode, svxform::ItemNode::m_xPropSet, m_xUIHelper, svxform::PN_BINDING_ID, svxform::PN_SUBMISSION_ID, RET_YES, sName, SUBMISSIONNAME, SvxResId(), TOOLS_WARN_EXCEPTION, and xModel.
Referenced by DoToolBoxAction().
void svxform::XFormsPage::SelectFirstEntry | ( | ) |
Definition at line 192 of file datanavi.cxx.
References m_xItemList, and m_xScratchIter.
|
inline |
Definition at line 245 of file datanavi.hxx.
References m_sInstanceName, and name.
Referenced by svxform::IMPL_LINK().
|
inline |
Definition at line 246 of file datanavi.hxx.
References m_sInstanceURL.
Referenced by svxform::IMPL_LINK().
|
inline |
Definition at line 247 of file datanavi.hxx.
References m_bLinkOnce.
Referenced by svxform::IMPL_LINK().
|
private |
Definition at line 1187 of file datanavi.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), m_aRemovedMenuEntries, and m_xMenu.
Referenced by EnableMenuItems().
OUString svxform::XFormsPage::SetModel | ( | const css::uno::Reference< css::xforms::XModel > & | _xModel, |
int | _nPagePos | ||
) |
Definition at line 990 of file datanavi.cxx.
References svxform::DataNavigatorWindow::AddContainerBroadcaster(), AddEntry(), Any, DBG_ASSERT, svxform::DGTBinding, svxform::DGTInstance, svxform::DGTSubmission, EnableMenuItems(), Exception, LoadInstance(), m_bHasModel, m_eGroup, m_pNaviWin, m_xItemList, m_xUIHelper, svxform::PN_BINDING_EXPR, svxform::PN_BINDING_ID, SAL_WARN, sId, weld::toId(), and TOOLS_WARN_EXCEPTION.
Referenced by svxform::DataNavigatorWindow::SetPageModel().
|
private |
Definition at line 194 of file datanavi.hxx.
|
private |
Definition at line 183 of file datanavi.hxx.
Referenced by EditEntry().
|
private |
Definition at line 192 of file datanavi.hxx.
Referenced by SetMenuEntrySensitive().
|
private |
Definition at line 184 of file datanavi.hxx.
Referenced by EditEntry().
|
private |
Definition at line 200 of file datanavi.hxx.
Referenced by ClearModel(), HasModel(), and SetModel().
|
private |
Definition at line 208 of file datanavi.hxx.
Referenced by GetLinkOnce(), and SetLinkOnce().
|
private |
Definition at line 201 of file datanavi.hxx.
Referenced by DoToolBoxAction(), EditEntry(), EnableMenuItems(), PrepDnD(), RemoveEntry(), SetModel(), and XFormsPage().
|
private |
Definition at line 199 of file datanavi.hxx.
Referenced by AddChildren(), AddEntry(), DoToolBoxAction(), LoadInstance(), RemoveEntry(), SetModel(), and ~XFormsPage().
|
private |
Definition at line 186 of file datanavi.hxx.
Referenced by ~XFormsPage().
|
private |
Definition at line 206 of file datanavi.hxx.
Referenced by GetInstanceName(), LoadInstance(), and SetInstanceName().
|
private |
Definition at line 207 of file datanavi.hxx.
Referenced by DoToolBoxAction(), GetInstanceURL(), LoadInstance(), and SetInstanceURL().
|
private |
Definition at line 189 of file datanavi.hxx.
Referenced by AddChildren(), AddEntry(), DeleteAndClearTree(), DoToolBoxAction(), EditEntry(), EnableMenuItems(), PrepDnD(), RemoveEntry(), SelectFirstEntry(), SetModel(), and XFormsPage().
|
private |
Definition at line 188 of file datanavi.hxx.
Referenced by EnableMenuItems(), and SetMenuEntrySensitive().
|
private |
Definition at line 190 of file datanavi.hxx.
Referenced by AddChildren(), AddEntry(), DoToolBoxAction(), PrepDnD(), and SelectFirstEntry().
|
private |
Definition at line 187 of file datanavi.hxx.
Referenced by EnableMenuItems(), and XFormsPage().
|
private |
Definition at line 197 of file datanavi.hxx.
Referenced by AddChildren(), AddEntry(), DoToolBoxAction(), GetBindingForNode(), GetServiceNameForNode(), GetXFormsHelper(), LoadInstance(), RemoveEntry(), and SetModel().