22#include <osl/thread.h>
32#include <document.hxx>
48 aAppl(
std::move( aA )),
49 aTopic(
std::move( aT )),
50 aItem(
std::move( aI )),
67 aAppl ( rOther.aAppl ),
68 aTopic ( rOther.aTopic ),
69 aItem ( rOther.aItem ),
70 nMode ( rOther.nMode ),
113 bool bHasValue = (
pResult != nullptr );
126 const OUString& rMimeType,
const css::uno::Any & rValue )
138 sal_Int32 nLen = aLinkStr.getLength();
139 if (nLen && aLinkStr[nLen-1] ==
'\n')
140 aLinkStr = aLinkStr.copy(0, nLen-1);
144 if (!aLinkStr.isEmpty())
152 if (!nRows || !nCols)
178 for (
SCSIZE nR=0; nR<nRows; nR++)
180 std::u16string_view aLine =
o3tl::getToken(aLinkStr,
static_cast<sal_Int32
>(nR),
'\n' );
181 for (
SCSIZE nC=0; nC<nCols; nC++)
183 OUString aEntry(
o3tl::getToken(aLine,
static_cast<sal_Int32
>(nC),
'\t' ) );
184 sal_uInt32
nIndex = nStdFormat;
185 double fVal = double();
187 pResult->PutDouble( fVal, nC, nR );
188 else if (aEntry.isEmpty())
size_t SCSIZE
size_t typedef to be able to find places where code was changed from USHORT to size_t and is used to ...
static bool GetString(OUString &rString, const css::uno::Any &rAny)
virtual void ListenersGone() override
virtual ::sfx2::SvBaseLink::UpdateResult DataChanged(const OUString &rMimeType, const css::uno::Any &rValue) override
ScDdeLink(ScDocument &rD, OUString aA, OUString aT, OUString aI, sal_uInt8 nM)
void Store(SvStream &rStream, ScMultipleWriteHeader &rHdr) const
const ScMatrix * GetResult() const
void SetResult(const ScMatrixRef &pRes)
virtual ~ScDdeLink() override
void TrackFormulas(SfxHintId nHintId=SfxHintId::ScDataChanged)
SC_DLLPUBLIC ScPatternAttr * GetDefPattern() const
void IncInDdeLinkUpdate()
SfxBindings * GetViewBindings()
SC_DLLPUBLIC svl::SharedStringPool & GetSharedStringPool()
SC_DLLPUBLIC SvNumberFormatter * GetFormatTable() const
SC_DLLPUBLIC sfx2::LinkManager * GetLinkManager()
void DecInDdeLinkUpdate()
void BroadcastUno(const SfxHint &rHint)
void SetDdeLink(const OUString &rA, const OUString &rT, const OUString &rI)
Matrix data type that can store values of mixed types.
sal_uInt32 GetNumberFormat(SvNumberFormatter *) const
void Invalidate(sal_uInt16 nId)
static SotClipboardFormatId GetFormatIdFromMimeType(std::u16string_view rMimeType)
SvStream & ReadCharAsBool(bool &rBool)
SvStream & WriteUniOrByteString(std::u16string_view rStr, rtl_TextEncoding eDestCharSet)
OUString ReadUniOrByteString(rtl_TextEncoding eSrcCharSet)
SvStream & WriteBool(bool b)
SvStream & WriteUChar(unsigned char nChar)
sal_Int32 GetVersion() const
rtl_TextEncoding GetStreamCharSet() const
SvStream & ReadUChar(unsigned char &rChar)
bool HasListeners() const
void Broadcast(const SfxHint &rHint)
void Remove(SvBaseLink const *pLink)
const SvBaseLinks & GetLinks() const
SharedString intern(const OUString &rStr)
const sal_uInt8 SC_DDE_TEXT
const sal_uInt8 SC_DDE_DEFAULT
const sal_uInt8 SC_DDE_ENGLISH
#define LANGUAGE_ENGLISH_US
TOOLS_DLLPUBLIC OString convertLineEnd(const OString &rIn, LineEnd eLineEnd)
sal_Int32 getTokenCount(std::string_view rIn, char cTok)
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)
::boost::intrusive_ptr< ScMatrix > ScMatrixRef