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 OString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
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
 

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::Button &, 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_xBtnBehind
 
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 ( weld::Window pParent,
ScViewData rViewData,
SCTAB  nTabCount,
bool  bFromFile 
)

Definition at line 37 of file instbdlg.cxx.

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

ScInsertTableDlg::~ScInsertTableDlg ( )
overridevirtual

Definition at line 64 of file instbdlg.cxx.

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

Member Function Documentation

ScInsertTableDlg::DECL_LINK ( BrowseHdl_Impl  ,
weld::Button ,
void   
)
private
ScInsertTableDlg::DECL_LINK ( ChoiceHdl_Impl  ,
weld::Button ,
void   
)
private
ScInsertTableDlg::DECL_LINK ( SelectHdl_Impl  ,
weld::TreeView ,
void   
)
private
ScInsertTableDlg::DECL_LINK ( CountHdl_Impl  ,
weld::SpinButton ,
void   
)
private
ScInsertTableDlg::DECL_LINK ( DoEnterHdl  ,
weld::Button ,
void   
)
private
ScInsertTableDlg::DECL_LINK ( BrowseTimeoutHdl  ,
Timer ,
void   
)
private
ScInsertTableDlg::DECL_LINK ( DialogClosedHdl  ,
sfx2::FileDialogHelper ,
void   
)
private
void ScInsertTableDlg::DoEnable_Impl ( )
private

Definition at line 274 of file instbdlg.cxx.

References m_xBtnNew, m_xBtnOk, m_xLbTables, and pDocShTables.

void ScInsertTableDlg::FillTables_Impl ( const ScDocument pSrcDoc)
private

Definition at line 161 of file instbdlg.cxx.

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

ScDocShell* ScInsertTableDlg::GetDocShellTables ( )
inline

Definition at line 47 of file instbdlg.hxx.

References pDocShTables.

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

Definition at line 184 of file instbdlg.cxx.

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

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

Definition at line 209 of file instbdlg.cxx.

References aStrCurSelTable, m_xBtnNew, m_xLbTables, and nSelTabIndex.

SCTAB ScInsertTableDlg::GetTableCount ( ) const
inline

Definition at line 49 of file instbdlg.hxx.

References nTableCount.

bool ScInsertTableDlg::GetTablesAsLink ( ) const
inline

Definition at line 43 of file instbdlg.hxx.

References m_xBtnLink.

bool ScInsertTableDlg::GetTablesFromFile ( ) const
inline

Definition at line 42 of file instbdlg.hxx.

References m_xBtnFromFile.

void ScInsertTableDlg::Init_Impl ( bool  bFromFile)
private
bool ScInsertTableDlg::IsTableBefore ( ) const
inline

Definition at line 48 of file instbdlg.hxx.

References m_xBtnBefore.

short ScInsertTableDlg::run ( )
overridevirtual

Reimplemented from weld::DialogController.

Definition at line 119 of file instbdlg.cxx.

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

void ScInsertTableDlg::SetFromTo_Impl ( )
private

Definition at line 146 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().

void ScInsertTableDlg::SetNewTable_Impl ( )
private

Member Data Documentation

Timer ScInsertTableDlg::aBrowseTimer
private

Definition at line 52 of file instbdlg.hxx.

Referenced by Init_Impl(), and run().

SfxObjectShellRef ScInsertTableDlg::aDocShTablesRef
private

Definition at line 57 of file instbdlg.hxx.

OUString ScInsertTableDlg::aStrCurSelTable
private

Definition at line 61 of file instbdlg.hxx.

Referenced by GetFirstTable(), and GetNextTable().

bool ScInsertTableDlg::bMustClose
private

Definition at line 59 of file instbdlg.hxx.

OUString ScInsertTableDlg::m_sSheetDotDotDot
private

Definition at line 63 of file instbdlg.hxx.

Referenced by Init_Impl(), and ScInsertTableDlg().

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

Definition at line 65 of file instbdlg.hxx.

Referenced by Init_Impl(), and IsTableBefore().

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

Definition at line 66 of file instbdlg.hxx.

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

Definition at line 75 of file instbdlg.hxx.

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

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

Definition at line 68 of file instbdlg.hxx.

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

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

Definition at line 76 of file instbdlg.hxx.

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

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

Definition at line 67 of file instbdlg.hxx.

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

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

Definition at line 77 of file instbdlg.hxx.

Referenced by DoEnable_Impl(), and Init_Impl().

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

Definition at line 69 of file instbdlg.hxx.

Referenced by SetFromTo_Impl(), and SetNewTable_Impl().

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

Definition at line 71 of file instbdlg.hxx.

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

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

Definition at line 74 of file instbdlg.hxx.

Referenced by SetFromTo_Impl(), and SetNewTable_Impl().

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

Definition at line 70 of file instbdlg.hxx.

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

sal_uInt16 ScInsertTableDlg::nSelTabIndex
private

Definition at line 60 of file instbdlg.hxx.

Referenced by GetFirstTable(), and GetNextTable().

SCTAB ScInsertTableDlg::nTableCount
private

Definition at line 62 of file instbdlg.hxx.

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

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

Definition at line 56 of file instbdlg.hxx.

Referenced by ~ScInsertTableDlg().

ScDocShell* ScInsertTableDlg::pDocShTables
private

Definition at line 55 of file instbdlg.hxx.

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

ScDocument& ScInsertTableDlg::rDoc
private

Definition at line 54 of file instbdlg.hxx.

Referenced by Init_Impl().

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: