summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfcontrolwords.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/rtftok/rtfcontrolwords.cxx')
-rw-r--r--writerfilter/source/rtftok/rtfcontrolwords.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfcontrolwords.cxx b/writerfilter/source/rtftok/rtfcontrolwords.cxx
index cce0c2e630db..11c4d3d7f6f0 100644
--- a/writerfilter/source/rtftok/rtfcontrolwords.cxx
+++ b/writerfilter/source/rtftok/rtfcontrolwords.cxx
@@ -27,6 +27,7 @@
#include <rtfcontrolwords.hxx>
#include <sal/macros.h>
+#include <string.h>
namespace writerfilter {
namespace rtftok {
@@ -1856,6 +1857,23 @@ RTFSymbol aRTFControlWords[] = {
};
int nRTFControlWords = SAL_N_ELEMENTS(aRTFControlWords);
+bool RTFSymbol::operator<(const RTFSymbol& rOther) const
+{
+ return strcmp(sKeyword, rOther.sKeyword) < 0;
+}
+
+RTFSymbol::RTFSymbol(const char* pKeyword)
+ : sKeyword(pKeyword)
+{
+}
+
+RTFSymbol::RTFSymbol(const char *pKeyword, int pControlType, RTFKeyword pIndex)
+ : sKeyword(pKeyword),
+ nControlType(pControlType),
+ nIndex(pIndex)
+{
+}
+
} // namespace rtftok
} // namespace writerfilter