diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-08-18 12:03:34 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-20 11:37:58 +0100 |
commit | e47d90690c8fab3ec8b7fd7c1b79372251770f9d (patch) | |
tree | d6df7861da788f1a412ed32c0368c45e7030498f /sw/inc/SwRewriter.hxx | |
parent | e1a9a348a519a69f898c9c1e6d87a5837b8267f9 (diff) |
String to OUString, better location for class method
Change-Id: Ifde0d45e35fed94d4ef6cb93b2feda172fd6608b
Diffstat (limited to 'sw/inc/SwRewriter.hxx')
-rw-r--r-- | sw/inc/SwRewriter.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sw/inc/SwRewriter.hxx b/sw/inc/SwRewriter.hxx index bb535083ada0..ecf28ce13b5f 100644 --- a/sw/inc/SwRewriter.hxx +++ b/sw/inc/SwRewriter.hxx @@ -21,7 +21,7 @@ #define _SW_REWRITER_HXX #include <vector> -#include <tools/string.hxx> +#include <rtl/ustring.hxx> #include <swdllapi.h> enum SwUndoArg @@ -31,7 +31,7 @@ enum SwUndoArg UndoArg3 }; -typedef std::pair<SwUndoArg, String> SwRewriteRule; +typedef std::pair<SwUndoArg, OUString> SwRewriteRule; class SW_DLLPUBLIC SwRewriter { @@ -42,9 +42,11 @@ public: SwRewriter(const SwRewriter & rSrc); ~SwRewriter(); - void AddRule(SwUndoArg eWhat, const String & rWith); + void AddRule(SwUndoArg eWhat, const OUString & rWith); - String Apply(const String & rStr) const; + OUString Apply(const OUString & rStr) const; + + static OUString GetPlaceHolder(SwUndoArg eId); }; #endif // _SW_REWRITER_HXX |