summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2013-09-02 16:57:39 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2013-09-02 18:42:39 +0400
commit96ad9c965b479d81e42ebefcd92a0a384433fa9c (patch)
tree1978edfdeff9868ff25a61b54b98c7368c9cbfe4 /sd
parent45b757f1c6af983e1825c09047974d32c2f0376f (diff)
String->OUString
Change-Id: I0557dcc191aab97adb6aa68ebee1970a11600f4f
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/inc/PreviewRenderer.hxx8
-rw-r--r--sd/source/ui/presenter/PresenterTextView.cxx2
-rw-r--r--sd/source/ui/tools/PreviewRenderer.cxx10
3 files changed, 10 insertions, 10 deletions
diff --git a/sd/source/ui/inc/PreviewRenderer.hxx b/sd/source/ui/inc/PreviewRenderer.hxx
index dfd02e45da0a..7acc7a6d35be 100644
--- a/sd/source/ui/inc/PreviewRenderer.hxx
+++ b/sd/source/ui/inc/PreviewRenderer.hxx
@@ -79,7 +79,7 @@ public:
Image RenderPage (
const SdPage* pPage,
const sal_Int32 nWidth,
- const String& sSubstitutionText,
+ const OUString& sSubstitutionText,
const bool bObeyHighContrastMode = true,
const bool bDisplayPresentationObjects = true);
@@ -104,7 +104,7 @@ public:
Image RenderPage (
const SdPage* pPage,
const Size aPreviewPixelSize,
- const String& sSubstitutionText,
+ const OUString& sSubstitutionText,
const bool bObeyHighContrastMode = true,
const bool bDisplayPresentationObjects = true);
@@ -115,7 +115,7 @@ public:
*/
Image RenderSubstitution (
const Size& rPreviewPixelSize,
- const String& sSubstitutionText);
+ const OUString& sSubstitutionText);
/** Scale the given bitmap by keeping its aspect ratio to the desired
width. Add a frame to it afterwards.
@@ -145,7 +145,7 @@ private:
void PaintPage (
const SdPage* pPage,
const bool bDisplayPresentationObjects);
- void PaintSubstitutionText (const String& rSubstitutionText);
+ void PaintSubstitutionText (const OUString& rSubstitutionText);
void PaintFrame (void);
/** Set up the map mode so that the given page is renderer into a bitmap
diff --git a/sd/source/ui/presenter/PresenterTextView.cxx b/sd/source/ui/presenter/PresenterTextView.cxx
index cb124320d3d6..f7704986852d 100644
--- a/sd/source/ui/presenter/PresenterTextView.cxx
+++ b/sd/source/ui/presenter/PresenterTextView.cxx
@@ -116,7 +116,7 @@ private:
Size maSize;
Color maBackgroundColor;
Color maTextColor;
- String msText;
+ OUString msText;
sal_Int32 mnTop;
sal_Int32 mnTotalHeight;
diff --git a/sd/source/ui/tools/PreviewRenderer.cxx b/sd/source/ui/tools/PreviewRenderer.cxx
index 64b17f0ab7a1..1b88f8ad06e3 100644
--- a/sd/source/ui/tools/PreviewRenderer.cxx
+++ b/sd/source/ui/tools/PreviewRenderer.cxx
@@ -100,7 +100,7 @@ PreviewRenderer::~PreviewRenderer (void)
Image PreviewRenderer::RenderPage (
const SdPage* pPage,
const sal_Int32 nWidth,
- const String& rSubstitutionText,
+ const OUString& rSubstitutionText,
const bool bObeyHighContrastMode,
const bool bDisplayPresentationObjects)
{
@@ -129,7 +129,7 @@ Image PreviewRenderer::RenderPage (
Image PreviewRenderer::RenderPage (
const SdPage* pPage,
Size aPixelSize,
- const String& rSubstitutionText,
+ const OUString& rSubstitutionText,
const bool bObeyHighContrastMode,
const bool bDisplayPresentationObjects)
{
@@ -167,7 +167,7 @@ Image PreviewRenderer::RenderPage (
Image PreviewRenderer::RenderSubstitution (
const Size& rPreviewPixelSize,
- const String& rSubstitutionText)
+ const OUString& rSubstitutionText)
{
Image aPreview;
@@ -352,9 +352,9 @@ void PreviewRenderer::PaintPage (
-void PreviewRenderer::PaintSubstitutionText (const String& rSubstitutionText)
+void PreviewRenderer::PaintSubstitutionText (const OUString& rSubstitutionText)
{
- if (rSubstitutionText.Len() > 0)
+ if (!rSubstitutionText.isEmpty())
{
// Set the font size.
const Font& rOriginalFont (mpPreviewDevice->GetFont());