Kaydet (Commit) d3c008fb authored tarafından Noel Grandin's avatar Noel Grandin

convert include/svtools/rtfout.hxx from String to OUString

and remove dead function.

Change-Id: I0c2bf9409f747e98f9575c5861a8629435e27af4
üst a2669bcc
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
#include <rtl/textenc.h> #include <rtl/textenc.h>
class String; namespace rtl {
class OUString;
};
class SvStream; class SvStream;
class SVT_DLLPUBLIC RTFOutFuncs class SVT_DLLPUBLIC RTFOutFuncs
...@@ -41,10 +43,7 @@ public: ...@@ -41,10 +43,7 @@ public:
int *pUCMode, int *pUCMode,
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
sal_Bool bWriteHelpFile = sal_False ); sal_Bool bWriteHelpFile = sal_False );
static SvStream& Out_String( SvStream&, const String&, static SvStream& Out_String( SvStream&, const rtl::OUString&,
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
sal_Bool bWriteHelpFile = sal_False );
static SvStream& Out_Fontname( SvStream&, const String&,
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
sal_Bool bWriteHelpFile = sal_False ); sal_Bool bWriteHelpFile = sal_False );
......
...@@ -156,12 +156,12 @@ SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c, ...@@ -156,12 +156,12 @@ SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c,
return rStream; return rStream;
} }
SvStream& RTFOutFuncs::Out_String( SvStream& rStream, const String& rStr, SvStream& RTFOutFuncs::Out_String( SvStream& rStream, const OUString& rStr,
rtl_TextEncoding eDestEnc, sal_Bool bWriteHelpFile) rtl_TextEncoding eDestEnc, sal_Bool bWriteHelpFile)
{ {
int nUCMode = 1; int nUCMode = 1;
for (xub_StrLen n = 0; n < rStr.Len(); ++n) for (sal_Int32 n = 0; n < rStr.getLength(); ++n)
Out_Char(rStream, rStr.GetChar(n), &nUCMode, eDestEnc, bWriteHelpFile); Out_Char(rStream, rStr[n], &nUCMode, eDestEnc, bWriteHelpFile);
if (nUCMode != 1) if (nUCMode != 1)
rStream << "\\uc1"<< " "; // #i47831# add an additional whitespace, so that "document whitespaces" are not ignored.; rStream << "\\uc1"<< " "; // #i47831# add an additional whitespace, so that "document whitespaces" are not ignored.;
return rStream; return rStream;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment