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_Int32 nRefreshDelaySeconds)
 
 ScTableLink (SfxObjectShell *pShell, const OUString &rFile, const OUString &rFilter, const OUString &rOpt, sal_Int32 nRefreshDelaySeconds)
 
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_Int32 nNewRefreshDelaySeconds)
 
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_Int32 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_Int32 GetRefreshDelaySeconds () const
 
void StopRefreshTimer ()
 
void SetRefreshDelay (sal_Int32 nSeconds)
 
virtual SC_DLLPUBLIC void Invoke () override
 
- Public Member Functions inherited from AutoTimer
 AutoTimer (const char *pDebugName)
 
- Public Member Functions inherited from Timer
 Timer (const char *pDebugName)
 
 Timer (const Timer &rTimer)
 
virtual ~Timer () override
 
Timeroperator= (const Timer &rTimer)
 
virtual void Invoke () override
 
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 (bool bStartTimer=true) 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
 
const char * GetDebugName () const
 
virtual void Invoke ()=0
 
virtual void Start (bool bStartTimer=true)
 
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
 
virtual void SetDeletionFlags ()
 
virtual sal_uInt64 UpdateMinPeriod (sal_uInt64 nTimeNow) const=0
 
- Static Protected Member Functions inherited from Task
static void StartTimer (sal_uInt64 nMS)
 

Detailed Description

Definition at line 34 of file tablink.hxx.

Constructor & Destructor Documentation

◆ ScTableLink() [1/2]

ScTableLink::ScTableLink ( ScDocShell pDocSh,
const OUString &  rFile,
const OUString &  rFilter,
const OUString &  rOpt,
sal_Int32  nRefreshDelaySeconds 
)

Definition at line 64 of file tablink.cxx.

References ONCALL, pImpl, and SIMPLE_FILE.

◆ ScTableLink() [2/2]

ScTableLink::ScTableLink ( SfxObjectShell pShell,
const OUString &  rFile,
const OUString &  rFilter,
const OUString &  rOpt,
sal_Int32  nRefreshDelaySeconds 
)

◆ ~ScTableLink()

ScTableLink::~ScTableLink ( )
overridevirtual

Member Function Documentation

◆ Closed()

void ScTableLink::Closed ( )
overridevirtual

Reimplemented from sfx2::SvBaseLink.

Definition at line 137 of file tablink.cxx.

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

◆ DataChanged()

sfx2::SvBaseLink::UpdateResult ScTableLink::DataChanged ( const OUString &  rMimeType,
const css::uno::Any &  rValue 
)
overridevirtual

◆ DECL_LINK() [1/2]

ScTableLink::DECL_LINK ( RefreshHdl  ,
Timer ,
void   
)

◆ DECL_LINK() [2/2]

ScTableLink::DECL_LINK ( TableEndEditHdl  ,
::sfx2::SvBaseLink ,
void   
)

◆ Edit()

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.

◆ GetFileName()

const OUString & ScTableLink::GetFileName ( ) const
inline

Definition at line 62 of file tablink.hxx.

References aFileName.

◆ GetFilterName()

const OUString & ScTableLink::GetFilterName ( ) const
inline

Definition at line 63 of file tablink.hxx.

References aFilterName.

◆ GetOptions()

const OUString & ScTableLink::GetOptions ( ) const
inline

Definition at line 64 of file tablink.hxx.

References aOptions.

◆ IsUsed()

bool ScTableLink::IsUsed ( ) const

Definition at line 156 of file tablink.cxx.

References aFileName, aFilterName, aOptions, and pImpl.

◆ Refresh()

bool ScTableLink::Refresh ( const OUString &  rNewFile,
const OUString &  rNewFilter,
const OUString *  pNewOptions,
sal_Int32  nNewRefreshDelaySeconds 
)

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(), ScRefreshTimer::GetRefreshDelaySeconds(), ScDocument::GetTabBgColor(), ScDocument::GetTable(), ScDocument::GetTableCount(), ScGlobal::GetTransliteration(), 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().

◆ SetAddUndo()

void ScTableLink::SetAddUndo ( bool  bSet)
inline

Definition at line 60 of file tablink.hxx.

References bAddUndo.

◆ SetInCreate()

void ScTableLink::SetInCreate ( bool  bSet)
inline

Definition at line 59 of file tablink.hxx.

References bInCreate.

Member Data Documentation

◆ aFileName

OUString ScTableLink::aFileName
private

Definition at line 38 of file tablink.hxx.

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

◆ aFilterName

OUString ScTableLink::aFilterName
private

Definition at line 39 of file tablink.hxx.

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

◆ aOptions

OUString ScTableLink::aOptions
private

Definition at line 40 of file tablink.hxx.

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

◆ bAddUndo

bool ScTableLink::bAddUndo
private

Definition at line 43 of file tablink.hxx.

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

◆ bInCreate

bool ScTableLink::bInCreate
private

Definition at line 41 of file tablink.hxx.

Referenced by DataChanged(), and SetInCreate().

◆ bInEdit

bool ScTableLink::bInEdit
private

Definition at line 42 of file tablink.hxx.

Referenced by Edit(), and Refresh().

◆ pImpl

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

Definition at line 37 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: