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

#include <arealink.hxx>

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

Public Member Functions

 ScAreaLink (SfxObjectShell *pShell, const OUString &rFile, const OUString &rFilter, const OUString &rOpt, const OUString &rArea, const ScRange &rDest, sal_uLong nRefresh)
 
virtual ~ScAreaLink () 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 &rNewArea, sal_uLong nNewRefresh)
 
void SetInCreate (bool bSet)
 
void SetDoInsert (bool bSet)
 
void SetDestArea (const ScRange &rNew)
 
void SetSource (const OUString &rDoc, const OUString &rFlt, const OUString &rOpt, const OUString &rArea)
 
bool IsEqual (const OUString &rFile, const OUString &rFilter, const OUString &rOpt, const OUString &rSource, const ScRange &rDest) const
 
const OUString & GetFile () const
 
const OUString & GetFilter () const
 
const OUString & GetOptions () const
 
const OUString & GetSource () const
 
const ScRangeGetDestArea () const
 
 DECL_LINK (RefreshHdl, Timer *, 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
 

Static Private Member Functions

static bool FindExtRange (ScRange &rRange, const ScDocument &rSrcDoc, const OUString &rAreaName)
 

Private Attributes

ScDocShellm_pDocSh
 
OUString aFileName
 
OUString aFilterName
 
OUString aOptions
 
OUString aSourceArea
 
ScRange aDestArea
 
bool bAddUndo
 
bool bInCreate
 
bool bDoInsert
 

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 31 of file arealink.hxx.

Constructor & Destructor Documentation

ScAreaLink::ScAreaLink ( SfxObjectShell pShell,
const OUString &  rFile,
const OUString &  rFilter,
const OUString &  rOpt,
const OUString &  rArea,
const ScRange rDest,
sal_uLong  nRefresh 
)
ScAreaLink::~ScAreaLink ( )
overridevirtual

Definition at line 71 of file arealink.cxx.

References ScRefreshTimer::StopRefreshTimer().

Member Function Documentation

void ScAreaLink::Closed ( )
overridevirtual
sfx2::SvBaseLink::UpdateResult ScAreaLink::DataChanged ( const OUString &  rMimeType,
const css::uno::Any &  rValue 
)
overridevirtual
ScAreaLink::DECL_LINK ( RefreshHdl  ,
Timer ,
void   
)
void ScAreaLink::Edit ( weld::Window pParent,
const Link< SvBaseLink &, void > &  rEndEditHdl 
)
overridevirtual
bool ScAreaLink::FindExtRange ( ScRange rRange,
const ScDocument rSrcDoc,
const OUString &  rAreaName 
)
staticprivate
const ScRange& ScAreaLink::GetDestArea ( ) const
inline
const OUString& ScAreaLink::GetFile ( ) const
inline
const OUString& ScAreaLink::GetFilter ( ) const
inline
const OUString& ScAreaLink::GetOptions ( ) const
inline
const OUString& ScAreaLink::GetSource ( ) const
inline
bool ScAreaLink::IsEqual ( const OUString &  rFile,
const OUString &  rFilter,
const OUString &  rOpt,
const OUString &  rSource,
const ScRange rDest 
) const

Definition at line 175 of file arealink.cxx.

References aDestArea, aFileName, aFilterName, aOptions, aSourceArea, and ScRange::aStart.

bool ScAreaLink::Refresh ( const OUString &  rNewFile,
const OUString &  rNewFilter,
const OUString &  rNewArea,
sal_uLong  nNewRefresh 
)

check CanFitBlock only if bDoInsert is set?

ResetAttrib at document !!!

cell protection ???

Link dialog must set default parent

also notify Uno objects if file name was changed!

Definition at line 222 of file arealink.cxx.

References SfxUndoManager::AddUndoAction(), aDestArea, ScDocShell::AdjustRowHeight(), ScRange::aEnd, aFileName, aFilterName, ALL, aOptions, ScDocument::ApplyPatternAreaTab(), aSourceArea, ScRange::aStart, bAddUndo, bDoInsert, ScDocument::BroadcastUno(), ScDocument::CanFitBlock(), ScAddress::Col(), ScDocument::CopyFromClip(), ScDocument::CopyToClip(), ScDocument::CopyToDocument(), ScDocumentLoader::CreateMedium(), Application::CreateMessageDialog(), ScDocument::DeleteAreaTab(), SfxObjectShell::DoClose(), SfxObjectShell::DoLoad(), FindExtRange(), ScDocument::FitBlock(), FORMULA, ScFormatFilter::Get(), ScGlobal::GetAbsDocName(), ScDocument::GetCellArea(), Application::GetDefDialogParent(), ScDocShell::GetDocument(), SfxObjectShell::GetFactory(), SfxFilterContainer::GetFilter4FilterName(), SfxObjectFactory::GetFilterContainer(), vcl::Window::GetFrameWeld(), ScFormatFilterPlugin::GetHTMLRangeNameList(), SfxSetItem::GetItemSet(), ScDocumentLoader::GetOptions(), ScDocument::GetPool(), ScRefreshTimer::GetRefreshDelay(), ScDocument::GetSheetLimits(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), ScDocShell::GetWebQueryFilterName(), Grid, ScDocument::HasAttrib(), ScDocument::IsUndoEnabled(), m_pDocSh, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, Merged, NOTE, Overlapped, ScDocShell::PostPaint(), ScRangeList::push_back(), SfxItemSet::Put(), ScAddress::Row(), SC_TEXT_CSV_FILTER_NAME, SCDOCMODE_CLIP, SCDOCMODE_UNDO, ScResId(), ScMarkData::SelectOneTable(), ScLinkRefreshedHint::SetAreaLink(), ScAddress::SetCol(), ScDocShellModificator::SetDocumentModified(), ScDocument::SetInLinkUpdate(), ScRefreshTimer::SetRefreshDelay(), ScAddress::SetRow(), ScDocument::SetString(), ScRangeList::size(), ScAddress::Tab(), and ScDocument::ValidColRow().

Referenced by DataChanged(), Edit(), and ScAreaLinkObj::refresh().

void ScAreaLink::SetDestArea ( const ScRange rNew)
void ScAreaLink::SetDoInsert ( bool  bSet)
inline

Definition at line 61 of file arealink.hxx.

Referenced by ScDocFunc::InsertAreaLink().

void ScAreaLink::SetInCreate ( bool  bSet)
inline
void ScAreaLink::SetSource ( const OUString &  rDoc,
const OUString &  rFlt,
const OUString &  rOpt,
const OUString &  rArea 
)

Member Data Documentation

ScRange ScAreaLink::aDestArea
private

Definition at line 39 of file arealink.hxx.

Referenced by Closed(), IsEqual(), Refresh(), and SetDestArea().

OUString ScAreaLink::aFileName
private

Definition at line 35 of file arealink.hxx.

Referenced by Closed(), Edit(), IsEqual(), Refresh(), and SetSource().

OUString ScAreaLink::aFilterName
private

Definition at line 36 of file arealink.hxx.

Referenced by Closed(), Edit(), IsEqual(), Refresh(), and SetSource().

OUString ScAreaLink::aOptions
private

Definition at line 37 of file arealink.hxx.

Referenced by Closed(), Edit(), IsEqual(), Refresh(), and SetSource().

OUString ScAreaLink::aSourceArea
private

Definition at line 38 of file arealink.hxx.

Referenced by Closed(), DataChanged(), Edit(), IsEqual(), Refresh(), and SetSource().

bool ScAreaLink::bAddUndo
private

Definition at line 40 of file arealink.hxx.

Referenced by Closed(), and Refresh().

bool ScAreaLink::bDoInsert
private

Definition at line 42 of file arealink.hxx.

Referenced by Refresh().

bool ScAreaLink::bInCreate
private

Definition at line 41 of file arealink.hxx.

Referenced by DataChanged().

ScDocShell* ScAreaLink::m_pDocSh
private

Definition at line 34 of file arealink.hxx.

Referenced by Closed(), DataChanged(), Refresh(), and ScAreaLink().


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