19#ifndef INCLUDED_SVX_SOURCE_INC_DATANAVI_HXX
20#define INCLUDED_SVX_SOURCE_INC_DATANAVI_HXX
22#include <config_options.h>
33#include <svx/strings.hrc>
36#include <com/sun/star/beans/XPropertySet.hpp>
37#include <com/sun/star/container/XContainer.hpp>
38#include <com/sun/star/container/XNameContainer.hpp>
39#include <com/sun/star/frame/XFrame.hpp>
40#include <com/sun/star/xforms/XFormsUIHelper1.hpp>
41#include <com/sun/star/xforms/XModel.hpp>
42#include <com/sun/star/xforms/XSubmission.hpp>
43#include <com/sun/star/xml/dom/XNode.hpp>
44#include <com/sun/star/xml/dom/events/XEventTarget.hpp>
78 class DataNavigatorWindow;
79 class AddInstanceDialog;
103 OUString
const &
toUI( std::u16string_view rStr )
const
115 OUString
toAPI( std::u16string_view rStr )
const
148 OUString
const &
toUI( std::u16string_view rStr )
const
159 OUString
toAPI( std::u16string_view rStr )
const
196 css::uno::Reference< css::xforms::XFormsUIHelper1 >
216 const css::uno::Reference< css::xml::dom::XNode >& _xNode);
220 void EditEntry(
const css::uno::Reference< css::beans::XPropertySet >& _rPropSet );
234 OUString
SetModel(
const css::uno::Reference< css::xforms::XModel > & _xModel,
int _nPagePos );
236 OUString
LoadInstance(
const css::uno::Sequence< css::beans::PropertyValue >& _xPropSeq);
249 css::uno::Reference<css::beans::XPropertySet>
252 const css::uno::Reference< css::xforms::XFormsUIHelper1 >&
272 std::vector< std::unique_ptr<XFormsPage> >
274 std::vector< css::uno::Reference< css::container::XContainer > >
276 std::vector< css::uno::Reference< css::xml::dom::events::XEventTarget > >
282 css::uno::Reference< css::container::XNameContainer >
284 css::uno::Reference< css::frame::XFrame >
286 css::uno::Reference< css::frame::XModel >
301 void CreateInstancePage(
const css::uno::Sequence< css::beans::PropertyValue >& _xPropSeq );
314 void AddEventBroadcaster(
const css::uno::Reference< css::xml::dom::events::XEventTarget >& xTarget );
334 virtual void dispose()
override;
342 class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) DataNavigatorManager final :
public SfxChildWindow
353 css::uno::Reference< css::xforms::XFormsUIHelper1 >
355 css::uno::Reference< css::beans::XPropertySet >
357 css::uno::Reference< css::beans::XPropertySet >
394 void InitDataTypeBox();
399 const css::uno::Reference< css::xforms::XFormsUIHelper1 >& _rUIHelper );
411 css::uno::Reference< css::xforms::XFormsUIHelper1 >
413 css::uno::Reference< css::beans::XPropertySet >
428 OUString _aPropertyName,
const css::uno::Reference< css::beans::XPropertySet >& _rBinding);
431 const css::uno::Reference< css::xforms::XFormsUIHelper1 >&
GetUIHelper()
const {
return m_xUIHelper; }
435 m_xConditionED->set_text(_rCondition);
436 m_aResultIdle.
Start();
446 css::uno::Reference< css::container::XNameContainer >&
459 void LoadNamespaces();
484 m_xPrefixED->set_text(_rPrefix);
485 m_xUrlED->set_text(_rURL);
487 OUString
GetPrefix()
const {
return m_xPrefixED->get_text(); }
488 OUString
GetURL()
const {
return m_xUrlED->get_text(); }
499 css::uno::Reference< css::xforms::XFormsUIHelper1 >
501 css::uno::Reference< css::xforms::XSubmission >
503 css::uno::Reference< css::beans::XPropertySet >
505 css::uno::Reference< css::beans::XPropertySet >
507 css::uno::Reference< css::beans::XPropertySet >
526 const css::uno::Reference< css::xforms::XFormsUIHelper1 >& rUIHelper);
529 const css::uno::Reference< css::xforms::XSubmission >&
GetNewSubmission()
const {
return m_xNewSubmission; }
543 OUString
GetName()
const {
return m_xNameED->get_text(); }
544 void SetName(
const OUString& _rName ) { m_xNameED->set_text( _rName );}
547 void SetModifyDoc(
const bool bModify ) { m_xModifyCB->set_active(bModify); }
567 OUString
GetName()
const {
return m_xNameED->get_text(); }
568 void SetName(
const OUString& rName ) { m_xNameED->set_text( rName );}
569 OUString
GetURL()
const {
return m_xURLED->get_active_text(); }
570 void SetURL(
const OUString& rURL ) { m_xURLED->set_entry_text( rURL );}
#define SFX_DECL_CHILDWINDOW(Class)
virtual void Start(bool bStartTimer=true) override
virtual void StateChanged(StateChangedType nStateChange) override
OUString LoadInstance(const css::uno::Sequence< css::beans::PropertyValue > &_xPropSeq)
void AddEntry(const css::uno::Reference< css::beans::XPropertySet > &_rPropSet, weld::TreeIter *pRet=nullptr)
std::unique_ptr< weld::Toolbar > m_xToolBox
std::unique_ptr< weld::Menu > m_xMenu
void AddEntry(std::unique_ptr< ItemNode > _pNewNode, bool _bIsElement, weld::TreeIter *pRet=nullptr)
void SetInstanceName(const OUString &name)
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
OUString SetModel(const css::uno::Reference< css::xforms::XModel > &_xModel, int _nPagePos)
css::uno::Reference< css::xforms::XFormsUIHelper1 > m_xUIHelper
void AddChildren(const weld::TreeIter *_pParent, const css::uno::Reference< css::xml::dom::XNode > &_xNode)
DataNavigatorWindow * m_pNaviWin
std::unique_ptr< weld::TreeView > m_xItemList
void SetLinkOnce(bool bLinkOnce)
const OUString & GetInstanceName() const
o3tl::sorted_vector< OUString > m_aRemovedMenuEntries
DECL_LINK(TbxSelectHdl, const OUString &, void)
void EditEntry(const css::uno::Reference< css::beans::XPropertySet > &_rPropSet)
DECL_LINK(PopupMenuHdl, const CommandEvent &, bool)
DataTreeDropTarget m_aDropHelper
OUString GetServiceNameForNode(const css::uno::Reference< css::xml::dom::XNode > &xNode)
ReplaceString m_aReplaceString
XFormsPage(weld::Container *pParent, DataNavigatorWindow *_pNaviWin, DataGroupType _eGroup)
css::uno::Reference< css::beans::XPropertySet > GetBindingForNode(const css::uno::Reference< css::xml::dom::XNode > &xNode)
bool DoMenuAction(std::u16string_view rMenuID)
weld::Container * m_pParent
virtual ~XFormsPage() override
void SetMenuEntrySensitive(const OUString &rIdent, bool bSensitive)
void SetInstanceURL(const OUString &url)
const css::uno::Reference< css::xforms::XFormsUIHelper1 > & GetXFormsHelper() const
MethodString m_aMethodString
DECL_LINK(ItemSelectHdl, weld::TreeView &, void)
const OUString & GetInstanceURL() const
void DeleteAndClearTree()
std::unique_ptr< weld::TreeIter > m_xScratchIter
bool DoToolBoxAction(std::u16string_view rToolBoxID)
OUString SvxResId(TranslateId aId)