diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-03-03 14:57:39 +0530 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2017-03-08 06:44:57 +0000 |
commit | e6cca48bc9deb1049f8d501406269b71f91511ca (patch) | |
tree | ff2aec2ec271497c0b0f1c844a411f3cd42c0372 /sw/inc/IDocumentRedlineAccess.hxx | |
parent | 0531ffaf99941ad1d1a1c79b368c086cd9e64516 (diff) |
lok: Do not use UNO for fetching tracked changes
See inline comment for reasons.
Also, move the SwRedlineTypeToOUString function as inline to same header
file containing redline types.
Change-Id: I9b4be4f104c095b2ccd8287d935347c81fd25974
Reviewed-on: https://gerrit.libreoffice.org/34950
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'sw/inc/IDocumentRedlineAccess.hxx')
-rw-r--r-- | sw/inc/IDocumentRedlineAccess.hxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sw/inc/IDocumentRedlineAccess.hxx b/sw/inc/IDocumentRedlineAccess.hxx index 71650325042b..47fab8559d8d 100644 --- a/sw/inc/IDocumentRedlineAccess.hxx +++ b/sw/inc/IDocumentRedlineAccess.hxx @@ -82,6 +82,21 @@ namespace nsRedlineType_t // When larger than 128, flags can be inserted. const RedlineType_t REDLINE_NO_FLAG_MASK = 0x7F; const RedlineType_t REDLINE_FORM_AUTOFMT = 0x80;// Can be a flag in RedlineType. + + inline OUString SwRedlineTypeToOUString(RedlineType_t eType) + { + OUString sRet; + switch(eType & nsRedlineType_t::REDLINE_NO_FLAG_MASK) + { + case nsRedlineType_t::REDLINE_INSERT: sRet = "Insert"; break; + case nsRedlineType_t::REDLINE_DELETE: sRet = "Delete"; break; + case nsRedlineType_t::REDLINE_FORMAT: sRet = "Format"; break; + case nsRedlineType_t::REDLINE_PARAGRAPH_FORMAT: sRet = "ParagraphFormat"; break; + case nsRedlineType_t::REDLINE_TABLE: sRet = "TextTable"; break; + case nsRedlineType_t::REDLINE_FMTCOLL:sRet = "Style"; break; + } + return sRet; + } } class IDocumentRedlineAccess |