summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-01-22 19:39:47 +0530
committerpranavk <pranavk@collabora.co.uk>2017-01-27 12:54:27 +0000
commit6e463381b43d888a632e652a873f2b5abe7e5458 (patch)
treeb3a576f5db09eb104ccfb36290f3f22f514bada5 /include
parent73875b39e0ea00a3d80188c229b91c63355cd087 (diff)
lok: Allow to reply to comments using postit id
Change-Id: Ic6aaa3066923d62f197bc2b0e02e8049c9d7cd2c Reviewed-on: https://gerrit.libreoffice.org/33612 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/postattr.hxx26
-rw-r--r--include/svx/svxids.hrc1
2 files changed, 27 insertions, 0 deletions
diff --git a/include/svx/postattr.hxx b/include/svx/postattr.hxx
index 2c1c2466d7c2..dbe378fcdf27 100644
--- a/include/svx/postattr.hxx
+++ b/include/svx/postattr.hxx
@@ -19,6 +19,7 @@
#ifndef INCLUDED_SVX_POSTATTR_HXX
#define INCLUDED_SVX_POSTATTR_HXX
+#include <svl/intitem.hxx>
#include <svl/stritem.hxx>
#include <svx/svxdllapi.h>
@@ -112,6 +113,31 @@ public:
}
};
+// class SvxPostItIdItem -----------------------------------------------
+
+
+/*
+The internal id of a note
+*/
+
+class SVX_DLLPUBLIC SvxPostItIdItem: public SfxUInt32Item
+{
+public:
+ static SfxPoolItem* CreateDefault();
+
+ SvxPostItIdItem( sal_uInt16 nWhich );
+
+ SvxPostItIdItem( sal_uInt32 rId, sal_uInt16 nWhich );
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
+
+ inline SvxPostItIdItem& operator=( const SvxPostItIdItem& rId )
+ {
+ SetValue( rId.GetValue() );
+ return *this;
+ }
+};
+
#endif
diff --git a/include/svx/svxids.hrc b/include/svx/svxids.hrc
index ead4ae0ac6ff..9a7fc71d885c 100644
--- a/include/svx/svxids.hrc
+++ b/include/svx/svxids.hrc
@@ -235,6 +235,7 @@
#define SID_ATTR_POSTIT_AUTHOR ( SID_SVX_START + 44 )
#define SID_ATTR_POSTIT_DATE ( SID_SVX_START + 45 )
#define SID_ATTR_POSTIT_TEXT ( SID_SVX_START + 46 )
+#define SID_ATTR_POSTIT_ID ( SID_SVX_START + 47 )
// free
// CAUTION! Range <48 .. 49> used by EditEngine (!)