LibreOffice Module sc (master) 1
|
#include <ddelink.hxx>
Public Member Functions | |
ScDdeLink (ScDocument &rD, OUString aA, OUString aT, OUString aI, sal_uInt8 nM) | |
ScDdeLink (ScDocument &rD, SvStream &rStream, ScMultipleReadHeader &rHdr) | |
ScDdeLink (ScDocument &rD, const ScDdeLink &rOther) | |
virtual | ~ScDdeLink () override |
void | Store (SvStream &rStream, ScMultipleWriteHeader &rHdr) const |
virtual ::sfx2::SvBaseLink::UpdateResult | DataChanged (const OUString &rMimeType, const css::uno::Any &rValue) override |
virtual void | ListenersGone () override |
const ScMatrix * | GetResult () const |
void | SetResult (const ScMatrixRef &pRes) |
const OUString & | GetAppl () const |
const OUString & | GetTopic () const |
const OUString & | GetItem () const |
sal_uInt8 | GetMode () const |
void | TryUpdate () |
bool | NeedsUpdate () const |
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 SvtBroadcaster | |
SvtBroadcaster () | |
SvtBroadcaster (const SvtBroadcaster &rBC) | |
virtual | ~SvtBroadcaster () |
void | Broadcast (const SfxHint &rHint) |
ListenersType & | GetAllListeners () |
const ListenersType & | GetAllListeners () const |
bool | HasListeners () const |
void | PrepareForDestruction () |
Static Public Member Functions | |
static bool | IsInUpdate () |
Private Attributes | |
ScDocument & | rDoc |
OUString | aAppl |
OUString | aTopic |
OUString | aItem |
sal_uInt8 | nMode |
bool | bNeedUpdate |
ScMatrixRef | pResult |
Static Private Attributes | |
static bool | bIsInUpdate = false |
Additional Inherited Members | |
Public Types inherited from sfx2::SvBaseLink | |
enum | UpdateResult |
Public Types inherited from SvtBroadcaster | |
typedef std::vector< SvtListener * > | ListenersType |
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 () |
virtual void | ListenersGone () |
Definition at line 33 of file ddelink.hxx.
ScDdeLink::ScDdeLink | ( | ScDocument & | rD, |
OUString | aA, | ||
OUString | aT, | ||
OUString | aI, | ||
sal_uInt8 | nM | ||
) |
Definition at line 44 of file ddelink.cxx.
ScDdeLink::ScDdeLink | ( | ScDocument & | rD, |
SvStream & | rStream, | ||
ScMultipleReadHeader & | rHdr | ||
) |
Definition at line 78 of file ddelink.cxx.
References aAppl, aItem, ALWAYS, aTopic, ScMultipleReadHeader::BytesLeft(), ScMultipleReadHeader::EndEntry(), SvStream::GetStreamCharSet(), nMode, pResult, SvStream::ReadCharAsBool(), SvStream::ReadUChar(), SvStream::ReadUniOrByteString(), SC_DDE_DEFAULT, ScMultipleReadHeader::StartEntry(), and STRING.
ScDdeLink::ScDdeLink | ( | ScDocument & | rD, |
const ScDdeLink & | rOther | ||
) |
Definition at line 64 of file ddelink.cxx.
|
overridevirtual |
Definition at line 57 of file ddelink.cxx.
|
overridevirtual |
Reimplemented from sfx2::SvBaseLink.
Definition at line 125 of file ddelink.cxx.
References aAppl, aItem, aTopic, SvtBroadcaster::Broadcast(), ScDocument::BroadcastUno(), convertLineEnd(), ScDocument::GetDefPattern(), SotExchange::GetFormatIdFromMimeType(), ScDocument::GetFormatTable(), ScPatternAttr::GetNumberFormat(), ScDocument::GetSharedStringPool(), SvNumberFormatter::GetStandardIndex(), ScByteSequenceToString::GetString(), o3tl::getToken(), comphelper::string::getTokenCount(), SvtBroadcaster::HasListeners(), svl::SharedStringPool::intern(), SvNumberFormatter::IsNumberFormat(), LANGUAGE_ENGLISH_US, LINEEND_LF, nIndex, nMode, pResult, rDoc, SC_DDE_DEFAULT, SC_DDE_ENGLISH, SC_DDE_TEXT, ScLinkRefreshedHint::SetDdeLink(), ScDocument::StartTrackTimer(), sfx2::SvBaseLink::SUCCESS, and ScDocument::TrackFormulas().
|
inline |
Definition at line 72 of file ddelink.hxx.
References aAppl.
Referenced by ScDocument::CopyDdeLinks(), sc::DocumentLinkManager::updateDdeLink(), and sc::DocumentLinkManager::updateDdeOrOleOrWebServiceLinks().
|
inline |
Definition at line 74 of file ddelink.hxx.
References aItem.
Referenced by ScDocument::CopyDdeLinks(), sc::DocumentLinkManager::updateDdeLink(), and sc::DocumentLinkManager::updateDdeOrOleOrWebServiceLinks().
|
inline |
Definition at line 75 of file ddelink.hxx.
References nMode.
const ScMatrix * ScDdeLink::GetResult | ( | ) | const |
Definition at line 241 of file ddelink.cxx.
References pResult.
Referenced by ScDocument::GetDdeLinkResultMatrix().
|
inline |
Definition at line 73 of file ddelink.hxx.
References aTopic.
Referenced by ScDocument::CopyDdeLinks(), sc::DocumentLinkManager::updateDdeLink(), and sc::DocumentLinkManager::updateDdeOrOleOrWebServiceLinks().
|
inlinestatic |
|
overridevirtual |
Reimplemented from SvtBroadcaster.
Definition at line 221 of file ddelink.cxx.
References bIsInUpdate, ScDocument::GetLinkManager(), sfx2::LinkManager::GetLinks(), ScDocument::GetViewBindings(), SfxBindings::Invalidate(), rDoc, and sfx2::LinkManager::Remove().
|
inline |
Definition at line 79 of file ddelink.hxx.
References bNeedUpdate.
Referenced by sc::DocumentLinkManager::idleCheckLinks().
void ScDdeLink::SetResult | ( | const ScMatrixRef & | pRes | ) |
Definition at line 246 of file ddelink.cxx.
References pResult.
Referenced by ScDocument::CreateDdeLink().
void ScDdeLink::Store | ( | SvStream & | rStream, |
ScMultipleWriteHeader & | rHdr | ||
) | const |
Definition at line 104 of file ddelink.cxx.
References aAppl, aItem, aTopic, ScMultipleWriteHeader::EndEntry(), SvStream::GetStreamCharSet(), SvStream::GetVersion(), nMode, pResult, SOFFICE_FILEFORMAT_40, ScMultipleWriteHeader::StartEntry(), SvStream::WriteBool(), SvStream::WriteUChar(), and SvStream::WriteUniOrByteString().
void ScDdeLink::TryUpdate | ( | ) |
Definition at line 251 of file ddelink.cxx.
References bIsInUpdate, bNeedUpdate, ScDocument::DecInDdeLinkUpdate(), ScDocument::IncInDdeLinkUpdate(), rDoc, and sfx2::SvBaseLink::Update().
Referenced by sc::DocumentLinkManager::idleCheckLinks(), and sc::DocumentLinkManager::updateDdeLink().
|
private |
Definition at line 40 of file ddelink.hxx.
Referenced by DataChanged(), GetAppl(), ScDdeLink(), and Store().
|
private |
Definition at line 42 of file ddelink.hxx.
Referenced by DataChanged(), GetItem(), ScDdeLink(), and Store().
|
private |
Definition at line 41 of file ddelink.hxx.
Referenced by DataChanged(), GetTopic(), ScDdeLink(), and Store().
|
staticprivate |
Definition at line 36 of file ddelink.hxx.
Referenced by IsInUpdate(), ListenersGone(), and TryUpdate().
|
private |
Definition at line 45 of file ddelink.hxx.
Referenced by NeedsUpdate(), and TryUpdate().
|
private |
Definition at line 43 of file ddelink.hxx.
Referenced by DataChanged(), GetMode(), ScDdeLink(), and Store().
|
private |
Definition at line 47 of file ddelink.hxx.
Referenced by DataChanged(), GetResult(), ScDdeLink(), SetResult(), and Store().
|
private |
Definition at line 38 of file ddelink.hxx.
Referenced by DataChanged(), ListenersGone(), and TryUpdate().