25#include <unonames.hxx>
26#include <document.hxx>
28#include <com/sun/star/sheet/XDDELink.hpp>
29#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
30#include <com/sun/star/container/XIndexAccess.hpp>
31#include <com/sun/star/beans/XPropertySet.hpp>
37 : rExport(rTempExport)
91 for (
SCSIZE nRow = 0; nRow < nRows; ++nRow)
93 sal_Int32 nRepeat = 0;
96 for (
SCSIZE nCol = 0; nCol < nCols; ++nCol, ++nRepeat)
99 if (nCol > 0 && aVal != aPrevVal)
114 uno::Reference <beans::XPropertySet> xPropertySet (xSpreadDoc, uno::UNO_QUERY);
115 if (!xPropertySet.is())
118 uno::Reference<container::XIndexAccess> xIndex(xPropertySet->getPropertyValue(
SC_UNO_DDELINKS), uno::UNO_QUERY);
122 sal_Int32
nCount = xIndex->getCount();
127 for (sal_Int32 nDDELink = 0; nDDELink <
nCount; ++nDDELink)
129 uno::Reference<sheet::XDDELink> xDDELink(xIndex->getByIndex(nDDELink), uno::UNO_QUERY);
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 ...
SC_DLLPUBLIC const ScMatrix * GetDdeLinkResultMatrix(size_t nDdePos) const
Returns the result matrix of the specified DDE link.
bool GetDdeLinkMode(size_t nDdePos, sal_uInt8 &rnMode) const
Returns the link mode of the specified DDE link.
Matrix data type that can store values of mixed types.
ScMatrixValue Get(SCSIZE nC, SCSIZE nR) const
@ATTENTION: If bString the ScMatrixValue->pS may still be NULL to indicate an empty string!
static bool IsEmptyType(ScMatValType nType)
Empty, but not empty path or any other type.
static bool IsNonValueType(ScMatValType nType)
String, empty or empty path, but not value nor boolean.
void GetDimensions(SCSIZE &rC, SCSIZE &rR) const
void WriteDDELinks(const css::uno::Reference< css::sheet::XSpreadsheetDocument > &xSpreadDoc)
void WriteTable(const sal_Int32 nPos)
ScXMLExportDDELinks(ScXMLExport &rExport)
void WriteCell(const ScMatrixValue &aVal, sal_Int32 nRepeat)
ScDocument * GetDocument()
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
static void convertDouble(OUStringBuffer &rBuffer, double fNumber, bool bWriteUnits, sal_Int16 nSourceUnit, sal_Int16 nTargetUnit)
const OUString & getString() const
const sal_uInt8 SC_DDE_TEXT
const sal_uInt8 SC_DDE_ENGLISH
XML_NUMBER_COLUMNS_REPEATED
Try NOT to use this struct.
const svl::SharedString & GetString() const
Only valid if ScMatrix methods indicate so!
constexpr OUStringLiteral SC_UNO_DDELINKS
constexpr sal_uInt16 XML_NAMESPACE_TABLE
constexpr sal_uInt16 XML_NAMESPACE_OFFICE