LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
dbaui::OWizColumnSelect Class Reference

#include <WColumnSelect.hxx>

Inheritance diagram for dbaui::OWizColumnSelect:
[legend]
Collaboration diagram for dbaui::OWizColumnSelect:
[legend]

Public Member Functions

virtual void Reset () override
 
virtual void Activate () override
 
virtual bool LeavePage () override
 
virtual OUString GetTitle () const override
 
 OWizColumnSelect (weld::Container *pParent, OCopyTableWizard *pWizard)
 
virtual ~OWizColumnSelect () override
 
- Public Member Functions inherited from vcl::OWizardPage
 OWizardPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID)
 
virtual ~OWizardPage () override
 
virtual void initializePage () override
 
virtual bool commitPage (WizardTypes::CommitPageReason _eReason) override
 
virtual bool canAdvance () const override
 
- 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 (ButtonClickHdl, weld::Button &, void)
 
 DECL_LINK (ListDoubleClickHdl, weld::TreeView &, bool)
 
void createNewColumn (weld::TreeView *_pListbox, OFieldDescription const *_pSrcField, std::vector< OUString > &_rRightColumns, const OUString &_sColumnName, std::u16string_view _sExtraChars, sal_Int32 _nMaxNameLen, const ::comphelper::UStringMixEqual &_aCase)
 
void moveColumn (weld::TreeView *_pRight, weld::TreeView const *_pLeft, std::vector< OUString > &_rRightColumns, const OUString &_sColumnName, std::u16string_view _sExtraChars, sal_Int32 _nMaxNameLen, const ::comphelper::UStringMixEqual &_aCase)
 
void enableButtons ()
 
sal_Int32 adjustColumnPosition (weld::TreeView const *_pLeft, std::u16string_view _sColumnName, ODatabaseExport::TColumnVector::size_type nCurrentPos, const ::comphelper::UStringMixEqual &_aCase)
 

Static Private Member Functions

static void clearListBox (weld::TreeView &_rListBox)
 
static void fillColumns (weld::TreeView const *pRight, std::vector< OUString > &_rRightColumns)
 

Private Attributes

std::unique_ptr< weld::TreeViewm_xOrgColumnNames
 
std::unique_ptr< weld::Buttonm_xColumn_RH
 
std::unique_ptr< weld::Buttonm_xColumns_RH
 
std::unique_ptr< weld::Buttonm_xColumn_LH
 
std::unique_ptr< weld::Buttonm_xColumns_LH
 
std::unique_ptr< weld::TreeViewm_xNewColumnNames
 

Additional Inherited Members

- Protected Member Functions inherited from vcl::OWizardPage
virtual void Activate () override
 
void updateDialogTravelUI ()
 
- Protected Attributes inherited from BuilderPage
weld::DialogControllerm_pDialogController
 
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 32 of file WColumnSelect.hxx.

Constructor & Destructor Documentation

◆ OWizColumnSelect()

OWizColumnSelect::OWizColumnSelect ( weld::Container pParent,
OCopyTableWizard pWizard 
)

◆ ~OWizColumnSelect()

OWizColumnSelect::~OWizColumnSelect ( )
overridevirtual

Definition at line 72 of file WColumnSelect.cxx.

References m_xNewColumnNames.

Member Function Documentation

◆ Activate()

void OWizColumnSelect::Activate ( )
overridevirtual

Reimplemented from vcl::OWizardPage.

Definition at line 103 of file WColumnSelect.cxx.

References clearListBox(), m_xColumns_RH, m_xNewColumnNames, m_xOrgColumnNames, Reset(), sId, and weld::toId().

◆ adjustColumnPosition()

sal_Int32 OWizColumnSelect::adjustColumnPosition ( weld::TreeView const *  _pLeft,
std::u16string_view  _sColumnName,
ODatabaseExport::TColumnVector::size_type  nCurrentPos,
const ::comphelper::UStringMixEqual _aCase 
)
private

Definition at line 348 of file WColumnSelect.cxx.

