diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-01-22 19:39:47 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-02-18 00:49:24 +0100 |
commit | c4f0e3704fdb1b8b346b41f1ea0e70ecfd152550 (patch) | |
tree | ddfb32aa433ee97c47caa0a35175321d733d2970 /svx | |
parent | 4713d0fea3fc6c219c02f5ad0cdc04828eaab291 (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>
(cherry picked from commit 6e463381b43d888a632e652a873f2b5abe7e5458)
Diffstat (limited to 'svx')
-rw-r--r-- | svx/sdi/svxitems.sdi | 1 | ||||
-rw-r--r-- | svx/source/items/postattr.cxx | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/svx/sdi/svxitems.sdi b/svx/sdi/svxitems.sdi index 1e73fc11bc8c..5a047e703b84 100644 --- a/svx/sdi/svxitems.sdi +++ b/svx/sdi/svxitems.sdi @@ -223,6 +223,7 @@ item BYTE SvxPaperBinItem; item String SvxPostItAuthorItem; item String SvxPostItDateItem; item String SvxPostItTextItem; +item INT32 SvxPostItIdItem; item FontItalic SvxPostureItem; // enum item BOOL SvxPrintItem; item UINT16 SvxPropSizeItem; // derived from UInt16Item diff --git a/svx/source/items/postattr.cxx b/svx/source/items/postattr.cxx index e0d68484c600..1426a1be1b05 100644 --- a/svx/source/items/postattr.cxx +++ b/svx/source/items/postattr.cxx @@ -26,6 +26,7 @@ SfxPoolItem* SvxPostItAuthorItem::CreateDefault() { return new SvxPostItAuthorItem(0); } SfxPoolItem* SvxPostItDateItem::CreateDefault() { return new SvxPostItDateItem(0); } SfxPoolItem* SvxPostItTextItem::CreateDefault() { return new SvxPostItTextItem(0); } +SfxPoolItem* SvxPostItIdItem::CreateDefault() { return new SvxPostItIdItem(0); } SvxPostItAuthorItem::SvxPostItAuthorItem( sal_uInt16 _nWhich ) { @@ -144,4 +145,20 @@ SfxPoolItem* SvxPostItTextItem::Clone( SfxItemPool * ) const return new SvxPostItTextItem( *this ); } + +SvxPostItIdItem::SvxPostItIdItem( sal_uInt16 _nWhich ) +{ + SetWhich( _nWhich ); +} + +SvxPostItIdItem::SvxPostItIdItem( sal_uInt32 rId, sal_uInt16 _nWhich ) : + SfxUInt32Item( _nWhich, rId ) +{ +} + +SfxPoolItem* SvxPostItIdItem::Clone( SfxItemPool * ) const +{ + return new SvxPostItIdItem( *this ); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |