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

#include <tablink.hxx>

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

Public Member Functions

 ScTableLink (ScDocShell *pDocSh, const OUString &rFile, const OUString &rFilter, const OUString &rOpt, sal_uLong nRefresh)
 
 ScTableLink (SfxObjectShell *pShell, const OUString &rFile, const OUString &rFilter, const OUString &rOpt, sal_uLong nRefresh)
 
virtual ~ScTableLink () override
 
virtual void Closed () override
 
virtual ::sfx2::SvBaseLink::UpdateResult DataChanged (const OUString &rMimeType, const css::uno::Any &rValue) override
 
virtual void Edit (weld::Window *, const Link< SvBaseLink &, void > &rEndEditHdl) override
 
bool Refresh (const OUString &rNewFile, const OUString &rNewFilter, const OUString *pNewOptions, sal_uLong nNewRefresh)
 
void SetInCreate (bool bSet)
 
void SetAddUndo (bool bSet)
 
const OUString & GetFileName () const
 
const OUString & GetFilterName () const
 
const OUString & GetOptions () const
 
bool IsUsed () const
 
 DECL_LINK (RefreshHdl, Timer *, void)
 
 DECL_LINK (TableEndEditHdl,::sfx2::SvBaseLink &, void)
 
- Public Member Functions inherited from ScRefreshTimer
 ScRefreshTimer ()
 
 ScRefreshTimer (sal_uLong nSeconds)
 
 ScRefreshTimer (const ScRefreshTimer &r)
 
virtual ~ScRefreshTimer () override
 
ScRefreshTimeroperator= (const ScRefreshTimer &r)
 
bool operator== (const ScRefreshTimer &r) const
 
bool operator!= (const ScRefreshTimer &r) const
 
void SetRefreshControl (std::unique_ptr< ScRefreshTimerControl > const *pp)
 
void SetRefreshHandler (const Link< Timer *, void > &rLink)
 
sal_uLong GetRefreshDelay () const
 
void StopRefreshTimer ()
 
void SetRefreshDelay (sal_uLong nSeconds)
 
virtual SC_DLLPUBLIC void Invoke () override
 
- Public Member Functions inherited from AutoTimer
 AutoTimer (const char *pDebugName=nullptr)
 
- Public Member Functions inherited from Timer
 Timer (const char *pDebugName=nullptr)
 
 Timer (const Timer &rTimer)
 
virtual ~Timer () override
 
Timeroperator= (const Timer &rTimer)
 
void Invoke (Timer *arg)
 
void SetInvokeHandler (const Link< Timer *, void > &rLink)
 
void ClearInvokeHandler ()
 
void SetTimeout (sal_uInt64 nTimeoutMs)
 
sal_uInt64 GetTimeout () const
 
virtual void Start () override
 
- Public Member Functions inherited from Task
 Task (const char *pDebugName)
 
 Task (const Task &rTask)
 
virtual ~Task () COVERITY_NOEXCEPT_FALSE
 
Taskoperator= (const Task &rTask)
 
void SetPriority (TaskPriority ePriority)
 
TaskPriority GetPriority () const
 
void SetDebugName (const char *pDebugName)
 
const char * GetDebugName () const
 
void Stop ()
 
bool IsActive () const
 
void SetStatic ()
 
bool IsStatic () const
 

Private Attributes

std::unique_ptr< TableLink_ImplpImpl
 
OUString aFileName
 
OUString aFilterName
 
OUString aOptions
 
bool bInCreate:1
 
bool bInEdit:1
 
bool bAddUndo:1
 

Additional Inherited Members

- Protected Member Functions inherited from Timer
virtual void SetDeletionFlags () override
 
virtual sal_uInt64 UpdateMinPeriod (sal_uInt64 nTimeNow) const override
 
 Timer (bool bAuto, const char *pDebugName)
 
- Protected Member Functions inherited from Task
const ImplSchedulerDataGetSchedulerData () const
 
- Static Protected Member Functions inherited from Task
static void StartTimer (sal_uInt64 nMS)
 

Detailed Description

Definition at line 35 of file tablink.hxx.

Constructor & Destructor Documentation

ScTableLink::ScTableLink ( ScDocShell pDocSh,
const OUString &  rFile,
const OUString &  rFilter,
const OUString &  rOpt,
sal_uLong  nRefresh 
)

Definition at line 64 of file tablink.cxx.

References ONCALL, pImpl, and SIMPLE_FILE.

ScTableLink::ScTableLink ( SfxObjectShell pShell,
const OUString &  rFile,
const OUString &  rFilter,
const OUString &  rOpt,
sal_uLong  nRefresh 
)
ScTableLink::~ScTableLink ( )
overridevirtual

Member Function Documentation

void ScTableLink::Closed ( )
overridevirtual

Reimplemented from sfx2::SvBaseLink.

Definition at line 137 of file tablink.cxx.

References aFileName, bAddUndo, ScDocument::IsUndoEnabled(), and pImpl.

