summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-23 09:18:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-23 09:19:09 +0200
commitaebf05f324661a07f4124a4c48b6fc889d4bfbf6 (patch)
tree48755a6404db06c5f8df8762723d5fc129b35b5e /include
parent29a9e97db65bcf5914aed9bf8cb8e8f38c3c5fc0 (diff)
convert ATTRSPECIAL to scoped enum
Change-Id: I8abf09dc5f17343945b909887c580e9016a79ac5
Diffstat (limited to 'include')
-rw-r--r--include/editeng/editeng.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index d8be7c663eed..2b4f23663193 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -140,6 +140,10 @@ template<class T> bool checkSvxFieldData(const SvxFieldData* pData)
return dynamic_cast<const T*>(pData) != nullptr;
}
+enum class SetAttribsMode {
+ NONE, WholeWord, Edge
+};
+
class SdrObject;
class EDITENG_DLLPUBLIC EditEngine
{
@@ -570,7 +574,7 @@ public:
const SfxItemSet& GetBaseParaAttribs(sal_Int32 nPara) const;
void SetParaAttribsOnly(sal_Int32 nPara, const SfxItemSet& rSet);
- void SetAttribs(const EditSelection& rSel, const SfxItemSet& rSet, sal_uInt8 nSpecial = 0);
+ void SetAttribs(const EditSelection& rSel, const SfxItemSet& rSet, SetAttribsMode nSpecial = SetAttribsMode::NONE);
OUString GetSelected(const EditSelection& rSel) const;
EditPaM DeleteSelected(const EditSelection& rSel);