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, const 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 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
 
- Public Member Functions inherited from comphelper::OPropertyChangeListener
 OPropertyChangeListener (::osl::Mutex &_rMutex)
 
virtual ~OPropertyChangeListener ()
 
virtual void _disposing (const css::lang::EventObject &_rSource)
 
- Public Member Functions inherited from comphelper::OContainerListener
 OContainerListener (::osl::Mutex &_rMutex)
 
virtual ~OContainerListener ()
 
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 OString &, void)
 
 DECL_LINK (FocusChangeHdl, weld::Widget &, 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
 
std::unique_ptr< weld::Labelm_xHelpText
 
Link< OAddFieldWindow &, voidm_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 ()
 
void setAdapter (OPropertyChangeMultiplexer *_pAdapter)
 
- 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
 
- Protected Attributes inherited from comphelper::OContainerListener
rtl::Reference< OContainerListenerAdapterm_xAdapter
 
::osl::Mutex & m_rMutex
 

Detailed Description

Definition at line 44 of file AddField.hxx.

Constructor & Destructor Documentation

rptui::OAddFieldWindow::OAddFieldWindow ( const OAddFieldWindow )
privatedelete
rptui::OAddFieldWindow::OAddFieldWindow ( weld::Window pParent,
const css::uno::Reference< css::beans::XPropertySet > &  xRowSet 
)
rptui::OAddFieldWindow::~OAddFieldWindow ( )
overridevirtual

Definition at line 111 of file AddField.cxx.

References m_pContainerListener.

Member Function Documentation

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, and xColumn.

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

Reimplemented from comphelper::OContainerListener.

Definition at line 299 of file AddField.cxx.

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

Reimplemented from comphelper::OContainerListener.

Definition at line 307 of file AddField.cxx.

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

Implements comphelper::OPropertyChangeListener.

Definition at line 143 of file AddField.cxx.

References Update.

void rptui::OAddFieldWindow::addToList ( const css::uno::Sequence< OUString > &  rEntries)
private
void rptui::OAddFieldWindow::addToList ( const css::uno::Reference< css::container::XNameAccess > &  i_xColumns)
private
rptui::OAddFieldWindow::DECL_LINK ( OnDoubleClickHdl  ,
weld::TreeView ,
bool   
)
private
rptui::OAddFieldWindow::DECL_LINK ( OnSelectHdl  ,
weld::TreeView ,
void   
)
private
rptui::OAddFieldWindow::DECL_LINK ( DragBeginHdl  ,
bool &  ,
bool   
)
private
rptui::OAddFieldWindow::DECL_LINK ( OnSortAction  ,
const OString &  ,
void   
)
private
rptui::OAddFieldWindow::DECL_LINK ( FocusChangeHdl  ,
weld::Widget ,
void   
)
private
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.

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

Definition at line 85 of file AddField.hxx.

References m_aCommandName.

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

Definition at line 86 of file AddField.hxx.

References m_nCommandType.

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

Definition at line 248 of file AddField.cxx.

References PROPERTY_ACTIVECONNECTION.

uno::Sequence< beans::PropertyValue > rptui::OAddFieldWindow::getSelectedFieldDescriptors ( )
void rptui::OAddFieldWindow::operator= ( const OAddFieldWindow )
privatedelete
void rptui::OAddFieldWindow::SetCreateHdl ( const Link< OAddFieldWindow &, void > &  _aCreateLink)
inline

Definition at line 87 of file AddField.hxx.

void rptui::OAddFieldWindow::Update ( )

Member Data Documentation

OUString rptui::OAddFieldWindow::m_aCommandName
private

Definition at line 58 of file AddField.hxx.

Referenced by GetCommand().

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

Definition at line 57 of file AddField.hxx.

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

Definition at line 66 of file AddField.hxx.

bool rptui::OAddFieldWindow::m_bEscapeProcessing
private

Definition at line 61 of file AddField.hxx.

sal_Int32 rptui::OAddFieldWindow::m_nCommandType
private

Definition at line 60 of file AddField.hxx.

Referenced by GetCommandType().

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

Definition at line 62 of file AddField.hxx.

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

Definition at line 63 of file AddField.hxx.

OUString rptui::OAddFieldWindow::m_sFilter
private

Definition at line 59 of file AddField.hxx.

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

Definition at line 53 of file AddField.hxx.

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

Definition at line 50 of file AddField.hxx.

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

Definition at line 64 of file AddField.hxx.

std::unique_ptr<weld::Label> rptui::OAddFieldWindow::m_xHelpText
private

Definition at line 55 of file AddField.hxx.

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

Definition at line 49 of file AddField.hxx.

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

Definition at line 54 of file AddField.hxx.

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: