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

#include <instbdlg.hxx>

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

Public Member Functions

 ScInsertTableDlg (weld::Window *pParent, ScViewData &rViewData, SCTAB nTabCount, bool bFromFile)
 
virtual ~ScInsertTableDlg () override
 
virtual short run () override
 
bool GetTablesFromFile () const
 
bool GetTablesAsLink () const
 
const OUString * GetFirstTable (sal_uInt16 *pN)
 
const OUString * GetNextTable (sal_uInt16 *pN)
 
ScDocShellGetDocShellTables ()
 
bool IsTableBefore () const
 
SCTAB GetTableCount () const
 
- 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 Init_Impl (bool bFromFile)
 
void SetNewTable_Impl ()
 
void SetFromTo_Impl ()
 
void FillTables_Impl (const ScDocument *pSrcDoc)
 
void DoEnable_Impl ()
 
 DECL_LINK (BrowseHdl_Impl, weld::Button &, void)
 
 DECL_LINK (ChoiceHdl_Impl, weld::Toggleable &, void)
 
 DECL_LINK (SelectHdl_Impl, weld::TreeView &, void)
 
 DECL_LINK (CountHdl_Impl, weld::SpinButton &, void)
 
 DECL_LINK (DoEnterHdl, weld::Button &, void)
 
 DECL_LINK (BrowseTimeoutHdl, Timer *, void)
 
 DECL_LINK (DialogClosedHdl, sfx2::FileDialogHelper *, void)
 

Private Attributes

Timer aBrowseTimer
 
ScViewDatarViewData
 
ScDocumentrDoc
 
ScDocShellpDocShTables
 
std::unique_ptr< sfx2::DocumentInserterpDocInserter
 
SfxObjectShellRef aDocShTablesRef
 
bool bMustClose
 
sal_uInt16 nSelTabIndex
 
OUString aStrCurSelTable
 
SCTAB nTableCount
 
OUString m_sSheetDotDotDot
 
std::unique_ptr< weld::RadioButtonm_xBtnBefore
 
std::unique_ptr< weld::RadioButtonm_xBtnNew
 
std::unique_ptr< weld::RadioButtonm_xBtnFromFile
 
std::unique_ptr< weld::Labelm_xFtCount
 
std::unique_ptr< weld::SpinButtonm_xNfCount
 
std::unique_ptr< weld::Labelm_xFtName
 
std::unique_ptr< weld::Entrym_xEdName
 
std::unique_ptr< weld::TreeViewm_xLbTables
 
std::unique_ptr< weld::Labelm_xFtPath
 
std::unique_ptr< weld::Buttonm_xBtnBrowse
 
std::unique_ptr< weld::CheckButtonm_xBtnLink
 
std::unique_ptr< weld::Buttonm_xBtnOk
 

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 34 of file instbdlg.hxx.

Constructor & Destructor Documentation

◆ ScInsertTableDlg()

ScInsertTableDlg::ScInsertTableDlg ( weld::Window pParent,
ScViewData rViewData,
SCTAB  nTabCount,
bool  bFromFile 
)

Definition at line 36 of file instbdlg.cxx.

References Init_Impl(), m_sSheetDotDotDot, m_xEdName, and m_xLbTables.

◆ ~ScInsertTableDlg()

ScInsertTableDlg::~ScInsertTableDlg ( )
overridevirtual

Definition at line 63 of file instbdlg.cxx.

References SfxObjectShell::DoClose(), pDocInserter, and pDocShTables.

Member Function Documentation

◆ DECL_LINK() [1/7]

ScInsertTableDlg::DECL_LINK ( BrowseHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/7]

