LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ScMoveTableDlg Class Reference

#include <mvtabdlg.hxx>

Inheritance diagram for ScMoveTableDlg:
[legend]
Collaboration diagram for ScMoveTableDlg:
[legend]

Public Member Functions

 ScMoveTableDlg (weld::Window *pParent, OUString aDefault)
 
virtual ~ScMoveTableDlg () override
 
sal_uInt16 GetSelectedDocument () const
 
SCTAB GetSelectedTable () const
 
bool GetCopyTable () const
 
bool GetRenameTable () const
 
void GetTabNameString (OUString &rString) const
 
void SetForceCopyTable ()
 
void EnableRenameTable (bool bFlag)
 
void SetOkBtnLabel ()
 
- 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
 

Private Member Functions

void ResetRenameInput ()
 
void CheckNewTabName ()
 
ScDocumentGetSelectedDoc ()
 
void Init ()
 
void InitDocListBox ()
 
 DECL_LINK (OkHdl, weld::Button &, void)
 
 DECL_LINK (SelHdl, weld::ComboBox &, void)
 
 DECL_LINK (CheckBtnHdl, weld::Toggleable &, void)
 
 DECL_LINK (CheckNameHdl, weld::Entry &, void)
 

Private Attributes

OUString msCurrentDoc
 
OUString msNewDoc
 
OUString msStrTabNameUsed
 
OUString msStrTabNameEmpty
 
OUString msStrTabNameInvalid
 
const OUString maDefaultName
 
sal_uInt16 mnCurrentDocPos
 
sal_uInt16 nDocument
 
SCTAB nTable
 
bool bCopyTable:1
 
bool bRenameTable:1
 
bool mbEverEdited:1
 
std::unique_ptr< weld::RadioButtonm_xBtnMove
 
std::unique_ptr< weld::RadioButtonm_xBtnCopy
 
std::unique_ptr< weld::Labelm_xFtDoc
 
std::unique_ptr< weld::ComboBoxm_xLbDoc
 
std::unique_ptr< weld::TreeViewm_xLbTable
 
std::unique_ptr< weld::Entrym_xEdTabName
 
std::unique_ptr< weld::Labelm_xFtWarn
 
std::unique_ptr< weld::Buttonm_xBtnOk
 
std::unique_ptr< weld::Labelm_xUnusedLabel
 
std::unique_ptr< weld::Labelm_xEmptyLabel
 
std::unique_ptr< weld::Labelm_xInvalidLabel
 

Static Private Attributes

static bool mbRememeberedCopy = false
 

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 Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 27 of file mvtabdlg.hxx.

Constructor & Destructor Documentation

◆ ScMoveTableDlg()

ScMoveTableDlg::ScMoveTableDlg ( weld::Window pParent,
OUString  aDefault 
)

◆ ~ScMoveTableDlg()

ScMoveTableDlg::~ScMoveTableDlg ( )
overridevirtual

Definition at line 69 of file mvtabdlg.cxx.

Member Function Documentation

◆ CheckNewTabName()

void ScMoveTableDlg::CheckNewTabName ( )
private

◆ DECL_LINK() [1/4]

ScMoveTableDlg::DECL_LINK ( CheckBtnHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/4]

