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, OUString aFile, OUString aFilter, OUString aOpt, OUString aArea, 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)
 
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
 

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

Constructor & Destructor Documentation

◆ ScAreaLink()

ScAreaLink::ScAreaLink ( SfxObjectShell pShell,
OUString  aFile,
OUString  aFilter,
OUString  aOpt,
OUString  aArea,
const ScRange rDest,
sal_Int32  nRefreshDelaySeconds 
)

◆ ~ScAreaLink()

ScAreaLink::~ScAreaLink ( )
overridevirtual

Definition at line 71 of file arealink.cxx.

References ScRefreshTimer::StopRefreshTimer().

Member Function Documentation

◆ Closed()

void ScAreaLink::Closed ( )
overridevirtual

◆ DataChanged()

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

◆ DECL_DLLPRIVATE_LINK()

ScAreaLink::DECL_DLLPRIVATE_LINK ( RefreshHdl  ,
Timer ,
void   
)

◆ Edit()

void ScAreaLink::Edit ( weld::Window pParent,
const Link< SvBaseLink &, void > &  rEndEditHdl 
)
overridevirtual

◆ FindExtRange()

bool ScAreaLink::FindExtRange ( ScRange rRange,
const ScDocument rSrcDoc,
const OUString &  rAreaName 
)
staticprivate

◆ GetDestArea()

const ScRange & ScAreaLink::GetDestArea ( ) const
inline

◆ GetFile()

const OUString & ScAreaLink::GetFile ( ) const
inline

Definition at line 68 of file arealink.hxx.

Referenced by ScDocFunc::InsertAreaLink(), and ScAreaLinkSaver::IsEqualSource().

◆ GetFilter()

const OUString & ScAreaLink::GetFilter ( ) const
inline

Definition at line 69 of file arealink.hxx.

Referenced by ScDocFunc::InsertAreaLink(), and ScAreaLinkSaver::IsEqualSource().

◆ GetOptions()

const OUString & ScAreaLink::GetOptions ( ) const
inline

Definition at line 70 of file arealink.hxx.

Referenced by ScDocFunc::InsertAreaLink(), and ScAreaLinkSaver::IsEqualSource().

◆ GetSource()

const OUString & ScAreaLink::GetSource ( ) const
inline

Definition at line 71 of file arealink.hxx.

Referenced by ScDocFunc::InsertAreaLink(), and ScAreaLinkSaver::IsEqualSource().

◆ IsEqual()

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 175 of file arealink.cxx.

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

◆ Refresh()

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 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(), 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(), ScMarkData::SetMarkArea(), ScRefreshTimer::SetRefreshDelay(), ScAddress::SetRow(), ScDocument::SetString(), ScRangeList::size(), ScAddress::Tab(), and ScDocument::ValidColRow().

Referenced by DataChanged(), and Edit().

◆ SetDestArea()

void ScAreaLink::SetDestArea ( const ScRange rNew)

Definition at line 156 of file arealink.cxx.

References aDestArea.

Referenced by ScAreaLinkSaver::WriteToLink().

◆ SetDoInsert()

void ScAreaLink::SetDoInsert ( bool  bSet)
inline

Definition at line 60 of file arealink.hxx.

◆ SetInCreate()

void ScAreaLink::SetInCreate ( bool  bSet)
inline

Definition at line 59 of file arealink.hxx.

◆ SetSource()

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

Member Data Documentation

◆ aDestArea

ScRange ScAreaLink::aDestArea
private

Definition at line 38 of file arealink.hxx.

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

◆ aFileName

OUString ScAreaLink::aFileName
private

Definition at line 34 of file arealink.hxx.

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

◆ aFilterName

OUString ScAreaLink::aFilterName
private

Definition at line 35 of file arealink.hxx.

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

◆ aOptions

OUString ScAreaLink::aOptions
private

Definition at line 36 of file arealink.hxx.

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

◆ aSourceArea

OUString ScAreaLink::aSourceArea
private

Definition at line 37 of file arealink.hxx.

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

◆ bAddUndo

bool ScAreaLink::bAddUndo
private

Definition at line 39 of file arealink.hxx.

Referenced by Closed(), and Refresh().

◆ bDoInsert

bool ScAreaLink::bDoInsert
private

Definition at line 41 of file arealink.hxx.

Referenced by Refresh().

◆ bInCreate

bool ScAreaLink::bInCreate
private

Definition at line 40 of file arealink.hxx.

Referenced by DataChanged().

◆ m_pDocSh

ScDocShell* ScAreaLink::m_pDocSh
private

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: