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;
88 ScRange aRange(nCol, nRow, nTab);
89 aList.
Join(aRange,
false);
93 xmlTextWriterSetIndent(writer,1);
94 xmlTextWriterSetIndentString(writer, BAD_CAST(
" "));
96 xmlTextWriterStartDocument( writer,
nullptr,
nullptr,
nullptr );
98 xmlTextWriterStartElement(writer, BAD_CAST(
"selection"));
100 for (
size_t i = 0,
n = aList.
size();
i <
n; ++
i)
109 xmlTextWriterStartElement(writer, BAD_CAST(
"cell"));
110 xmlTextWriterWriteAttribute(writer, BAD_CAST(
"column"), BAD_CAST(OString::number(nCol).getStr()));
111 xmlTextWriterWriteAttribute(writer, BAD_CAST(
"row"), BAD_CAST(OString::number(nRow).getStr()));
112 xmlTextWriterWriteAttribute(writer, BAD_CAST(
"tab"), BAD_CAST(OString::number(nTab).getStr()));
116 xmlTextWriterEndElement(writer);
121 xmlTextWriterEndElement(writer);
123 xmlTextWriterEndDocument( writer );
124 xmlFreeTextWriter (writer);
135 for (sal_uInt16 nPage = 0; nPage < nPageCount; ++nPage)
139 for (
size_t nObj = 0; nObj < nObjCount; ++nObj)
142 std::cout <<
"Graphic Object" << std::endl;
145 dumpScDrawObjData(*
this, *pObjData, pDrawLayer->
GetScaleUnit());
149 std::cout <<
"Snap Rectangle (in pixel): " << aRect << std::endl;
ScMarkData & GetMarkData()
SC_DLLPUBLIC ScDPObject * GetDPAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
void dumpAsXml(xmlTextWriterPtr pWriter) const
struct _xmlTextWriter * xmlTextWriterPtr
Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
void dumpColumnInformationHmm()
static ScDrawObjData * GetObjData(SdrObject *pObj, bool bCreate=false)
SdrObject * GetObj(size_t nNum) const
size_t GetObjCount() const
const SfxItemSet & GetItemSet() const
ScDocument & GetDocument() const
void dumpGraphicInformation()
void dumpColumnCellStorage()
virtual const tools::Rectangle & GetSnapRect() const
void GetMarkArea(ScRange &rRange) const
MapUnit GetScaleUnit() const
bool IsMultiMarked() const
SC_DLLPUBLIC const ScPatternAttr * GetPattern(SCCOL nCol, SCROW nRow, SCTAB nTab) const
SC_DLLPUBLIC void DumpColumnStorage(SCTAB nTab, SCCOL nCol) const
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &stream, const ParamIfsResult &rRes)
SC_DLLPUBLIC ScDrawLayer * GetDrawLayer()
void dumpColumnInformationPixel()
const SdrPage * GetPage(sal_uInt16 nPgNum) const
ScAddress GetCurPos() const
Point LogicToPixel(const Point &rLogicPt) const
void Join(const ScRange &, bool bIsInList=false)
void dumpCellProperties()
ScRangeList GetMarkedRangesForTab(SCTAB nTab) const
Get marked ranges with sheet-tab set to nTab.
SC_DLLPUBLIC sal_uInt16 GetColWidth(SCCOL nCol, SCTAB nTab, bool bHiddenAsZero=true) const
sal_uInt16 GetPageCount() const