20#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_ADDFIELD_HXX
21#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_ADDFIELD_HXX
23#include <com/sun/star/lang/XComponent.hpp>
24#include <com/sun/star/container/XNameAccess.hpp>
25#include <com/sun/star/sdbc/XConnection.hpp>
50 css::uno::Reference< css::container::XNameAccess>
m_xColumns;
51 css::uno::Reference< css::beans::XPropertySet >
m_xRowSet;
73 void addToList(
const css::uno::Sequence<OUString>& rEntries);
74 void addToList(
const css::uno::Reference<css::container::XNameAccess>& i_xColumns);
80 css::uno::Reference< css::beans::XPropertySet > xRowSet);
88 css::uno::Reference< css::sdbc::XConnection>
getConnection()
const;
104 virtual void _propertyChanged(
const css::beans::PropertyChangeEvent& evt)
override;
106 virtual void _elementInserted(
const css::container::ContainerEvent& _rEvent )
override;
107 virtual void _elementRemoved(
const css::container::ContainerEvent& _rEvent )
override;
108 virtual void _elementReplaced(
const css::container::ContainerEvent& _rEvent )
override;
css::uno::Reference< css::sdbc::XConnection > getConnection() const
css::uno::Reference< css::container::XNameAccess > m_xColumns
DECL_LINK(OnSelectHdl, weld::TreeView &, void)
virtual void _elementInserted(const css::container::ContainerEvent &_rEvent) override
virtual ~OAddFieldWindow() override
OAddFieldWindow(const OAddFieldWindow &)=delete
std::unique_ptr< weld::TreeView > m_xListBox
sal_Int32 GetCommandType() const
std::vector< std::unique_ptr< ColumnInfo > > m_aListBoxData
virtual void _elementRemoved(const css::container::ContainerEvent &_rEvent) override
void addToList(const css::uno::Reference< css::container::XNameAccess > &i_xColumns)
DECL_LINK(OnDoubleClickHdl, weld::TreeView &, bool)
::rtl::Reference< svx::OMultiColumnTransferable > m_xHelper
DECL_LINK(FocusChangeHdl, weld::Container &, void)
virtual void _propertyChanged(const css::beans::PropertyChangeEvent &evt) override
void fillDescriptor(const weld::TreeIter &rSelected, svx::ODataAccessDescriptor &rDescriptor)
fills the descriptor with the column name, column object, command and command type
void operator=(const OAddFieldWindow &)=delete
const OUString & GetCommand() const
void SetCreateHdl(const Link< OAddFieldWindow &, void > &_aCreateLink)
css::uno::Sequence< css::beans::PropertyValue > getSelectedFieldDescriptors()
Link< OAddFieldWindow &, void > m_aCreateLink
std::unique_ptr< weld::Toolbar > m_xActions
OAddFieldWindow(weld::Window *pParent, css::uno::Reference< css::beans::XPropertySet > xRowSet)
css::uno::Reference< css::lang::XComponent > m_xHoldAlive
DECL_LINK(OnSortAction, const OUString &, void)
DECL_LINK(DragBeginHdl, bool &, bool)
::rtl::Reference< comphelper::OContainerListenerAdapter > m_pContainerListener
void Update()
Updates the current field list.
css::uno::Reference< css::beans::XPropertySet > m_xRowSet
::rtl::Reference< comphelper::OPropertyChangeMultiplexer > m_pChangeListener
void addToList(const css::uno::Sequence< OUString > &rEntries)
virtual void _elementReplaced(const css::container::ContainerEvent &_rEvent) override