summaryrefslogtreecommitdiff
path: root/sw/inc/undobj.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-07 13:10:40 +0200
committerNoel Grandin <noel@peralex.com>2016-09-08 09:23:40 +0200
commit847e004e65ec3c35acff607588d15cd75a84f121 (patch)
tree1b2ac62948c9ad15d2f231b56eb45ff341f572f7 /sw/inc/undobj.hxx
parent3cac15856ade9fce161a49212c9d1861741122a5 (diff)
convert nsRedlineMode_t to typed_flags
including fixing a bug in SwXMLExport::exportDoc where it was ORing with a constant from a different type: nsRedlineType_t::REDLINE_INSERT Change-Id: I2bb154c9a35d106e64fd1a8b6e928d0384c9fafe
Diffstat (limited to 'sw/inc/undobj.hxx')
-rw-r--r--sw/inc/undobj.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/inc/undobj.hxx b/sw/inc/undobj.hxx
index 0913cea9bbbb..5d3e0d30ae8e 100644
--- a/sw/inc/undobj.hxx
+++ b/sw/inc/undobj.hxx
@@ -38,6 +38,7 @@ class SwNodeIndex;
class SwNodeRange;
class SwRedlineData;
class SwRedlineSaveDatas;
+enum class RedlineFlags;
namespace sw {
class UndoRedoContext;
@@ -48,7 +49,7 @@ class SwUndo
: public SfxUndoAction
{
SwUndoId const m_nId;
- sal_uInt16 nOrigRedlineMode;
+ RedlineFlags nOrigRedlineFlags;
sal_Int32 m_nViewShellId;
protected:
@@ -112,8 +113,8 @@ public:
// UndoObject remembers which mode was turned on.
// In Undo/Redo/Repeat this remembered mode is switched on.
- sal_uInt16 GetRedlineMode() const { return nOrigRedlineMode; }
- void SetRedlineMode( sal_uInt16 eMode ) { nOrigRedlineMode = eMode; }
+ RedlineFlags GetRedlineFlags() const { return nOrigRedlineFlags; }
+ void SetRedlineFlags( RedlineFlags eMode ) { nOrigRedlineFlags = eMode; }
bool IsDelBox() const;