LibreOffice Module reportdesign (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
rptui::OAddFieldWindow Class Reference

#include <AddField.hxx>

Inheritance diagram for rptui::OAddFieldWindow:
[legend]
Collaboration diagram for rptui::OAddFieldWindow:
[legend]

Public Member Functions

 OAddFieldWindow (weld::Window *pParent, css::uno::Reference< css::beans::XPropertySet > xRowSet)
 
virtual ~OAddFieldWindow () override
 
const OUString & GetCommand () const
 
sal_Int32 GetCommandType () const
 
void SetCreateHdl (const Link< OAddFieldWindow &, void > &_aCreateLink)
 
css::uno::Reference< css::sdbc::XConnection > getConnection () const
 
css::uno::Sequence< css::beans::PropertyValue > getSelectedFieldDescriptors ()
 
void Update ()
 Updates the current field list. More...
 
void fillDescriptor (const weld::TreeIter &rSelected, svx::ODataAccessDescriptor &rDescriptor)
 fills the descriptor with the column name, column object, command and command type More...
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 
- Public Member Functions inherited from comphelper::OPropertyChangeListener
 OPropertyChangeListener (::osl::Mutex &_rMutex)
 
virtual ~OPropertyChangeListener ()
 
virtual void _propertyChanged (const css::beans::PropertyChangeEvent &_rEvent)=0
 
virtual void _disposing (const css::lang::EventObject &_rSource)
 
- Public Member Functions inherited from comphelper::OContainerListener
 OContainerListener (::osl::Mutex &_rMutex)
 
virtual ~OContainerListener ()
 
virtual void _elementInserted (const css::container::ContainerEvent &_rEvent)
 
virtual void _elementRemoved (const css::container::ContainerEvent &_rEvent)
 
virtual void _elementReplaced (const css::container::ContainerEvent &_rEvent)
 
virtual void _disposing (const css::lang::EventObject &_rSource)
 

Private Member Functions

 DECL_LINK (OnDoubleClickHdl, weld::TreeView &, bool)
 
 DECL_LINK (OnSelectHdl, weld::TreeView &, void)
 
 DECL_LINK (DragBeginHdl, bool &, bool)
 
 DECL_LINK (OnSortAction, const OUString &, void)
 
 DECL_LINK (FocusChangeHdl, weld::Container &, void)
 
void addToList (const css::uno::Sequence< OUString > &rEntries)
 
void addToList (const css::uno::Reference< css::container::XNameAccess > &i_xColumns)
 
 OAddFieldWindow (const OAddFieldWindow &)=delete
 
void operator= (const OAddFieldWindow &)=delete
 
virtual void _propertyChanged (const css::beans::PropertyChangeEvent &evt) override
 
virtual void _elementInserted (const css::container::ContainerEvent &_rEvent) override
 
virtual void _elementRemoved (const css::container::ContainerEvent &_rEvent) override
 
virtual void _elementReplaced (const css::container::ContainerEvent &_rEvent) override
 

Private Attributes

css::uno::Reference< css::lang::XComponent > m_xHoldAlive
 
css::uno::Reference< css::container::XNameAccess > m_xColumns
 
css::uno::Reference< css::beans::XPropertySetm_xRowSet
 
std::unique_ptr< weld::Toolbarm_xActions
 
std::unique_ptr< weld::TreeViewm_xListBox
 
Link< OAddFieldWindow &, void > m_aCreateLink
 
OUString m_aCommandName
 
OUString m_sFilter
 
sal_Int32 m_nCommandType
 
bool m_bEscapeProcessing
 
::rtl::Reference< comphelper::OPropertyChangeMultiplexerm_pChangeListener
 
::rtl::Reference< comphelper::OContainerListenerAdapterm_pContainerListener
 
::rtl::Reference< svx::OMultiColumnTransferablem_xHelper
 
std::vector< std::unique_ptr< ColumnInfo > > m_aListBoxData
 

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 Member Functions inherited from comphelper::OPropertyChangeListener
void disposeAdapter ()
 
- Protected Member Functions inherited from comphelper::OContainerListener
void setAdapter (OContainerListenerAdapter *_pAdapter)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 44 of file AddField.hxx.

Constructor & Destructor Documentation

◆ OAddFieldWindow() [1/2]

rptui::OAddFieldWindow::OAddFieldWindow ( const OAddFieldWindow )
privatedelete

◆ OAddFieldWindow() [2/2]

rptui::OAddFieldWindow::OAddFieldWindow ( weld::Window pParent,
css::uno::Reference< css::beans::XPropertySet xRowSet 
)

◆ ~OAddFieldWindow()

rptui::OAddFieldWindow::~OAddFieldWindow ( )
overridevirtual

Definition at line 111 of file AddField.cxx.

Member Function Documentation

◆ _elementInserted()

void rptui::OAddFieldWindow::_elementInserted ( const css::container::ContainerEvent &  _rEvent)
overrideprivatevirtual

Reimplemented from comphelper::OContainerListener.

Definition at line 281 of file AddField.cxx.

References PROPERTY_LABEL, sId, sName, weld::toId(), and xColumn.

◆ _elementRemoved()

void rptui::OAddFieldWindow::_elementRemoved ( const css::container::ContainerEvent &  _rEvent)
overrideprivatevirtual

Reimplemented from comphelper::OContainerListener.

Definition at line 299 of file AddField.cxx.

◆ _elementReplaced()

void rptui::OAddFieldWindow::_elementReplaced ( const css::container::ContainerEvent &  _rEvent)
overrideprivatevirtual

Reimplemented from comphelper::OContainerListener.

Definition at line 307 of file AddField.cxx.

◆ _propertyChanged()

void rptui::OAddFieldWindow::_propertyChanged ( const css::beans::PropertyChangeEvent &  evt)
overrideprivatevirtual

Implements comphelper::OPropertyChangeListener.

Definition at line 143 of file AddField.cxx.

References Update.

◆ addToList() [1/2]

void rptui::OAddFieldWindow::addToList ( const css::uno::Reference< css::container::XNameAccess > &  i_xColumns)
private

◆ addToList() [2/2]

void rptui::OAddFieldWindow::addToList ( const css::uno::Sequence< OUString > &  rEntries)
private

◆ DECL_LINK() [1/5]

rptui::OAddFieldWindow::DECL_LINK ( DragBeginHdl  ,
bool &  ,
bool   
)
private

◆ DECL_LINK() [2/5]

rptui::OAddFieldWindow::DECL_LINK ( FocusChangeHdl  ,
weld::Container ,
void   
)
private

◆ DECL_LINK() [3/5]

rptui::OAddFieldWindow::DECL_LINK ( OnDoubleClickHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [4/5]

rptui::OAddFieldWindow::DECL_LINK ( OnSelectHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [5/5]

rptui::OAddFieldWindow::DECL_LINK ( OnSortAction  ,
const OUString &  ,
void   
)
private

◆ fillDescriptor()

void rptui::OAddFieldWindow::fillDescriptor ( const weld::TreeIter rSelected,
svx::ODataAccessDescriptor rDescriptor 
)

fills the descriptor with the column name, column object, command and command type

Parameters
rSelectedthe currently selected
rDescriptorthe descriptor will be filled

Definition at line 253 of file AddField.cxx.

References svx::ColumnName, svx::ColumnObject, svx::Command, svx::CommandType, svx::Connection, svx::EscapeProcessing, getConnection(), rptui::ColumnInfo::sColumnName, and xModel.

◆ GetCommand()

const OUString & rptui::OAddFieldWindow::GetCommand ( ) const
inline

Definition at line 84 of file AddField.hxx.

References m_aCommandName.

◆ GetCommandType()

sal_Int32 rptui::OAddFieldWindow::GetCommandType ( ) const
inline

Definition at line 85 of file AddField.hxx.

References m_nCommandType.

◆ getConnection()

uno::Reference< sdbc::XConnection > rptui::OAddFieldWindow::getConnection ( ) const

Definition at line 248 of file AddField.cxx.

References PROPERTY_ACTIVECONNECTION.

◆ getSelectedFieldDescriptors()

uno::Sequence< beans::PropertyValue > rptui::OAddFieldWindow::getSelectedFieldDescriptors ( )

◆ operator=()

void rptui::OAddFieldWindow::operator= ( const OAddFieldWindow )
privatedelete

◆ SetCreateHdl()

void rptui::OAddFieldWindow::SetCreateHdl ( const Link< OAddFieldWindow &, void > &  _aCreateLink)
inline

Definition at line 86 of file AddField.hxx.

References m_aCreateLink.

◆ Update()

void rptui::OAddFieldWindow::Update ( )

Member Data Documentation

◆ m_aCommandName

OUString rptui::OAddFieldWindow::m_aCommandName
private

Definition at line 57 of file AddField.hxx.

Referenced by GetCommand().

◆ m_aCreateLink

Link<OAddFieldWindow&,void> rptui::OAddFieldWindow::m_aCreateLink
private

Definition at line 56 of file AddField.hxx.

Referenced by SetCreateHdl().

◆ m_aListBoxData

std::vector<std::unique_ptr<ColumnInfo> > rptui::OAddFieldWindow::m_aListBoxData
private

Definition at line 65 of file AddField.hxx.

◆ m_bEscapeProcessing

bool rptui::OAddFieldWindow::m_bEscapeProcessing
private

Definition at line 60 of file AddField.hxx.

◆ m_nCommandType

sal_Int32 rptui::OAddFieldWindow::m_nCommandType
private

Definition at line 59 of file AddField.hxx.

Referenced by GetCommandType().

◆ m_pChangeListener

::rtl::Reference< comphelper::OPropertyChangeMultiplexer> rptui::OAddFieldWindow::m_pChangeListener
private

Definition at line 61 of file AddField.hxx.

◆ m_pContainerListener

::rtl::Reference< comphelper::OContainerListenerAdapter> rptui::OAddFieldWindow::m_pContainerListener
private

Definition at line 62 of file AddField.hxx.

◆ m_sFilter

OUString rptui::OAddFieldWindow::m_sFilter
private

Definition at line 58 of file AddField.hxx.

◆ m_xActions

std::unique_ptr<weld::Toolbar> rptui::OAddFieldWindow::m_xActions
private

Definition at line 53 of file AddField.hxx.

◆ m_xColumns

css::uno::Reference< css::container::XNameAccess> rptui::OAddFieldWindow::m_xColumns
private

Definition at line 50 of file AddField.hxx.

◆ m_xHelper

::rtl::Reference< svx::OMultiColumnTransferable > rptui::OAddFieldWindow::m_xHelper
private

Definition at line 63 of file AddField.hxx.

◆ m_xHoldAlive

css::uno::Reference< css::lang::XComponent> rptui::OAddFieldWindow::m_xHoldAlive
private

Definition at line 49 of file AddField.hxx.

◆ m_xListBox

std::unique_ptr<weld::TreeView> rptui::OAddFieldWindow::m_xListBox
private

Definition at line 54 of file AddField.hxx.

◆ m_xRowSet

css::uno::Reference< css::beans::XPropertySet > rptui::OAddFieldWindow::m_xRowSet
private

Definition at line 51 of file AddField.hxx.


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