diff options
author | Daniel Sikeler <d.sikeler94@gmail.com> | 2014-11-05 13:06:46 +0000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-12-02 13:45:46 +0000 |
commit | a143d7d14db9b12064391879822120260eda2702 (patch) | |
tree | 33212c917ce15dee00d1677490a412c3c373af6e /sw/inc/editsh.hxx | |
parent | ababde703007557c59595d551efb118cf84a3911 (diff) |
De-/Increase fontsize when multi-sized text
I did the changes proposed in https://gerrit.libreoffice.org/#/c/11857/
I also tested it with a mixture of CJK and CTL text
Change-Id: Ic75f557b8c0a68f43abbd8c28b2222945e9361b7
Reviewed-on: https://gerrit.libreoffice.org/13152
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/inc/editsh.hxx')
-rw-r--r-- | sw/inc/editsh.hxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx index b59cc50e94cc..a8b4d7041e2c 100644 --- a/sw/inc/editsh.hxx +++ b/sw/inc/editsh.hxx @@ -235,16 +235,11 @@ public: void SetAttrItem( const SfxPoolItem&, sal_uInt16 nFlags = 0 ); void SetAttrSet( const SfxItemSet&, sal_uInt16 nFlags = 0, SwPaM* pCrsr = NULL ); - /** Get all items of one type in the current selection. + /** Get RES_CHRATR_* items of one type in the current selection. * @param nWhich WhichId of the collected items. - * @return Vector with the items.*/ - std::vector<const SfxPoolItem*> GetCurItem( sal_uInt16 nWhich ); - - /** Splits the current SwPaM in smaller ones. - * The borders of an itemtype are used as separator. The SwPaMs must be deleted after use. - * @param nWhich WhichId of the item to separate at. - * @return Vector with the smaller SwPaMs*/ - std::vector<SwPaM*> GetSplitPaM( sal_uInt16 nWhich ); + * If parts of the selection have different scripttypes, the items with corresponding WhichIds are also collected. + * @return a vector of pairs. The pair contains a SfxPoolItem and a SwPaM, in which the item is valid and can be changed. */ + std::vector<std::pair< const SfxPoolItem*, std::unique_ptr<SwPaM>>> GetItemWithPaM( sal_uInt16 nWhich ); /** * Get the paragraph format attribute(s) of the current selection. |