ScMoveTableDlg::DECL_LINK ( CheckNameHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [3/4]

ScMoveTableDlg::DECL_LINK ( OkHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/4]

ScMoveTableDlg::DECL_LINK ( SelHdl  ,
weld::ComboBox ,
void   
)
private

◆ EnableRenameTable()

void ScMoveTableDlg::EnableRenameTable ( bool  bFlag)

Definition at line 83 of file mvtabdlg.cxx.

References bRenameTable, m_xEdTabName, and ResetRenameInput().

◆ GetCopyTable()

bool ScMoveTableDlg::GetCopyTable ( ) const
inline

Definition at line 35 of file mvtabdlg.hxx.

References bCopyTable.

◆ GetRenameTable()

bool ScMoveTableDlg::GetRenameTable ( ) const
inline

Definition at line 36 of file mvtabdlg.hxx.

References bRenameTable.

◆ GetSelectedDoc()

ScDocument * ScMoveTableDlg::GetSelectedDoc ( )
private

Definition at line 182 of file mvtabdlg.cxx.

References m_xLbDoc.

Referenced by ResetRenameInput().

◆ GetSelectedDocument()

sal_uInt16 ScMoveTableDlg::GetSelectedDocument ( ) const
inline

Definition at line 33 of file mvtabdlg.hxx.

References nDocument.

◆ GetSelectedTable()

SCTAB ScMoveTableDlg::GetSelectedTable ( ) const
inline

Definition at line 34 of file mvtabdlg.hxx.

References nTable.

◆ GetTabNameString()

void ScMoveTableDlg::GetTabNameString ( OUString &  rString) const

Definition at line 71 of file mvtabdlg.cxx.

References m_xEdTabName.

◆ Init()

void ScMoveTableDlg::Init ( void  )
private

◆ InitDocListBox()

void ScMoveTableDlg::InitDocListBox ( )
private

◆ ResetRenameInput()

void ScMoveTableDlg::ResetRenameInput ( )
private

◆ SetForceCopyTable()

void ScMoveTableDlg::SetForceCopyTable ( )

Definition at line 76 of file mvtabdlg.cxx.

References m_xBtnCopy, m_xBtnMove, and SetOkBtnLabel().

◆ SetOkBtnLabel()

void ScMoveTableDlg::SetOkBtnLabel ( )

Definition at line 247 of file mvtabdlg.cxx.

References m_xBtnCopy, m_xBtnMove, m_xBtnOk, and mbRememeberedCopy.

Referenced by Init(), and SetForceCopyTable().

Member Data Documentation

◆ bCopyTable

bool ScMoveTableDlg::bCopyTable
private

Definition at line 60 of file mvtabdlg.hxx.

Referenced by GetCopyTable().

◆ bRenameTable

bool ScMoveTableDlg::bRenameTable
private

Definition at line 61 of file mvtabdlg.hxx.

Referenced by EnableRenameTable(), and GetRenameTable().

◆ m_xBtnCopy

std::unique_ptr<weld::RadioButton> ScMoveTableDlg::m_xBtnCopy
private

Definition at line 68 of file mvtabdlg.hxx.

Referenced by Init(), ResetRenameInput(), SetForceCopyTable(), and SetOkBtnLabel().

◆ m_xBtnMove

std::unique_ptr<weld::RadioButton> ScMoveTableDlg::m_xBtnMove
private

Definition at line 67 of file mvtabdlg.hxx.

Referenced by CheckNewTabName(), Init(), SetForceCopyTable(), and SetOkBtnLabel().

◆ m_xBtnOk

std::unique_ptr<weld::Button> ScMoveTableDlg::m_xBtnOk
private

Definition at line 74 of file mvtabdlg.hxx.

Referenced by CheckNewTabName(), Init(), and SetOkBtnLabel().

◆ m_xEdTabName

std::unique_ptr<weld::Entry> ScMoveTableDlg::m_xEdTabName
private

◆ m_xEmptyLabel

std::unique_ptr<weld::Label> ScMoveTableDlg::m_xEmptyLabel
private

Definition at line 76 of file mvtabdlg.hxx.

Referenced by ScMoveTableDlg().

◆ m_xFtDoc

std::unique_ptr<weld::Label> ScMoveTableDlg::m_xFtDoc
private

Definition at line 69 of file mvtabdlg.hxx.

Referenced by Init().

◆ m_xFtWarn

std::unique_ptr<weld::Label> ScMoveTableDlg::m_xFtWarn
private

Definition at line 73 of file mvtabdlg.hxx.

Referenced by CheckNewTabName(), and Init().

◆ m_xInvalidLabel

std::unique_ptr<weld::Label> ScMoveTableDlg::m_xInvalidLabel
private

Definition at line 77 of file mvtabdlg.hxx.

Referenced by ScMoveTableDlg().

◆ m_xLbDoc

std::unique_ptr<weld::ComboBox> ScMoveTableDlg::m_xLbDoc
private

Definition at line 70 of file mvtabdlg.hxx.

Referenced by CheckNewTabName(), GetSelectedDoc(), Init(), InitDocListBox(), and ScMoveTableDlg().

◆ m_xLbTable

std::unique_ptr<weld::TreeView> ScMoveTableDlg::m_xLbTable
private

Definition at line 71 of file mvtabdlg.hxx.

Referenced by CheckNewTabName(), and ScMoveTableDlg().

◆ m_xUnusedLabel

std::unique_ptr<weld::Label> ScMoveTableDlg::m_xUnusedLabel
private

Definition at line 75 of file mvtabdlg.hxx.

Referenced by ScMoveTableDlg().

◆ maDefaultName

const OUString ScMoveTableDlg::maDefaultName
private

Definition at line 55 of file mvtabdlg.hxx.

Referenced by CheckNewTabName(), and ResetRenameInput().

◆ mbEverEdited

bool ScMoveTableDlg::mbEverEdited
private

Definition at line 62 of file mvtabdlg.hxx.

Referenced by ResetRenameInput().

◆ mbRememeberedCopy

bool ScMoveTableDlg::mbRememeberedCopy = false
staticprivate

Definition at line 65 of file mvtabdlg.hxx.

Referenced by Init(), and SetOkBtnLabel().

◆ mnCurrentDocPos

sal_uInt16 ScMoveTableDlg::mnCurrentDocPos
private

Definition at line 57 of file mvtabdlg.hxx.

Referenced by CheckNewTabName(), and InitDocListBox().

◆ msCurrentDoc

OUString ScMoveTableDlg::msCurrentDoc
private

Definition at line 48 of file mvtabdlg.hxx.

Referenced by InitDocListBox(), and ScMoveTableDlg().

◆ msNewDoc

OUString ScMoveTableDlg::msNewDoc
private

Definition at line 49 of file mvtabdlg.hxx.

Referenced by InitDocListBox(), and ScMoveTableDlg().

◆ msStrTabNameEmpty

OUString ScMoveTableDlg::msStrTabNameEmpty
private

Definition at line 52 of file mvtabdlg.hxx.

Referenced by CheckNewTabName(), and ScMoveTableDlg().

◆ msStrTabNameInvalid

OUString ScMoveTableDlg::msStrTabNameInvalid
private

Definition at line 53 of file mvtabdlg.hxx.

Referenced by CheckNewTabName(), and ScMoveTableDlg().

◆ msStrTabNameUsed

OUString ScMoveTableDlg::msStrTabNameUsed
private

Definition at line 51 of file mvtabdlg.hxx.

Referenced by CheckNewTabName(), and ScMoveTableDlg().

◆ nDocument

sal_uInt16 ScMoveTableDlg::nDocument
private

Definition at line 58 of file mvtabdlg.hxx.

Referenced by GetSelectedDocument().

◆ nTable

SCTAB ScMoveTableDlg::nTable
private

Definition at line 59 of file mvtabdlg.hxx.

Referenced by GetSelectedTable().


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