summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-09-02 11:35:42 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2022-11-07 16:45:24 +0100
commit83955c0ca0cdd816a2aeac202a2f3b14ea11bdf5 (patch)
treec66b7a8b2cd995c49fcc9f7ea77ca3260a622d09 /include/LibreOfficeKit
parentccb0ad61d3ccd3eed3c422dcd4b87486abcf83fc (diff)
lok: Introudce getDataArea for Calc
It will share information about real size of a data inside spreadsheet so we can easily check where data ends in online side. Change-Id: I376187a33c5c82d409f559d5cc826a4f36d4252e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139472 Reviewed-by: Gökay ŞATIR <gokaysatir@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.h6
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.hxx6
2 files changed, 12 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h
index 3a706ba47091..2f57f744e1d4 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/include/LibreOfficeKit/LibreOfficeKit.h
@@ -483,6 +483,12 @@ struct _LibreOfficeKitDocumentClass
char** pText,
char** pUsedMimeType);
+ /// @see lok::Document::getDataArea().
+ void (*getDataArea) (LibreOfficeKitDocument* pThis,
+ long nPart,
+ long* pCol,
+ long* pRow);
+
#endif // defined LOK_USE_UNSTABLE_API || defined LIBO_INTERNAL_ONLY
};
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx
index 4aafaa830626..87ff25dcb445 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -208,6 +208,12 @@ public:
mpDoc->pClass->getDocumentSize(mpDoc, pWidth, pHeight);
}
+ /// Get the data area (in Calc last row and column).
+ void getDataArea(long nPart, long* pCol, long* pRow)
+ {
+ mpDoc->pClass->getDataArea(mpDoc, nPart, pCol, pRow);
+ }
+
/**
* Initialize document for rendering.
*