summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-09 08:45:51 +0200
committerNoel Grandin <noel@peralex.com>2015-04-13 09:37:12 +0200
commit26ec80f47df1b32c5e1ae8c96d597ef8c90fee86 (patch)
tree11b53e701f50ff170552054ef7d23136cd4710b6 /sd
parentb5f5a386504e320b022f8609c9c36652ae2d3d18 (diff)
loplugin:staticmethods
Change-Id: I33a8ca28b0c3bf1c31758d93238e74927bebde9c
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/sdmodeltestbase.hxx2
-rw-r--r--sd/source/ui/framework/factories/Pane.cxx2
-rw-r--r--sd/source/ui/presenter/PresenterHelper.cxx4
-rw-r--r--sd/source/ui/presenter/PresenterPreviewCache.cxx4
-rw-r--r--sd/source/ui/presenter/PresenterTextView.cxx4
-rw-r--r--sd/source/ui/presenter/SlideRenderer.cxx4
-rw-r--r--sd/source/ui/slideshow/slideshowviewimpl.cxx4
7 files changed, 12 insertions, 12 deletions
diff --git a/sd/qa/unit/sdmodeltestbase.hxx b/sd/qa/unit/sdmodeltestbase.hxx
index c0ad5afb2787..96925af4beb5 100644
--- a/sd/qa/unit/sdmodeltestbase.hxx
+++ b/sd/qa/unit/sdmodeltestbase.hxx
@@ -218,7 +218,7 @@ protected:
uno::Any aAny = xDrawPages->getByIndex(i);
aAny >>= xDrawPage;
uno::Reference< drawing::XShapes > xShapes(xDrawPage, uno::UNO_QUERY_THROW);
- OUString aString = xShapeDumper.dump(xShapes);
+ OUString aString = XShapeDumper::dump(xShapes);
OStringBuffer aFileNameBuf( OUStringToOString( rShapesDumpFileNameBase, RTL_TEXTENCODING_UTF8 ) );
aFileNameBuf.append(i);
diff --git a/sd/source/ui/framework/factories/Pane.cxx b/sd/source/ui/framework/factories/Pane.cxx
index 978cb870f8ec..321692e2e87a 100644
--- a/sd/source/ui/framework/factories/Pane.cxx
+++ b/sd/source/ui/framework/factories/Pane.cxx
@@ -178,7 +178,7 @@ Reference<rendering::XCanvas> Pane::CreateCanvas (void)
if (mpWindow != NULL)
{
::cppcanvas::SpriteCanvasSharedPtr pCanvas (
- ::cppcanvas::VCLFactory::getInstance().createSpriteCanvas(*mpWindow));
+ cppcanvas::VCLFactory::createSpriteCanvas(*mpWindow));
if (pCanvas.get() != NULL)
xCanvas = Reference<rendering::XCanvas>(pCanvas->getUNOSpriteCanvas(), UNO_QUERY);
}
diff --git a/sd/source/ui/presenter/PresenterHelper.cxx b/sd/source/ui/presenter/PresenterHelper.cxx
index fa55eee8f5fa..8e62792adb37 100644
--- a/sd/source/ui/presenter/PresenterHelper.cxx
+++ b/sd/source/ui/presenter/PresenterHelper.cxx
@@ -398,14 +398,14 @@ Reference<rendering::XBitmap> SAL_CALL PresenterHelper::loadBitmap (
::osl::MutexGuard aGuard (::osl::Mutex::getGlobalMutex());
const cppcanvas::CanvasSharedPtr pCanvas (
- cppcanvas::VCLFactory::getInstance().createCanvas(
+ cppcanvas::VCLFactory::createCanvas(
Reference<css::rendering::XCanvas>(rxCanvas,UNO_QUERY)));
if (pCanvas.get() != NULL)
{
BitmapEx aBitmapEx = SdResId(nid);
cppcanvas::BitmapSharedPtr xBitmap(
- cppcanvas::VCLFactory::getInstance().createBitmap(pCanvas,
+ cppcanvas::VCLFactory::createBitmap(pCanvas,
aBitmapEx));
if (xBitmap.get() == NULL)
return NULL;
diff --git a/sd/source/ui/presenter/PresenterPreviewCache.cxx b/sd/source/ui/presenter/PresenterPreviewCache.cxx
index 22bdfa96930e..c4fd99bb1b7e 100644
--- a/sd/source/ui/presenter/PresenterPreviewCache.cxx
+++ b/sd/source/ui/presenter/PresenterPreviewCache.cxx
@@ -138,7 +138,7 @@ Reference<rendering::XBitmap> SAL_CALL PresenterPreviewCache::getSlidePreview (
OSL_ASSERT(mpCacheContext.get()!=NULL);
cppcanvas::CanvasSharedPtr pCanvas (
- cppcanvas::VCLFactory::getInstance().createCanvas(rxCanvas));
+ cppcanvas::VCLFactory::createCanvas(rxCanvas));
const SdrPage* pPage = mpCacheContext->GetPage(nSlideIndex);
if (pPage == NULL)
@@ -148,7 +148,7 @@ Reference<rendering::XBitmap> SAL_CALL PresenterPreviewCache::getSlidePreview (
if (aPreview.IsEmpty())
return NULL;
else
- return cppcanvas::VCLFactory::getInstance().createBitmap(
+ return cppcanvas::VCLFactory::createBitmap(
pCanvas,
aPreview)->getUNOBitmap();
}
diff --git a/sd/source/ui/presenter/PresenterTextView.cxx b/sd/source/ui/presenter/PresenterTextView.cxx
index a9c746fe5f19..b9fe2662921e 100644
--- a/sd/source/ui/presenter/PresenterTextView.cxx
+++ b/sd/source/ui/presenter/PresenterTextView.cxx
@@ -128,7 +128,7 @@ void SAL_CALL PresenterTextView::initialize (const Sequence<Any>& rArguments)
if (xCanvas.is())
{
mpImplementation->SetCanvas(
- cppcanvas::VCLFactory::getInstance().createCanvas(xCanvas));
+ cppcanvas::VCLFactory::createCanvas(xCanvas));
}
}
catch (RuntimeException&)
@@ -476,7 +476,7 @@ Reference<rendering::XBitmap> PresenterTextView::Implementation::GetBitmap (void
mpEditEngine->Draw(mpOutputDevice, aWindowBox, Point(0,mnTop));
const BitmapEx aBitmap (mpOutputDevice->GetBitmapEx(Point(0,0), maSize));
- mxBitmap = cppcanvas::VCLFactory::getInstance().createBitmap(
+ mxBitmap = cppcanvas::VCLFactory::createBitmap(
mpCanvas,
aBitmap
)->getUNOBitmap();
diff --git a/sd/source/ui/presenter/SlideRenderer.cxx b/sd/source/ui/presenter/SlideRenderer.cxx
index c744aac4a378..bec55173cf9a 100644
--- a/sd/source/ui/presenter/SlideRenderer.cxx
+++ b/sd/source/ui/presenter/SlideRenderer.cxx
@@ -107,9 +107,9 @@ Reference<rendering::XBitmap> SlideRenderer::createPreviewForCanvas (
SolarMutexGuard aGuard;
cppcanvas::CanvasSharedPtr pCanvas (
- cppcanvas::VCLFactory::getInstance().createCanvas(rxCanvas));
+ cppcanvas::VCLFactory::createCanvas(rxCanvas));
if (pCanvas.get() != NULL)
- return cppcanvas::VCLFactory::getInstance().createBitmap(
+ return cppcanvas::VCLFactory::createBitmap(
pCanvas,
CreatePreview(rxSlide, rMaximalSize, nSuperSampleFactor))->getUNOBitmap();
else
diff --git a/sd/source/ui/slideshow/slideshowviewimpl.cxx b/sd/source/ui/slideshow/slideshowviewimpl.cxx
index 093c920c7e23..7ae836be6975 100644
--- a/sd/source/ui/slideshow/slideshowviewimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowviewimpl.cxx
@@ -183,7 +183,7 @@ SlideShowView::SlideShowView( ShowWindow& rOutputWindow,
SlideshowImpl* pSlideShow,
bool bFullScreen )
: SlideShowView_Base( m_aMutex ),
- mpCanvas( ::cppcanvas::VCLFactory::getInstance().createSpriteCanvas( rOutputWindow ) ),
+ mpCanvas( ::cppcanvas::VCLFactory::createSpriteCanvas( rOutputWindow ) ),
mxWindow( VCLUnoHelper::GetInterface( &rOutputWindow ), uno::UNO_QUERY_THROW ),
mxWindowPeer( mxWindow, uno::UNO_QUERY_THROW ),
mxPointer(),
@@ -305,7 +305,7 @@ void SAL_CALL SlideShowView::clear() throw (::com::sun::star::uno::RuntimeExcept
aWindowSize.Width(),
aWindowSize.Height() ) ) );
::cppcanvas::PolyPolygonSharedPtr pPolyPoly(
- ::cppcanvas::BaseGfxFactory::getInstance().createPolyPolygon( mpCanvas, aPoly ) );
+ ::cppcanvas::BaseGfxFactory::createPolyPolygon( mpCanvas, aPoly ) );
if( pPolyPoly.get() )
{