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:
Collaboration diagram for ScAreaLink:

Public Member Functions

 ScAreaLink (SfxObjectShell *pShell, const OUString &rFile, const OUString &rFilter, const OUString &rOpt, const OUString &rArea, const ScRange &rDest, sal_Int32 nRefreshDelaySeconds)
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_Int32 nRefreshDelaySeconds)
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 (std::u16string_view rFile, std::u16string_view rFilter, std::u16string_view rOpt, std::u16string_view 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_DLLPRIVATE_LINK (RefreshHdl, Timer *, 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)
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)
Taskoperator= (const Task &rTask)
void SetPriority (TaskPriority ePriority)
TaskPriority GetPriority () const
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

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 30 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_Int32  nRefreshDelaySeconds 
ScAreaLink::~ScAreaLink ( )

Definition at line 70 of file arealink.cxx.

References ScRefreshTimer::StopRefreshTimer().

Member Function Documentation

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

Definition at line 174 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_Int32  nRefreshDelaySeconds 

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 221 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(), SfxObjectShell::GetDialogParent(), ScDocShell::GetDocument(), SfxObjectShell::GetEmbeddedObjectContainer(), SfxObjectShell::GetFactory(), SfxFilterContainer::GetFilter4FilterName(), SfxObjectFactory::GetFilterContainer(), Application::GetFrameWeld(), ScFormatFilterPlugin::GetHTMLRangeNameList(), ScPatternAttr::GetItemSet(), ScDocumentLoader::GetOptions(), ScDocument::GetPool(), ScRefreshTimer::GetRefreshDelaySeconds(), ScDocument::GetSheetLimits(), ScDocument::GetTableCount(), ScDocShell::GetUndoManager(), comphelper::EmbeddedObjectContainer::getUserAllowsLinkUpdate(), 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)

Definition at line 60 of file arealink.hxx.

Referenced by ScDocFunc::InsertAreaLink().

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

Member Data Documentation

ScRange ScAreaLink::aDestArea

Definition at line 38 of file arealink.hxx.

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

OUString ScAreaLink::aFileName

Definition at line 34 of file arealink.hxx.

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

OUString ScAreaLink::aFilterName

Definition at line 35 of file arealink.hxx.

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

OUString ScAreaLink::aOptions

Definition at line 36 of file arealink.hxx.

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

OUString ScAreaLink::aSourceArea

Definition at line 37 of file arealink.hxx.

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

bool ScAreaLink::bAddUndo

Definition at line 39 of file arealink.hxx.

Referenced by Closed(), and Refresh().

bool ScAreaLink::bDoInsert

Definition at line 41 of file arealink.hxx.

Referenced by Refresh().

bool ScAreaLink::bInCreate

Definition at line 40 of file arealink.hxx.

Referenced by DataChanged().

ScDocShell* ScAreaLink::m_pDocSh

Definition at line 33 of file arealink.hxx.

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

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