summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-10 16:13:53 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-16 09:38:05 +0100
commit0262693b327c947ef69581e61a966546c9ebb8da (patch)
tree9af58b8060ec4bd5c2d005581899eb9c3f16bf40 /include/LibreOfficeKit
parent5fb4e35f3454cb49bf5e5f611224216862f6f611 (diff)
lok::Document: add resetSelection()
Change-Id: Ib24003178bb576ff1450d674d74ef8978b350b92
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.h2
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.hxx8
2 files changed, 10 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h
index 29f07b34df1d..e2ad1930108d 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/include/LibreOfficeKit/LibreOfficeKit.h
@@ -142,6 +142,8 @@ struct _LibreOfficeKitDocumentClass
int nType,
int nX,
int nY);
+ /// @see lok::Document::resetSelection
+ void (*resetSelection)(LibreOfficeKitDocument* pThis);
#endif // LOK_USE_UNSTABLE_API
};
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx
index 2993193fb31e..c19aa504cbac 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -153,6 +153,14 @@ public:
{
mpDoc->pClass->setGraphicSelection(mpDoc, nType, nX, nY);
}
+
+ /**
+ * Gets rid of any text or graphic selection.
+ */
+ inline void resetSelection()
+ {
+ mpDoc->pClass->resetSelection(mpDoc);
+ }
#endif // LOK_USE_UNSTABLE_API
};