References weld::TreeView::get_text(), i, m_xColumns_LH, weld::TreeView::n_children(), nCount, and nPos.

Referenced by moveColumn().

◆ clearListBox()

void OWizColumnSelect::clearListBox ( weld::TreeView _rListBox)
staticprivate

Definition at line 261 of file WColumnSelect.cxx.

References weld::TreeView::clear().

Referenced by Activate(), LeavePage(), and Reset().

◆ createNewColumn()

void OWizColumnSelect::createNewColumn ( weld::TreeView _pListbox,
OFieldDescription const *  _pSrcField,
std::vector< OUString > &  _rRightColumns,
const OUString &  _sColumnName,
std::u16string_view  _sExtraChars,
sal_Int32  _nMaxNameLen,
const ::comphelper::UStringMixEqual _aCase 
)
private

◆ DECL_LINK() [1/2]

dbaui::OWizColumnSelect::DECL_LINK ( ButtonClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/2]

dbaui::OWizColumnSelect::DECL_LINK ( ListDoubleClickHdl  ,
weld::TreeView ,
bool   
)
private

◆ enableButtons()

void OWizColumnSelect::enableButtons ( )
private

Definition at line 393 of file WColumnSelect.cxx.

References m_xNewColumnNames.

◆ fillColumns()

void OWizColumnSelect::fillColumns ( weld::TreeView const *  pRight,
std::vector< OUString > &  _rRightColumns 
)
staticprivate

Definition at line 266 of file WColumnSelect.cxx.

References weld::TreeView::get_text(), i, weld::TreeView::n_children(), and nCount.

◆ GetTitle()

OUString OWizColumnSelect::GetTitle ( ) const
overridevirtual

Definition at line 37 of file WColumnSelect.cxx.

References DBA_RES.

◆ LeavePage()

bool OWizColumnSelect::LeavePage ( )
overridevirtual

◆ moveColumn()

void OWizColumnSelect::moveColumn ( weld::TreeView _pRight,
weld::TreeView const *  _pLeft,
std::vector< OUString > &  _rRightColumns,
const OUString &  _sColumnName,
std::u16string_view  _sExtraChars,
sal_Int32  _nMaxNameLen,
const ::comphelper::UStringMixEqual _aCase 
)
private

◆ Reset()

void OWizColumnSelect::Reset ( void  )
overridevirtual

Definition at line 81 of file WColumnSelect.cxx.

References clearListBox(), m_xNewColumnNames, m_xOrgColumnNames, sId, and weld::toId().

Referenced by Activate().

Member Data Documentation

◆ m_xColumn_LH

std::unique_ptr<weld::Button> dbaui::OWizColumnSelect::m_xColumn_LH
private

Definition at line 37 of file WColumnSelect.hxx.

Referenced by OWizColumnSelect().

◆ m_xColumn_RH

std::unique_ptr<weld::Button> dbaui::OWizColumnSelect::m_xColumn_RH
private

Definition at line 35 of file WColumnSelect.hxx.

Referenced by OWizColumnSelect().

◆ m_xColumns_LH

std::unique_ptr<weld::Button> dbaui::OWizColumnSelect::m_xColumns_LH
private

Definition at line 38 of file WColumnSelect.hxx.

Referenced by adjustColumnPosition(), and OWizColumnSelect().

◆ m_xColumns_RH

std::unique_ptr<weld::Button> dbaui::OWizColumnSelect::m_xColumns_RH
private

Definition at line 36 of file WColumnSelect.hxx.

Referenced by Activate(), and OWizColumnSelect().

◆ m_xNewColumnNames

std::unique_ptr<weld::TreeView> dbaui::OWizColumnSelect::m_xNewColumnNames
private

◆ m_xOrgColumnNames

std::unique_ptr<weld::TreeView> dbaui::OWizColumnSelect::m_xOrgColumnNames
private

Definition at line 34 of file WColumnSelect.hxx.

Referenced by Activate(), OWizColumnSelect(), and Reset().


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