LibreOffice Module sc (master) 1
|
#include <linkarea.hxx>
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 Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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 | |
ScDocShell * | m_pSourceShell |
std::unique_ptr< sfx2::DocumentInserter > | m_xDocInserter |
SfxObjectShellRef | aSourceRef |
std::unique_ptr< SvtURLBox > | m_xCbUrl |
std::unique_ptr< weld::Button > | m_xBtnBrowse |
std::unique_ptr< weld::TreeView > | m_xLbRanges |
std::unique_ptr< weld::CheckButton > | m_xBtnReload |
std::unique_ptr< weld::SpinButton > | m_xNfDelay |
std::unique_ptr< weld::Label > | m_xFtSeconds |
std::unique_ptr< weld::Button > | m_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::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 31 of file linkarea.hxx.
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().
|
overridevirtual |
Definition at line 61 of file linkarea.cxx.
|
private |
|
private |
|
private |
|
private |
|
private |
OUString ScLinkedAreaDlg::GetFilter | ( | ) | const |
Definition at line 303 of file linkarea.cxx.
References SfxMedium::GetFilter(), SfxObjectShell::GetMedium(), and m_pSourceShell.
OUString ScLinkedAreaDlg::GetOptions | ( | ) | const |
Definition at line 313 of file linkarea.cxx.
References SfxObjectShell::GetMedium(), ScDocumentLoader::GetOptions(), and m_pSourceShell.
sal_Int32 ScLinkedAreaDlg::GetRefreshDelaySeconds | ( | ) | const |
Definition at line 336 of file linkarea.cxx.
References m_xBtnReload, and m_xNfDelay.
OUString ScLinkedAreaDlg::GetSource | ( | ) | const |
Definition at line 323 of file linkarea.cxx.
References aBuf, i, and m_xLbRanges.
OUString ScLinkedAreaDlg::GetURL | ( | ) | const |
Definition at line 293 of file linkarea.cxx.
References SfxObjectShell::GetMedium(), SfxMedium::GetName(), and m_pSourceShell.
void ScLinkedAreaDlg::InitFromOldLink | ( | const OUString & | rFile, |
const OUString & | rFilter, | ||
const OUString & | rOptions, | ||
std::u16string_view | rSource, | ||
sal_Int32 | nRefreshDelaySeconds | ||
) |
Definition at line 139 of file linkarea.cxx.
References SfxObjectShell::GetMedium(), SfxMedium::GetName(), o3tl::getToken(), LoadDocument(), m_pSourceShell, m_xBtnReload, m_xCbUrl, m_xLbRanges, m_xNfDelay, UpdateEnable(), and UpdateSourceRanges().
|
private |
Definition at line 106 of file linkarea.cxx.
References aSourceRef, tools::SvRef< typename T >::clear(), SfxObjectShell::DoClose(), ERRCTX_SFX_OPENDOC, ScDocumentLoader::GetDocShell(), SfxObjectShell::GetErrorCode(), ErrorHandler::HandleError(), m_pSourceShell, weld::GenericDialogController::m_xDialog, and ScDocumentLoader::ReleaseDocRef().
Referenced by InitFromOldLink().
|
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().
|
private |
Definition at line 240 of file linkarea.cxx.
References ScRangeName::findByIndex(), ScDocument::GetDBCollection(), ScDocShell::GetDocument(), SfxMedium::GetFilter(), SfxObjectShell::GetMedium(), ScDocument::GetRangeName(), i, ScRangeName::index_size(), m_pSourceShell, m_xLbRanges, SC_TEXT_CSV_FILTER_NAME, and ScResId().
Referenced by InitFromOldLink().
|
private |
Definition at line 36 of file linkarea.hxx.
Referenced by LoadDocument().
|
private |
Definition at line 34 of file linkarea.hxx.
Referenced by GetFilter(), GetOptions(), GetURL(), InitFromOldLink(), LoadDocument(), UpdateEnable(), and UpdateSourceRanges().
|
private |
Definition at line 39 of file linkarea.hxx.
Referenced by ScLinkedAreaDlg().
|
private |
Definition at line 44 of file linkarea.hxx.
Referenced by UpdateEnable().
|
private |
Definition at line 41 of file linkarea.hxx.
Referenced by GetRefreshDelaySeconds(), InitFromOldLink(), ScLinkedAreaDlg(), and UpdateEnable().
|
private |
Definition at line 38 of file linkarea.hxx.
Referenced by InitFromOldLink(), and ScLinkedAreaDlg().
|
private |
Definition at line 35 of file linkarea.hxx.
|
private |
Definition at line 43 of file linkarea.hxx.
Referenced by UpdateEnable().
|
private |
Definition at line 40 of file linkarea.hxx.
Referenced by GetSource(), InitFromOldLink(), ScLinkedAreaDlg(), UpdateEnable(), and UpdateSourceRanges().
|
private |
Definition at line 42 of file linkarea.hxx.
Referenced by GetRefreshDelaySeconds(), InitFromOldLink(), and UpdateEnable().