Kaydet (Commit) 96ad9c96 authored tarafından Ivan Timofeev's avatar Ivan Timofeev

String->OUString

Change-Id: I0557dcc191aab97adb6aa68ebee1970a11600f4f
üst 45b757f1
...@@ -79,7 +79,7 @@ public: ...@@ -79,7 +79,7 @@ public:
Image RenderPage ( Image RenderPage (
const SdPage* pPage, const SdPage* pPage,
const sal_Int32 nWidth, const sal_Int32 nWidth,
const String& sSubstitutionText, const OUString& sSubstitutionText,
const bool bObeyHighContrastMode = true, const bool bObeyHighContrastMode = true,
const bool bDisplayPresentationObjects = true); const bool bDisplayPresentationObjects = true);
...@@ -104,7 +104,7 @@ public: ...@@ -104,7 +104,7 @@ public:
Image RenderPage ( Image RenderPage (
const SdPage* pPage, const SdPage* pPage,
const Size aPreviewPixelSize, const Size aPreviewPixelSize,
const String& sSubstitutionText, const OUString& sSubstitutionText,
const bool bObeyHighContrastMode = true, const bool bObeyHighContrastMode = true,
const bool bDisplayPresentationObjects = true); const bool bDisplayPresentationObjects = true);
...@@ -115,7 +115,7 @@ public: ...@@ -115,7 +115,7 @@ public:
*/ */
Image RenderSubstitution ( Image RenderSubstitution (
const Size& rPreviewPixelSize, const Size& rPreviewPixelSize,
const String& sSubstitutionText); const OUString& sSubstitutionText);
/** Scale the given bitmap by keeping its aspect ratio to the desired /** Scale the given bitmap by keeping its aspect ratio to the desired
width. Add a frame to it afterwards. width. Add a frame to it afterwards.
...@@ -145,7 +145,7 @@ private: ...@@ -145,7 +145,7 @@ private:
void PaintPage ( void PaintPage (
const SdPage* pPage, const SdPage* pPage,
const bool bDisplayPresentationObjects); const bool bDisplayPresentationObjects);
void PaintSubstitutionText (const String& rSubstitutionText); void PaintSubstitutionText (const OUString& rSubstitutionText);
void PaintFrame (void); void PaintFrame (void);
/** Set up the map mode so that the given page is renderer into a bitmap /** Set up the map mode so that the given page is renderer into a bitmap
......
...@@ -116,7 +116,7 @@ private: ...@@ -116,7 +116,7 @@ private:
Size maSize; Size maSize;
Color maBackgroundColor; Color maBackgroundColor;
Color maTextColor; Color maTextColor;
String msText; OUString msText;
sal_Int32 mnTop; sal_Int32 mnTop;
sal_Int32 mnTotalHeight; sal_Int32 mnTotalHeight;
......
...@@ -100,7 +100,7 @@ PreviewRenderer::~PreviewRenderer (void) ...@@ -100,7 +100,7 @@ PreviewRenderer::~PreviewRenderer (void)
Image PreviewRenderer::RenderPage ( Image PreviewRenderer::RenderPage (
const SdPage* pPage, const SdPage* pPage,
const sal_Int32 nWidth, const sal_Int32 nWidth,
const String& rSubstitutionText, const OUString& rSubstitutionText,
const bool bObeyHighContrastMode, const bool bObeyHighContrastMode,
const bool bDisplayPresentationObjects) const bool bDisplayPresentationObjects)
{ {
...@@ -129,7 +129,7 @@ Image PreviewRenderer::RenderPage ( ...@@ -129,7 +129,7 @@ Image PreviewRenderer::RenderPage (
Image PreviewRenderer::RenderPage ( Image PreviewRenderer::RenderPage (
const SdPage* pPage, const SdPage* pPage,
Size aPixelSize, Size aPixelSize,
const String& rSubstitutionText, const OUString& rSubstitutionText,
const bool bObeyHighContrastMode, const bool bObeyHighContrastMode,
const bool bDisplayPresentationObjects) const bool bDisplayPresentationObjects)
{ {
...@@ -167,7 +167,7 @@ Image PreviewRenderer::RenderPage ( ...@@ -167,7 +167,7 @@ Image PreviewRenderer::RenderPage (
Image PreviewRenderer::RenderSubstitution ( Image PreviewRenderer::RenderSubstitution (
const Size& rPreviewPixelSize, const Size& rPreviewPixelSize,
const String& rSubstitutionText) const OUString& rSubstitutionText)
{ {
Image aPreview; Image aPreview;
...@@ -352,9 +352,9 @@ void PreviewRenderer::PaintPage ( ...@@ -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. // Set the font size.
const Font& rOriginalFont (mpPreviewDevice->GetFont()); const Font& rOriginalFont (mpPreviewDevice->GetFont());
......
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