ScInsertTableDlg::DECL_LINK ( BrowseTimeoutHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [3/7]

ScInsertTableDlg::DECL_LINK ( ChoiceHdl_Impl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [4/7]

ScInsertTableDlg::DECL_LINK ( CountHdl_Impl  ,
weld::SpinButton ,
void   
)
private

◆ DECL_LINK() [5/7]

ScInsertTableDlg::DECL_LINK ( DialogClosedHdl  ,
sfx2::FileDialogHelper ,
void   
)
private

◆ DECL_LINK() [6/7]

ScInsertTableDlg::DECL_LINK ( DoEnterHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [7/7]

ScInsertTableDlg::DECL_LINK ( SelectHdl_Impl  ,
weld::TreeView ,
void   
)
private

◆ DoEnable_Impl()

void ScInsertTableDlg::DoEnable_Impl ( )
private

Definition at line 276 of file instbdlg.cxx.

References m_xBtnNew, m_xBtnOk, m_xLbTables, and pDocShTables.

◆ FillTables_Impl()

void ScInsertTableDlg::FillTables_Impl ( const ScDocument pSrcDoc)
private

Definition at line 160 of file instbdlg.cxx.

References aName, ScDocument::GetName(), ScDocument::GetTableCount(), i, m_xLbTables, and nCount.

◆ GetDocShellTables()

ScDocShell * ScInsertTableDlg::GetDocShellTables ( )
inline

Definition at line 47 of file instbdlg.hxx.

References pDocShTables.

◆ GetFirstTable()

const OUString * ScInsertTableDlg::GetFirstTable ( sal_uInt16 *  pN)

Definition at line 183 of file instbdlg.cxx.

References aStrCurSelTable, m_xBtnNew, m_xEdName, m_xLbTables, and nSelTabIndex.

◆ GetNextTable()

const OUString * ScInsertTableDlg::GetNextTable ( sal_uInt16 *  pN)

Definition at line 208 of file instbdlg.cxx.

References aStrCurSelTable, m_xBtnNew, m_xLbTables, and nSelTabIndex.

◆ GetTableCount()

SCTAB ScInsertTableDlg::GetTableCount ( ) const
inline

Definition at line 49 of file instbdlg.hxx.

References nTableCount.

◆ GetTablesAsLink()

bool ScInsertTableDlg::GetTablesAsLink ( ) const
inline

Definition at line 43 of file instbdlg.hxx.

References m_xBtnLink.

◆ GetTablesFromFile()

bool ScInsertTableDlg::GetTablesFromFile ( ) const
inline

Definition at line 42 of file instbdlg.hxx.

References m_xBtnFromFile.

◆ Init_Impl()

void ScInsertTableDlg::Init_Impl ( bool  bFromFile)
private

◆ IsTableBefore()

bool ScInsertTableDlg::IsTableBefore ( ) const
inline

Definition at line 48 of file instbdlg.hxx.

References m_xBtnBefore.

◆ run()

short ScInsertTableDlg::run ( )
overridevirtual

Reimplemented from weld::DialogController.

Definition at line 118 of file instbdlg.cxx.

References aBrowseTimer, m_xBtnFromFile, and Timer::Start().

◆ SetFromTo_Impl()

void ScInsertTableDlg::SetFromTo_Impl ( )
private

Definition at line 145 of file instbdlg.cxx.

References m_xBtnBrowse, m_xBtnFromFile, m_xBtnLink, m_xEdName, m_xFtCount, m_xFtName, m_xFtPath, m_xLbTables, and m_xNfCount.

Referenced by Init_Impl().

◆ SetNewTable_Impl()

void ScInsertTableDlg::SetNewTable_Impl ( )
private

Member Data Documentation

◆ aBrowseTimer

Timer ScInsertTableDlg::aBrowseTimer
private

Definition at line 52 of file instbdlg.hxx.

Referenced by Init_Impl(), and run().

◆ aDocShTablesRef

SfxObjectShellRef ScInsertTableDlg::aDocShTablesRef
private

Definition at line 57 of file instbdlg.hxx.

◆ aStrCurSelTable

OUString ScInsertTableDlg::aStrCurSelTable
private

Definition at line 61 of file instbdlg.hxx.

Referenced by GetFirstTable(), and GetNextTable().

◆ bMustClose

bool ScInsertTableDlg::bMustClose
private

Definition at line 59 of file instbdlg.hxx.

◆ m_sSheetDotDotDot

OUString ScInsertTableDlg::m_sSheetDotDotDot
private

Definition at line 63 of file instbdlg.hxx.

Referenced by Init_Impl(), and ScInsertTableDlg().

◆ m_xBtnBefore

std::unique_ptr<weld::RadioButton> ScInsertTableDlg::m_xBtnBefore
private

Definition at line 65 of file instbdlg.hxx.

Referenced by Init_Impl(), and IsTableBefore().

◆ m_xBtnBrowse

std::unique_ptr<weld::Button> ScInsertTableDlg::m_xBtnBrowse
private

Definition at line 74 of file instbdlg.hxx.

Referenced by Init_Impl(), SetFromTo_Impl(), and SetNewTable_Impl().

◆ m_xBtnFromFile

std::unique_ptr<weld::RadioButton> ScInsertTableDlg::m_xBtnFromFile
private

Definition at line 67 of file instbdlg.hxx.

Referenced by GetTablesFromFile(), Init_Impl(), run(), and SetFromTo_Impl().

◆ m_xBtnLink

std::unique_ptr<weld::CheckButton> ScInsertTableDlg::m_xBtnLink
private

Definition at line 75 of file instbdlg.hxx.

Referenced by GetTablesAsLink(), SetFromTo_Impl(), and SetNewTable_Impl().

◆ m_xBtnNew

std::unique_ptr<weld::RadioButton> ScInsertTableDlg::m_xBtnNew
private

Definition at line 66 of file instbdlg.hxx.

Referenced by DoEnable_Impl(), GetFirstTable(), GetNextTable(), Init_Impl(), and SetNewTable_Impl().

◆ m_xBtnOk

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

Definition at line 76 of file instbdlg.hxx.

Referenced by DoEnable_Impl(), and Init_Impl().

◆ m_xEdName

std::unique_ptr<weld::Entry> ScInsertTableDlg::m_xEdName
private

◆ m_xFtCount

std::unique_ptr<weld::Label> ScInsertTableDlg::m_xFtCount
private

Definition at line 68 of file instbdlg.hxx.

Referenced by SetFromTo_Impl(), and SetNewTable_Impl().

◆ m_xFtName

std::unique_ptr<weld::Label> ScInsertTableDlg::m_xFtName
private

Definition at line 70 of file instbdlg.hxx.

Referenced by Init_Impl(), SetFromTo_Impl(), and SetNewTable_Impl().

◆ m_xFtPath

std::unique_ptr<weld::Label> ScInsertTableDlg::m_xFtPath
private

Definition at line 73 of file instbdlg.hxx.

Referenced by SetFromTo_Impl(), and SetNewTable_Impl().

◆ m_xLbTables

std::unique_ptr<weld::TreeView> ScInsertTableDlg::m_xLbTables
private

◆ m_xNfCount

std::unique_ptr<weld::SpinButton> ScInsertTableDlg::m_xNfCount
private

Definition at line 69 of file instbdlg.hxx.

Referenced by Init_Impl(), SetFromTo_Impl(), and SetNewTable_Impl().

◆ nSelTabIndex

sal_uInt16 ScInsertTableDlg::nSelTabIndex
private

Definition at line 60 of file instbdlg.hxx.

Referenced by GetFirstTable(), and GetNextTable().

◆ nTableCount

SCTAB ScInsertTableDlg::nTableCount
private

Definition at line 62 of file instbdlg.hxx.

Referenced by GetTableCount(), Init_Impl(), and SetNewTable_Impl().

◆ pDocInserter

std::unique_ptr<sfx2::DocumentInserter> ScInsertTableDlg::pDocInserter
private

Definition at line 56 of file instbdlg.hxx.

Referenced by ~ScInsertTableDlg().

◆ pDocShTables

ScDocShell* ScInsertTableDlg::pDocShTables
private

Definition at line 55 of file instbdlg.hxx.

Referenced by DoEnable_Impl(), GetDocShellTables(), and ~ScInsertTableDlg().

◆ rDoc

ScDocument& ScInsertTableDlg::rDoc
private

Definition at line 54 of file instbdlg.hxx.

Referenced by Init_Impl().

◆ rViewData

ScViewData& ScInsertTableDlg::rViewData
private

Definition at line 53 of file instbdlg.hxx.

Referenced by Init_Impl().


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