LibreOffice Module sc (master) 1
|
#include <tablink.hxx>
Public Member Functions | |
ScTableLink (ScDocShell *pDocSh, OUString aFile, OUString aFilter, OUString aOpt, sal_Int32 nRefreshDelaySeconds) | |
ScTableLink (SfxObjectShell *pShell, OUString aFile, OUString aFilter, OUString aOpt, 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 sfx2::SvBaseLink | |
virtual void | Closed () |
SvBaseLinkObjectType | GetObjType () const |
void | SetObj (SvLinkSource *pObj) |
SvLinkSource * | GetObj () const |
void | SetLinkSourceName (const OUString &rName) |
const OUString & | GetLinkSourceName () const |
virtual UpdateResult | DataChanged (const OUString &rMimeType, const css::uno::Any &rValue) |
void | SetUpdateMode (SfxLinkUpdateMode) |
SfxLinkUpdateMode | GetUpdateMode () const |
SotClipboardFormatId | GetContentType () const |
void | SetContentType (SotClipboardFormatId nType) |
LinkManager * | GetLinkManager () |
const LinkManager * | GetLinkManager () const |
void | SetLinkManager (LinkManager *_pMgr) |
bool | Update () |
void | Disconnect () |
virtual void | Edit (weld::Window *, const Link< SvBaseLink &, void > &rEndEditHdl) |
bool | IsVisible () const |
void | SetVisible (bool bFlag) |
bool | IsSynchron () const |
void | SetSynchron (bool bFlag) |
void | setStreamToLoadFrom (const css::uno::Reference< css::io::XInputStream > &xInputStream, bool bIsReadOnly) |
void | clearStreamToLoadFrom () |
bool | WasLastEditOK () const |
FileDialogHelper & | GetInsertFileDialog (const OUString &rFactory) |
Public Member Functions inherited from ScRefreshTimer | |
ScRefreshTimer () | |
ScRefreshTimer (sal_Int32 nSeconds) | |
ScRefreshTimer (const ScRefreshTimer &r) | |
virtual | ~ScRefreshTimer () override |
ScRefreshTimer & | operator= (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 |
Timer & | operator= (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 |
Task & | operator= (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_Impl > | pImpl |
OUString | aFileName |
OUString | aFilterName |
OUString | aOptions |
bool | bInCreate:1 |
bool | bInEdit:1 |
bool | bAddUndo:1 |
Additional Inherited Members | |
Public Types inherited from sfx2::SvBaseLink | |
enum | UpdateResult |
Public Attributes inherited from sfx2::SvBaseLink | |
SUCCESS | |
ERROR_GENERAL | |
Protected Member Functions inherited from sfx2::SvBaseLink | |
void | SetObjType (SvBaseLinkObjectType) |
void | SetName (const OUString &rLn) |
SvBaseLink () | |
SvBaseLink (SfxLinkUpdateMode nLinkType, SotClipboardFormatId nContentType) | |
virtual | ~SvBaseLink () override |
void | GetRealObject_ (bool bConnect=true) |
SvLinkSource * | GetRealObject () |
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 ImplSchedulerData * | GetSchedulerData () 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) |
Definition at line 34 of file tablink.hxx.
ScTableLink::ScTableLink | ( | ScDocShell * | pDocSh, |
OUString | aFile, | ||
OUString | aFilter, | ||
OUString | aOpt, | ||
sal_Int32 | nRefreshDelaySeconds | ||
) |
Definition at line 65 of file tablink.cxx.
References ONCALL, pImpl, and SIMPLE_FILE.
ScTableLink::ScTableLink | ( | SfxObjectShell * | pShell, |
OUString | aFile, | ||
OUString | aFilter, | ||
OUString | aOpt, | ||
sal_Int32 | nRefreshDelaySeconds | ||
) |
Definition at line 81 of file tablink.cxx.
References LINK, ONCALL, pImpl, ScRefreshTimer::SetRefreshControl(), ScRefreshTimer::SetRefreshHandler(), and SIMPLE_FILE.
|
overridevirtual |
Definition at line 99 of file tablink.cxx.
References aFileName, ScDocument::GetLinkDoc(), ScDocument::GetTableCount(), ScDocument::IsLinked(), nCount, NONE, pImpl, ScDocument::SetLink(), and ScRefreshTimer::StopRefreshTimer().
|
overridevirtual |
Reimplemented from sfx2::SvBaseLink.
Definition at line 138 of file tablink.cxx.
References aFileName, bAddUndo, ScDocument::IsUndoEnabled(), and pImpl.
|
overridevirtual |
Reimplemented from sfx2::SvBaseLink.
Definition at line 119 of file tablink.cxx.
References bInCreate, sfx2::LinkManager::GetDisplayNames(), ScRefreshTimer::GetRefreshDelaySeconds(), pImpl, Refresh(), ScDocumentLoader::RemoveAppPrefix(), and sfx2::SvBaseLink::SUCCESS.
ScTableLink::DECL_LINK | ( | RefreshHdl | , |
Timer * | , | ||
void | |||
) |
ScTableLink::DECL_LINK | ( | TableEndEditHdl | , |
::sfx2::SvBaseLink & | , | ||
void | |||
) |
|
overridevirtual |
Definition at line 111 of file tablink.cxx.
|
inline |
Definition at line 62 of file tablink.hxx.
References aFileName.
|
inline |
Definition at line 63 of file tablink.hxx.
References aFilterName.
|
inline |
Definition at line 64 of file tablink.hxx.
References aOptions.
bool ScTableLink::IsUsed | ( | ) | const |
Definition at line 157 of file tablink.cxx.
References aFileName, aFilterName, aOptions, and pImpl.
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 162 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().
|
inline |
Definition at line 60 of file tablink.hxx.
References bAddUndo.
|
inline |
Definition at line 59 of file tablink.hxx.
References bInCreate.
|
private |
Definition at line 38 of file tablink.hxx.
Referenced by Closed(), GetFileName(), IsUsed(), Refresh(), and ~ScTableLink().
|
private |
Definition at line 39 of file tablink.hxx.
Referenced by GetFilterName(), IsUsed(), and Refresh().
|
private |
Definition at line 40 of file tablink.hxx.
Referenced by GetOptions(), IsUsed(), and Refresh().
|
private |
Definition at line 43 of file tablink.hxx.
Referenced by Closed(), Refresh(), and SetAddUndo().
|
private |
Definition at line 41 of file tablink.hxx.
Referenced by DataChanged(), and SetInCreate().
|
private |
Definition at line 42 of file tablink.hxx.
|
private |
Definition at line 37 of file tablink.hxx.
Referenced by Closed(), DataChanged(), Edit(), IsUsed(), Refresh(), ScTableLink(), and ~ScTableLink().