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

#include <linkarea.hxx>

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

Public Member Functions

 ScLinkedAreaDlg (weld::Widget *pParent)
 
virtual ~ScLinkedAreaDlg () override
 
void InitFromOldLink (const OUString &rFile, const OUString &rFilter, const OUString &rOptions, std::u16string_view rSource, sal_Int32 nRefreshDelaySeconds)
 
OUString GetURL () const
 
OUString GetFilter () const
 
OUString GetOptions () const
 
OUString GetSource () const
 
sal_Int32 GetRefreshDelaySeconds () 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

 DECL_LINK (FileHdl, weld::ComboBox &, bool)
 
 DECL_LINK (BrowseHdl, weld::Button &, void)
 
 DECL_LINK (RangeHdl, weld::TreeView &, void)
 
 DECL_LINK (ReloadHdl, weld::Toggleable &, void)
 
 DECL_LINK (DialogClosedHdl, sfx2::FileDialogHelper *, void)
 
void UpdateSourceRanges ()
 
void UpdateEnable ()
 
void LoadDocument (const OUString &rFile, const OUString &rFilter, const OUString &rOptions)
 

Private Attributes

ScDocShellm_pSourceShell
 
std::unique_ptr< sfx2::DocumentInserterm_xDocInserter
 
SfxObjectShellRef aSourceRef
 
std::unique_ptr< SvtURLBoxm_xCbUrl
 
std::unique_ptr< weld::Buttonm_xBtnBrowse
 
std::unique_ptr< weld::TreeViewm_xLbRanges
 
std::unique_ptr< weld::CheckButtonm_xBtnReload
 
std::unique_ptr< weld::SpinButtonm_xNfDelay
 
std::unique_ptr< weld::Labelm_xFtSeconds
 
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 31 of file linkarea.hxx.

Constructor & Destructor Documentation

◆ ScLinkedAreaDlg()

ScLinkedAreaDlg::ScLinkedAreaDlg ( weld::Widget pParent)

Definition at line 39 of file linkarea.cxx.

References LINK, m_xBtnBrowse, m_xBtnReload, m_xCbUrl, m_xLbRanges, and UpdateEnable().

◆ ~ScLinkedAreaDlg()

ScLinkedAreaDlg::~ScLinkedAreaDlg ( )
overridevirtual

Definition at line 61 of file linkarea.cxx.

Member Function Documentation

◆ DECL_LINK() [1/5]

ScLinkedAreaDlg::DECL_LINK ( BrowseHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/5]

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

◆ DECL_LINK() [3/5]

ScLinkedAreaDlg::DECL_LINK ( FileHdl  ,
weld::ComboBox ,
bool   
)
private

◆ DECL_LINK() [4/5]

ScLinkedAreaDlg::DECL_LINK ( RangeHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [5/5]

ScLinkedAreaDlg::DECL_LINK ( ReloadHdl  ,
weld::Toggleable ,
void   
)
private

◆ GetFilter()

OUString ScLinkedAreaDlg::GetFilter ( ) const

Definition at line 303 of file linkarea.cxx.

References SfxMedium::GetFilter(), SfxObjectShell::GetMedium(), and m_pSourceShell.

◆ GetOptions()

OUString ScLinkedAreaDlg::GetOptions ( ) const

◆ GetRefreshDelaySeconds()

sal_Int32 ScLinkedAreaDlg::GetRefreshDelaySeconds ( ) const

Definition at line 336 of file linkarea.cxx.

References m_xBtnReload, and m_xNfDelay.

◆ GetSource()

OUString ScLinkedAreaDlg::GetSource ( ) const

Definition at line 323 of file linkarea.cxx.

References aBuf, i, and m_xLbRanges.

◆ GetURL()

OUString ScLinkedAreaDlg::GetURL ( ) const

Definition at line 293 of file linkarea.cxx.

References SfxObjectShell::GetMedium(), SfxMedium::GetName(), and m_pSourceShell.

◆ InitFromOldLink()

void ScLinkedAreaDlg::InitFromOldLink ( const OUString &  rFile,
const OUString &  rFilter,
const OUString &  rOptions,
std::u16string_view  rSource,
sal_Int32  nRefreshDelaySeconds 
)

◆ LoadDocument()

void ScLinkedAreaDlg::LoadDocument ( const OUString &  rFile,
const OUString &  rFilter,
const OUString &  rOptions 
)
private

◆ UpdateEnable()

void ScLinkedAreaDlg::UpdateEnable ( )
private

Definition at line 283 of file linkarea.cxx.

References m_pSourceShell, m_xBtnOk, m_xBtnReload, m_xFtSeconds, m_xLbRanges, and m_xNfDelay.

Referenced by InitFromOldLink(), and ScLinkedAreaDlg().

◆ UpdateSourceRanges()

void ScLinkedAreaDlg::UpdateSourceRanges ( )
private

Member Data Documentation

◆ aSourceRef

SfxObjectShellRef ScLinkedAreaDlg::aSourceRef
private

Definition at line 36 of file linkarea.hxx.

Referenced by LoadDocument().

◆ m_pSourceShell

ScDocShell* ScLinkedAreaDlg::m_pSourceShell
private

◆ m_xBtnBrowse

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

Definition at line 39 of file linkarea.hxx.

Referenced by ScLinkedAreaDlg().

◆ m_xBtnOk

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

Definition at line 44 of file linkarea.hxx.

Referenced by UpdateEnable().

◆ m_xBtnReload

std::unique_ptr<weld::CheckButton> ScLinkedAreaDlg::m_xBtnReload
private

◆ m_xCbUrl

std::unique_ptr<SvtURLBox> ScLinkedAreaDlg::m_xCbUrl
private

Definition at line 38 of file linkarea.hxx.

Referenced by InitFromOldLink(), and ScLinkedAreaDlg().

◆ m_xDocInserter

std::unique_ptr<sfx2::DocumentInserter> ScLinkedAreaDlg::m_xDocInserter
private

Definition at line 35 of file linkarea.hxx.

◆ m_xFtSeconds

std::unique_ptr<weld::Label> ScLinkedAreaDlg::m_xFtSeconds
private

Definition at line 43 of file linkarea.hxx.

Referenced by UpdateEnable().

◆ m_xLbRanges

std::unique_ptr<weld::TreeView> ScLinkedAreaDlg::m_xLbRanges
private

◆ m_xNfDelay

std::unique_ptr<weld::SpinButton> ScLinkedAreaDlg::m_xNfDelay
private

Definition at line 42 of file linkarea.hxx.

Referenced by GetRefreshDelaySeconds(), InitFromOldLink(), and UpdateEnable().


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