summaryrefslogtreecommitdiff
path: root/sc/inc/document.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2015-01-12 21:59:50 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2015-01-14 22:17:23 -0500
commit8a0a1fbfc3aacb7e71c79da75c56698c1ea2378d (patch)
treeb5d36a4bd7a6e06525ed2553658c297a993f057e /sc/inc/document.hxx
parent83e8b259c3c0c0bc593ea0eb60dde0dc8299d970 (diff)
Implement getDocumentSize(). Cell data only for now.
Change-Id: I31e14f12aaee2d98103d1594ba5b511ebf91e333
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r--sc/inc/document.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 61fa81d00cb9..ddf427d32f26 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -1105,6 +1105,16 @@ public:
SCROW GetLastDataRow( SCTAB nTab, SCCOL nCol1, SCCOL nCol2, SCROW nLastRow ) const;
/**
+ * Return the cell position representing the bottom-right corner of the
+ * smallest range that includes all non-empty cells for specified sheet.
+ *
+ * @param nTab sheet index.
+ *
+ * @return address of the last data position.
+ */
+ ScAddress GetLastDataPos( SCTAB nTab ) const;
+
+ /**
* Return the smallest area containing at least all contiguous cells
* having data. This area is a square containing also empty cells. It may
* shrink or extend the area given as input Flags as modifiers:
@@ -1520,6 +1530,7 @@ public:
SC_DLLPUBLIC void SetManualHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bManual );
SC_DLLPUBLIC sal_uInt16 GetColWidth( SCCOL nCol, SCTAB nTab, bool bHiddenAsZero = true ) const;
+ SC_DLLPUBLIC sal_uLong GetColWidth( SCCOL nStartCol, SCCOL nEndCol, SCTAB nTab, bool bHiddenAsZero = true ) const;
SC_DLLPUBLIC sal_uInt16 GetRowHeight( SCROW nRow, SCTAB nTab, bool bHiddenAsZero = true ) const;
SC_DLLPUBLIC sal_uInt16 GetRowHeight( SCROW nRow, SCTAB nTab, SCROW* pStartRow, SCROW* pEndRow, bool bHiddenAsZero = true ) const;
SC_DLLPUBLIC sal_uLong GetRowHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool bHiddenAsZero = true ) const;