From 3d6bed44c8ca414f60c03223482b9f7b94d56c14 Mon Sep 17 00:00:00 2001 From: Carsten Driesner Date: Mon, 17 Jan 2011 11:41:00 +0100 Subject: removetooltypes01: #i112600# Remove tools types from sd --- sd/source/ui/tools/IconCache.cxx | 8 ++++---- sd/source/ui/tools/PreviewRenderer.cxx | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) mode change 100644 => 100755 sd/source/ui/tools/IconCache.cxx (limited to 'sd/source/ui/tools') diff --git a/sd/source/ui/tools/IconCache.cxx b/sd/source/ui/tools/IconCache.cxx old mode 100644 new mode 100755 index 12e7b6b52e95..de4d53b73495 --- a/sd/source/ui/tools/IconCache.cxx +++ b/sd/source/ui/tools/IconCache.cxx @@ -50,17 +50,17 @@ private: */ static IconCache* mpInstance; - typedef ::std::hash_map ImageContainer; + typedef ::std::hash_map ImageContainer; ImageContainer maContainer; - Image GetIcon (USHORT nResourceId); + Image GetIcon (sal_uInt16 nResourceId); }; IconCache* IconCache::Implementation::mpInstance = NULL; -Image IconCache::Implementation::GetIcon (USHORT nResourceId) +Image IconCache::Implementation::GetIcon (sal_uInt16 nResourceId) { Image aResult; ImageContainer::iterator iImage; @@ -109,7 +109,7 @@ IconCache& IconCache::Instance (void) -Image IconCache::GetIcon (USHORT nResourceId) +Image IconCache::GetIcon (sal_uInt16 nResourceId) { return mpImpl->GetIcon (nResourceId); } diff --git a/sd/source/ui/tools/PreviewRenderer.cxx b/sd/source/ui/tools/PreviewRenderer.cxx index 3b6e8339c22d..d4f6d056fc90 100644 --- a/sd/source/ui/tools/PreviewRenderer.cxx +++ b/sd/source/ui/tools/PreviewRenderer.cxx @@ -211,12 +211,12 @@ Image PreviewRenderer::RenderSubstitution ( const Rectangle aPaintRectangle ( Point(0,0), mpPreviewDevice->GetOutputSizePixel()); - mpPreviewDevice->EnableMapMode(FALSE); + mpPreviewDevice->EnableMapMode(sal_False); mpPreviewDevice->SetLineColor(); svtools::ColorConfig aColorConfig; mpPreviewDevice->SetFillColor(aColorConfig.GetColorValue(svtools::DOCCOLOR).nColor); mpPreviewDevice->DrawRect (aPaintRectangle); - mpPreviewDevice->EnableMapMode(TRUE); + mpPreviewDevice->EnableMapMode(sal_True); // Paint substitution text and a frame around it. PaintSubstitutionText (rSubstitutionText); @@ -327,7 +327,7 @@ void PreviewRenderer::PaintPage ( // Turn off online spelling and redlining. SdrOutliner* pOutliner = NULL; - ULONG nSavedControlWord (0); + sal_uLong nSavedControlWord (0); if (mpDocShellOfView!=NULL && mpDocShellOfView->GetDoc()!=NULL) { pOutliner = &mpDocShellOfView->GetDoc()->GetDrawOutliner(); @@ -373,7 +373,7 @@ void PreviewRenderer::PaintSubstitutionText (const String& rSubstitutionText) Point(0,0), mpPreviewDevice->PixelToLogic( mpPreviewDevice->GetOutputSizePixel())); - USHORT nTextStyle = + sal_uInt16 nTextStyle = TEXT_DRAW_CENTER | TEXT_DRAW_VCENTER | TEXT_DRAW_MULTILINE @@ -396,11 +396,11 @@ void PreviewRenderer::PaintFrame (void) Rectangle aPaintRectangle ( Point(0,0), mpPreviewDevice->GetOutputSizePixel()); - mpPreviewDevice->EnableMapMode(FALSE); + mpPreviewDevice->EnableMapMode(sal_False); mpPreviewDevice->SetLineColor(maFrameColor); mpPreviewDevice->SetFillColor(); mpPreviewDevice->DrawRect(aPaintRectangle); - mpPreviewDevice->EnableMapMode(TRUE); + mpPreviewDevice->EnableMapMode(sal_True); } } -- cgit