sfx2::SvBaseLink::UpdateResult ScTableLink::DataChanged ( const OUString &  rMimeType,
const css::uno::Any &  rValue 
)
overridevirtual
ScTableLink::DECL_LINK ( RefreshHdl  ,
Timer ,
void   
)
ScTableLink::DECL_LINK ( TableEndEditHdl  ,
::sfx2::SvBaseLink ,
void   
)
void ScTableLink::Edit ( weld::Window pParent,
const Link< SvBaseLink &, void > &  rEndEditHdl 
)
overridevirtual

Definition at line 110 of file tablink.cxx.

References bInEdit, LINK, and pImpl.

const OUString& ScTableLink::GetFileName ( ) const
inline

Definition at line 63 of file tablink.hxx.

References aFileName.

Referenced by ScSheetLinkObj::GetLink_Impl(), ScTableSheetObj::link(), and ScSheetLinkObj::refresh().

const OUString& ScTableLink::GetFilterName ( ) const
inline
const OUString& ScTableLink::GetOptions ( ) const
inline

Definition at line 65 of file tablink.hxx.

References aOptions.

Referenced by ScSheetLinkObj::getFilterOptions().

bool ScTableLink::IsUsed ( ) const

Definition at line 156 of file tablink.cxx.

References aFileName, aFilterName, aOptions, and pImpl.

bool ScTableLink::Refresh ( const OUString &  rNewFile,
const OUString &  rNewFilter,
const OUString *  pNewOptions,
sal_uLong  nNewRefresh 
)

output error ?

also notify Uno objects if file name was changed!

Definition at line 161 of file tablink.cxx.

References ScTokenArray::AddOpCode(), ScRange::aEnd, aFileName, aFilterName, ALL, aName, aOptions, ScRange::aStart, bAddUndo, bInEdit, ScDocument::BroadcastUno(), CELLTYPE_FORMULA, ScAddress::Col(), ScDocument::CopyToDocument(), ScDocument::DeleteAreaTab(), SfxObjectShell::DoClose(), SfxObjectShell::DoLoad(), ERRCODE_NONE, Extras, ScCellIterator::first(), ScGlobal::GetAbsDocName(), ScGlobal::GetDocTabName(), ScDocShell::GetDocument(), SfxMedium::GetError(), ScCellIterator::getFormulaCell(), ScDocument::GetLinkDoc(), ScDocument::GetLinkMode(), ScDocument::GetLinkTab(), ScDocument::GetName(), ScDetectiveRefIter::GetNextRef(), ScDocumentLoader::GetOptions(), SfxShell::GetPool(), ScGlobal::GetpTransliteration(), ScRefreshTimer::GetRefreshDelay(), ScDocument::GetTabBgColor(), ScDocument::GetTable(), ScDocument::GetTableCount(), ScCellIterator::getType(), Grid, ScDocShell::HasAutomaticTableName(), ScDocument::IsUndoEnabled(), ScRangeList::Join(), Left, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, nCount, ScCellIterator::next(), NONE, nPos, ocClose, ocNotAvail, ocOpen, ocStop, pImpl, ScDocument::RenameTab(), ScAddress::Row(), SCDOCMODE_UNDO, ScResId(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetFormula(), ScDocument::SetInLinkUpdate(), ScDocument::SetLink(), ScLinkRefreshedHint::SetSheetLink(), ScDocument::SetString(), SfxGetpApp(), ScRangeList::size(), ScAddress::Tab(), Top, ScDocument::TransferTab(), SfxMedium::UseInteractionHandler(), and VALUE.

Referenced by DataChanged(), ScSheetLinkObj::refresh(), ScSheetLinkObj::setFilter(), and ScSheetLinkObj::setFilterOptions().

void ScTableLink::SetAddUndo ( bool  bSet)
inline

Definition at line 61 of file tablink.hxx.

References bAddUndo.

void ScTableLink::SetInCreate ( bool  bSet)
inline

Definition at line 60 of file tablink.hxx.

References bInCreate.

Referenced by ScViewFunc::ImportTables(), ScDocument::LinkExternalTab(), and ScDocShell::UpdateLinks().

Member Data Documentation

OUString ScTableLink::aFileName
private

Definition at line 39 of file tablink.hxx.

Referenced by Closed(), GetFileName(), IsUsed(), Refresh(), and ~ScTableLink().

OUString ScTableLink::aFilterName
private

Definition at line 40 of file tablink.hxx.

Referenced by GetFilterName(), IsUsed(), and Refresh().

OUString ScTableLink::aOptions
private

Definition at line 41 of file tablink.hxx.

Referenced by GetOptions(), IsUsed(), and Refresh().

bool ScTableLink::bAddUndo
private

Definition at line 44 of file tablink.hxx.

Referenced by Closed(), Refresh(), and SetAddUndo().

bool ScTableLink::bInCreate
private

Definition at line 42 of file tablink.hxx.

Referenced by DataChanged(), and SetInCreate().

bool ScTableLink::bInEdit
private

Definition at line 43 of file tablink.hxx.

Referenced by Edit(), and Refresh().

std::unique_ptr<TableLink_Impl> ScTableLink::pImpl
private

Definition at line 38 of file tablink.hxx.

Referenced by Closed(), DataChanged(), Edit(), IsUsed(), Refresh(), ScTableLink(), and ~ScTableLink().


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