20#include <osl/thread.h>
21#include <osl/diagnose.h>
46 if (
pData->IsValidReference( rRange ) )
73 bRefreshListener( false )
101 OSL_FAIL(
"ScServerObject: invalid item");
138 css::uno::Any & rData ,
139 const OUString & rMimeType,
bool )
170 if (SotClipboardFormatId::STRING == eFormatId || SotClipboardFormatId::STRING_TSVC == eFormatId)
173 if( aDdeTextFmt[0] ==
'F' )
175 if( aDdeTextFmt ==
"SYLK" || aDdeTextFmt ==
"FSYLK" )
178 if( aObj.
ExportByteString( aByteData, osl_getThreadTextEncoding(), SotClipboardFormatId::SYLK ) )
180 rData <<= css::uno::Sequence< sal_Int8 >(
181 reinterpret_cast<const sal_Int8*
>(aByteData.getStr()),
182 aByteData.getLength() + 1 );
187 if( aDdeTextFmt ==
"CSV" || aDdeTextFmt ==
"FCSV" )
203 bool bDataChanged =
false;
209 if ( rHint.
GetId() == SfxHintId::Dying )
218 if ( !
aItemStr.isEmpty() && rHint.
GetId() == SfxHintId::ScAreasChanged )
230 const ScHint* pScHint =
dynamic_cast<const ScHint*
>( &rHint );
231 if (pScHint && (pScHint->
GetId() == SfxHintId::ScDataChanged))
235 const ScRange& aNewRange = pChgHint->GetRange();
236 if (
aRange != aNewRange )
244 if (rHint.
GetId() == SfxHintId::Dying)
255 SvLinkSource::NotifyDataChanged();
SfxApplication * SfxGetpApp()
SC_DLLPUBLIC ScRefFlags Parse(const OUString &, const ScDocument &, const Details &rDetails=detailsOOOa1, ExternalInfo *pExtInfo=nullptr, const css::uno::Sequence< css::sheet::ExternalLinkInfo > *pExternalLinks=nullptr, sal_Int32 *pSheetEndPos=nullptr, const OUString *pErrRef=nullptr)
const ScDocument & GetDocument() const
const OUString & GetDdeTextFmt() const
void EndListeningArea(const ScRange &rRange, bool bGroupListening, SvtListener *pListener)
void StartListeningArea(const ScRange &rRange, bool bGroupListening, SvtListener *pListener)
SC_DLLPUBLIC ScRangeName * GetRangeName(SCTAB nTab) const
SC_DLLPUBLIC sfx2::LinkManager * GetLinkManager()
static SC_DLLPUBLIC const CharClass & getCharClass()
bool ExportByteString(OString &, rtl_TextEncoding, SotClipboardFormatId)
void SetExportTextOptions(const ScExportTextOptions &options)
void SetSeparator(sal_Unicode c)
bool ExportData(std::u16string_view rMimeType, css::uno::Any &rValue)
SC_DLLPUBLIC ScRangeData * findByUpperName(const OUString &rName)
ScRefFlags Parse(const OUString &, const ScDocument &, const ScAddress::Details &rDetails=ScAddress::detailsOOOa1, ScAddress::ExternalInfo *pExtInfo=nullptr, const css::uno::Sequence< css::sheet::ExternalLinkInfo > *pExternalLinks=nullptr, const OUString *pErrRef=nullptr)
virtual ~ScServerObjectSvtListenerForwarder() override
ScServerObjectSvtListenerForwarder(ScServerObject *pObjP)
virtual void Notify(const SfxHint &rHint) override
SfxBroadcaster aBroadcaster
virtual bool GetData(css::uno::Any &rData, const OUString &rMimeType, bool bSynchron=false) override
virtual ~ScServerObject() override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
ScServerObject(ScDocShell *pShell, const OUString &rItem)
ScServerObjectSvtListenerForwarder aForwarder
void StartListening(SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
void EndListening(SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
static SotClipboardFormatId GetFormatIdFromMimeType(std::u16string_view rMimeType)
bool InsertServer(SvLinkSource *rObj)
void RemoveServer(SvLinkSource *rObj)
bool HasDataLinks() const
std::unique_ptr< sal_Int32[]> pData
static bool lcl_FillRangeFromName(ScRange &rRange, ScDocShell *pDocSh, const OUString &rName)
These options control how multi-line cells are converted during export in certain lossy formats (such...