14#include <libxml/xmlwriter.h>
16#include <document.hxx>
25 rStrm <<
"Col: " << rAddr.
Col() <<
", Row: " << rAddr.
Row() <<
", Tab: " << rAddr.
Tab();
33 std::cout <<
" Start: " << rData.
maStart <<
", Offset: " << aStartOffsetPixel << std::endl;
37 std::cout <<
" End: : " << rData.
maEnd <<
", Offset: " << aEndOffsetPixel << std::endl;
46 for (
SCCOL nCol = 0; nCol <= 20; ++nCol)
50 std::cout <<
"Column: " << nCol <<
", Width: " <<
nPixel <<
"px" << std::endl;
58 for (
SCCOL nCol = 0; nCol <= 20; ++nCol)
62 std::cout <<
"Column: " << nCol <<
", Width: " <<
nPixel <<
"hmm" << std::endl;
86 ScRange aRange(nCol, nRow, nTab);
87 aList.
Join(aRange,
false);
91 xmlTextWriterSetIndent(writer,1);
92 (void)xmlTextWriterSetIndentString(writer, BAD_CAST(
" "));
94 (void)xmlTextWriterStartDocument( writer,
nullptr,
nullptr,
nullptr );
96 (void)xmlTextWriterStartElement(writer, BAD_CAST(
"selection"));
98 for (
size_t i = 0,
n = aList.
size();
i <
n; ++
i)
107 (void)xmlTextWriterStartElement(writer, BAD_CAST(
"cell"));
108 (void)xmlTextWriterWriteAttribute(writer, BAD_CAST(
"column"), BAD_CAST(OString::number(nCol).getStr()));
109 (void)xmlTextWriterWriteAttribute(writer, BAD_CAST(
"row"), BAD_CAST(OString::number(nRow).getStr()));
110 (void)xmlTextWriterWriteAttribute(writer, BAD_CAST(
"tab"), BAD_CAST(OString::number(nTab).getStr()));
114 (void)xmlTextWriterEndElement(writer);
119 (void)xmlTextWriterEndElement(writer);
121 (void)xmlTextWriterEndDocument( writer );
122 xmlFreeTextWriter (writer);
133 for (sal_uInt16 nPage = 0; nPage < nPageCount; ++nPage)
137 for (
size_t nObj = 0; nObj < nObjCount; ++nObj)
140 std::cout <<
"Graphic Object" << std::endl;
143 dumpScDrawObjData(*
this, *pObjData, pDrawLayer->
GetScaleUnit());
147 std::cout <<
"Snap Rectangle (in pixel): " << aRect << std::endl;
constexpr tools::Long getX() const
SC_DLLPUBLIC void DumpColumnStorage(SCTAB nTab, SCCOL nCol) const
SC_DLLPUBLIC sal_uInt16 GetColWidth(SCCOL nCol, SCTAB nTab, bool bHiddenAsZero=true) const
SC_DLLPUBLIC ScDrawLayer * GetDrawLayer()
SC_DLLPUBLIC ScDPObject * GetDPAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const
SC_DLLPUBLIC const ScPatternAttr * GetPattern(SCCOL nCol, SCROW nRow, SCTAB nTab) const
static ScDrawObjData * GetObjData(SdrObject *pObj, bool bCreate=false)
void dumpColumnInformationPixel()
void dumpGraphicInformation()
void dumpCellProperties()
void dumpColumnInformationHmm()
void dumpColumnCellStorage()
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
ScRangeList GetMarkedRangesForTab(SCTAB nTab) const
Get marked ranges with sheet-tab set to nTab.
const ScRange & GetMarkArea() const
bool IsMultiMarked() const
SfxItemSet & GetItemSet()
void Join(const ScRange &, bool bIsInList=false)
ScMarkData & GetMarkData()
ScDocument & GetDocument() const
ScAddress GetCurPos() const
MapUnit GetScaleUnit() const
const SdrPage * GetPage(sal_uInt16 nPgNum) const
sal_uInt16 GetPageCount() const
SdrObject * GetObj(size_t nNum) const
size_t GetObjCount() const
virtual const tools::Rectangle & GetSnapRect() const
void dumpAsXml(xmlTextWriterPtr pWriter) const
Point LogicToPixel(const Point &rLogicPt) const
struct _xmlTextWriter * xmlTextWriterPtr
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &stream, const ParamIfsResult &rRes)