diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/text/textapi.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx | 10 | ||||
-rw-r--r-- | sd/source/ui/unoidl/SdUnoDrawView.cxx | 14 | ||||
-rw-r--r-- | sd/source/ui/unoidl/SdUnoOutlineView.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unocpres.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unolayer.cxx | 10 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 21 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 18 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unosrch.cxx | 10 | ||||
-rw-r--r-- | sd/source/ui/view/DocumentRenderer.cxx | 2 |
10 files changed, 43 insertions, 52 deletions
diff --git a/sd/source/core/text/textapi.cxx b/sd/source/core/text/textapi.cxx index 2bf1177f0abd..9ee84929196f 100644 --- a/sd/source/core/text/textapi.cxx +++ b/sd/source/core/text/textapi.cxx @@ -177,7 +177,7 @@ TextApiObject* TextApiObject::getImplementation( const css::uno::Reference< css: TextApiObject* pImpl = dynamic_cast< TextApiObject* >( xText.get() ); if( !pImpl ) - pImpl = dynamic_cast< TextApiObject* >( SvxUnoTextBase::getImplementation( xText ) ); + pImpl = dynamic_cast< TextApiObject* >( comphelper::getUnoTunnelImplementation<SvxUnoTextBase>( xText ) ); return pImpl; } diff --git a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx index a9d7ca12e4fd..4a03e06b83b9 100644 --- a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx +++ b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx @@ -433,7 +433,7 @@ uno::Sequence< sal_Int32 > SAL_CALL { return aRet; } - AccessibleShape* pAcc = AccessibleShape::getImplementation( xAccContent ); + AccessibleShape* pAcc = comphelper::getUnoTunnelImplementation<AccessibleShape>( xAccContent ); if ( !pAcc ) { return aRet; @@ -497,7 +497,7 @@ OUString AccessibleDrawDocumentView::getObjectLink( const uno::Any& rAny ) { return aRet; } - AccessibleShape* pAcc = AccessibleShape::getImplementation( xAccContent ); + AccessibleShape* pAcc = comphelper::getUnoTunnelImplementation<AccessibleShape>( xAccContent ); if ( !pAcc ) { return aRet; @@ -586,7 +586,7 @@ bool if( xShapes.is() ) { - AccessibleShape* pAcc = AccessibleShape::getImplementation( getAccessibleChild( nAccessibleChildIndex ) ); + AccessibleShape* pAcc = comphelper::getUnoTunnelImplementation<AccessibleShape>( getAccessibleChild( nAccessibleChildIndex ) ); if( pAcc ) { @@ -633,7 +633,7 @@ void for(sal_Int32 i = 0, nCount = getAccessibleChildCount(); i < nCount; ++i ) { - AccessibleShape* pAcc = AccessibleShape::getImplementation( getAccessibleChild( i ) ); + AccessibleShape* pAcc = comphelper::getUnoTunnelImplementation<AccessibleShape>( getAccessibleChild( i ) ); if( pAcc && pAcc->GetXShape().is() ) xShapes->add( pAcc->GetXShape() ); @@ -650,7 +650,7 @@ void // Select or deselect only the child with index // nAccessibleChildIndex. - AccessibleShape* pAcc = AccessibleShape::getImplementation( + AccessibleShape* pAcc = comphelper::getUnoTunnelImplementation<AccessibleShape>( getAccessibleChild( nAccessibleChildIndex )); // Add or remove the shape that is made accessible from the diff --git a/sd/source/ui/unoidl/SdUnoDrawView.cxx b/sd/source/ui/unoidl/SdUnoDrawView.cxx index db9f7a465864..c714b0f8dce5 100644 --- a/sd/source/ui/unoidl/SdUnoDrawView.cxx +++ b/sd/source/ui/unoidl/SdUnoDrawView.cxx @@ -116,7 +116,7 @@ Reference<drawing::XLayer> SdUnoDrawView::getActiveLayer() // Get the corresponding XLayer object from the implementation // object of the layer manager. Reference<drawing::XLayerManager> xManager (pModel->getLayerManager(), uno::UNO_QUERY); - SdLayerManager* pManager = SdLayerManager::getImplementation (xManager); + SdLayerManager* pManager = comphelper::getUnoTunnelImplementation<SdLayerManager> (xManager); if (pManager != nullptr) xCurrentLayer = pManager->GetLayer (pLayer); } @@ -131,7 +131,7 @@ void SdUnoDrawView::setActiveLayer (const Reference<drawing::XLayer>& rxLayer) if ( ! rxLayer.is()) return; - SdLayer* pLayer = SdLayer::getImplementation (rxLayer); + SdLayer* pLayer = comphelper::getUnoTunnelImplementation<SdLayer> (rxLayer); if (pLayer == nullptr) return; @@ -159,7 +159,7 @@ sal_Bool SAL_CALL SdUnoDrawView::select( const Any& aSelection ) if(xShape.is()) { - SvxShape* pShape = SvxShape::getImplementation( xShape ); + SvxShape* pShape = comphelper::getUnoTunnelImplementation<SvxShape>( xShape ); if( pShape && (pShape->GetSdrObject() != nullptr) ) { SdrObject* pObj = pShape->GetSdrObject(); @@ -183,7 +183,7 @@ sal_Bool SAL_CALL SdUnoDrawView::select( const Any& aSelection ) xShapes->getByIndex(i) >>= xShape; if( xShape.is() ) { - SvxShape* pShape = SvxShape::getImplementation(xShape); + SvxShape* pShape = comphelper::getUnoTunnelImplementation<SvxShape>(xShape); if( (pShape == nullptr) || (pShape->GetSdrObject() == nullptr) ) { bOk = false; @@ -268,7 +268,7 @@ Any SAL_CALL SdUnoDrawView::getSelection() if(!xPage.is()) continue; - SvxDrawPage* pDrawPage = SvxDrawPage::getImplementation( xPage ); + SvxDrawPage* pDrawPage = comphelper::getUnoTunnelImplementation<SvxDrawPage>( xPage ); if(pDrawPage==nullptr) continue; @@ -403,7 +403,7 @@ Any SAL_CALL SdUnoDrawView::getFastPropertyValue ( void SAL_CALL SdUnoDrawView::setCurrentPage ( const Reference< drawing::XDrawPage >& xPage ) { - SvxDrawPage* pDrawPage = SvxDrawPage::getImplementation( xPage ); + SvxDrawPage* pDrawPage = comphelper::getUnoTunnelImplementation<SvxDrawPage>( xPage ); SdrPage *pSdrPage = pDrawPage ? pDrawPage->GetSdrPage() : nullptr; if(pSdrPage) @@ -513,7 +513,7 @@ SdXImpressDocument* SdUnoDrawView::GetModel() const throw() if (mrView.GetDocSh()!=nullptr) { Reference<frame::XModel> xModel (mrView.GetDocSh()->GetModel()); - return SdXImpressDocument::getImplementation(xModel); + return comphelper::getUnoTunnelImplementation<SdXImpressDocument>(xModel); } else return nullptr; diff --git a/sd/source/ui/unoidl/SdUnoOutlineView.cxx b/sd/source/ui/unoidl/SdUnoOutlineView.cxx index 6c16c50d64b8..c75243b5b66d 100644 --- a/sd/source/ui/unoidl/SdUnoOutlineView.cxx +++ b/sd/source/ui/unoidl/SdUnoOutlineView.cxx @@ -75,7 +75,7 @@ void SAL_CALL SdUnoOutlineView::removeSelectionChangeListener ( void SAL_CALL SdUnoOutlineView::setCurrentPage ( const Reference< drawing::XDrawPage >& xPage) { - SvxDrawPage* pDrawPage = SvxDrawPage::getImplementation( xPage ); + SvxDrawPage* pDrawPage = comphelper::getUnoTunnelImplementation<SvxDrawPage>( xPage ); SdrPage *pSdrPage = pDrawPage ? pDrawPage->GetSdrPage() : nullptr; SdPage *pSdPage = dynamic_cast<SdPage*>(pSdrPage); diff --git a/sd/source/ui/unoidl/unocpres.cxx b/sd/source/ui/unoidl/unocpres.cxx index 1ad8cc975d3c..49354ae6b097 100644 --- a/sd/source/ui/unoidl/unocpres.cxx +++ b/sd/source/ui/unoidl/unocpres.cxx @@ -95,7 +95,7 @@ void SAL_CALL SdXCustomPresentation::insertByIndex( sal_Int32 Index, const uno:: if(!xPage.is()) throw lang::IllegalArgumentException(); - SdDrawPage* pPage = SdDrawPage::getImplementation( xPage ); + SdDrawPage* pPage = comphelper::getUnoTunnelImplementation<SdDrawPage>( xPage ); if(pPage) { @@ -127,7 +127,7 @@ void SAL_CALL SdXCustomPresentation::removeByIndex( sal_Int32 Index ) if( xPage.is() ) { - SvxDrawPage* pPage = SvxDrawPage::getImplementation( xPage ); + SvxDrawPage* pPage = comphelper::getUnoTunnelImplementation<SvxDrawPage>( xPage ); if(pPage) { SdCustomShow::PageVec::iterator it = std::find( @@ -320,7 +320,7 @@ void SAL_CALL SdXCustomPresentationAccess::insertByName( const OUString& aName, uno::Reference< container::XIndexContainer > xContainer; if( (aElement >>= xContainer) && xContainer.is() ) - pXShow = SdXCustomPresentation::getImplementation(xContainer); + pXShow = comphelper::getUnoTunnelImplementation<SdXCustomPresentation>(xContainer); if( nullptr == pXShow ) throw lang::IllegalArgumentException(); diff --git a/sd/source/ui/unoidl/unolayer.cxx b/sd/source/ui/unoidl/unolayer.cxx index d1750c7eaca8..6c4a16f20ce4 100644 --- a/sd/source/ui/unoidl/unolayer.cxx +++ b/sd/source/ui/unoidl/unolayer.cxx @@ -454,7 +454,7 @@ void SAL_CALL SdLayerManager::remove( const uno::Reference< drawing::XLayer >& x if( mpModel == nullptr ) throw lang::DisposedException(); - SdLayer* pSdLayer = SdLayer::getImplementation(xLayer); + SdLayer* pSdLayer = comphelper::getUnoTunnelImplementation<SdLayer>(xLayer); if(pSdLayer && GetView()) { @@ -474,12 +474,12 @@ void SAL_CALL SdLayerManager::attachShapeToLayer( const uno::Reference< drawing: if( mpModel == nullptr ) throw lang::DisposedException(); - SdLayer* pSdLayer = SdLayer::getImplementation(xLayer); + SdLayer* pSdLayer = comphelper::getUnoTunnelImplementation<SdLayer>(xLayer); SdrLayer* pSdrLayer = pSdLayer?pSdLayer->GetSdrLayer():nullptr; if(pSdrLayer==nullptr) return; - SvxShape* pShape = SvxShape::getImplementation( xShape ); + SvxShape* pShape = comphelper::getUnoTunnelImplementation<SvxShape>( xShape ); SdrObject* pSdrObject = pShape?pShape->GetSdrObject():nullptr; if(pSdrObject) @@ -499,7 +499,7 @@ uno::Reference< drawing::XLayer > SAL_CALL SdLayerManager::getLayerForShape( con if(mpModel->mpDoc) { - SvxShape* pShape = SvxShape::getImplementation( xShape ); + SvxShape* pShape = comphelper::getUnoTunnelImplementation<SvxShape>( xShape ); SdrObject* pObj = pShape?pShape->GetSdrObject():nullptr; if(pObj) { @@ -662,7 +662,7 @@ bool compare_layers (const uno::WeakReference<uno::XInterface>& xRef, void const uno::Reference<uno::XInterface> xLayer (xRef); if (xLayer.is()) { - SdLayer* pSdLayer = SdLayer::getImplementation (xRef); + SdLayer* pSdLayer = comphelper::getUnoTunnelImplementation<SdLayer> (xRef); if (pSdLayer != nullptr) { SdrLayer* pSdrLayer = pSdLayer->GetSdrLayer (); diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index e6c15f7f1cd0..b13e3d93a2a8 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -348,15 +348,6 @@ const css::uno::Sequence< sal_Int8 > & SdXImpressDocument::getUnoTunnelId() thro return theSdXImpressDocumentUnoTunnelId::get().getSeq(); } -SdXImpressDocument* SdXImpressDocument::getImplementation( const uno::Reference< uno::XInterface >& xInt ) -{ - css::uno::Reference< css::lang::XUnoTunnel > xUT( xInt, uno::UNO_QUERY ); - if( xUT.is() ) - return reinterpret_cast<SdXImpressDocument*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething( SdXImpressDocument::getUnoTunnelId() ))); - else - return nullptr; -} - sal_Int64 SAL_CALL SdXImpressDocument::getSomething( const css::uno::Sequence< sal_Int8 >& rIdentifier ) { if( rIdentifier.getLength() == 16 ) @@ -683,7 +674,7 @@ uno::Reference< drawing::XDrawPage > SAL_CALL SdXImpressDocument::duplicate( con throw lang::DisposedException(); // get pPage from xPage and determine the Id (nPos ) afterwards - SvxDrawPage* pSvxPage = SvxDrawPage::getImplementation( xPage ); + SvxDrawPage* pSvxPage = comphelper::getUnoTunnelImplementation<SvxDrawPage>( xPage ); if( pSvxPage ) { SdPage* pPage = static_cast<SdPage*>( pSvxPage->GetSdrPage() ); @@ -1070,7 +1061,7 @@ css::uno::Reference<css::uno::XInterface> SdXImpressDocument::create( } uno::Reference< drawing::XShape > xShape( xRet, uno::UNO_QUERY ); - SvxShape* pShape = xShape.is() ? SvxShape::getImplementation(xShape) : nullptr; + SvxShape* pShape = xShape.is() ? comphelper::getUnoTunnelImplementation<SvxShape>(xShape) : nullptr; if (pShape) { xRet.clear(); @@ -1906,7 +1897,7 @@ void SAL_CALL SdXImpressDocument::render( sal_Int32 nRenderer, const uno::Any& r if( !(xRenderDevice.is() && nPageNumber && ( nPageNumber <= mpDoc->GetSdPageCount( ePageKind ) )) ) return; - VCLXDevice* pDevice = VCLXDevice::getImplementation( xRenderDevice ); + VCLXDevice* pDevice = comphelper::getUnoTunnelImplementation<VCLXDevice>( xRenderDevice ); VclPtr< OutputDevice> pOut = pDevice ? pDevice->GetOutputDevice() : VclPtr< OutputDevice >(); if( !pOut ) @@ -2200,7 +2191,7 @@ void SAL_CALL SdXImpressDocument::render( sal_Int32 nRenderer, const uno::Any& r if( xShape.is() ) { - SvxShape* pShape = SvxShape::getImplementation( xShape ); + SvxShape* pShape = comphelper::getUnoTunnelImplementation<SvxShape>( xShape ); if( pShape ) { @@ -2930,7 +2921,7 @@ void SAL_CALL SdDrawPagesAccess::remove( const uno::Reference< drawing::XDrawPag if( nPageCount > 1 ) { // get pPage from xPage and determine the Id (nPos ) afterwards - SdDrawPage* pSvxPage = SdDrawPage::getImplementation( xPage ); + SdDrawPage* pSvxPage = comphelper::getUnoTunnelImplementation<SdDrawPage>( xPage ); if( pSvxPage ) { SdPage* pPage = static_cast<SdPage*>(pSvxPage->GetSdrPage()); @@ -3180,7 +3171,7 @@ void SAL_CALL SdMasterPagesAccess::remove( const uno::Reference< drawing::XDrawP if( nullptr == mpModel || mpModel->mpDoc == nullptr ) throw lang::DisposedException(); - SdMasterPage* pSdPage = SdMasterPage::getImplementation( xPage ); + SdMasterPage* pSdPage = comphelper::getUnoTunnelImplementation<SdMasterPage>( xPage ); if(pSdPage == nullptr) return; diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index fcc49edb09ed..9e060647fc53 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -388,7 +388,7 @@ void SdGenericDrawPage::UpdateModel() if( mpSdrModel ) { uno::Reference< uno::XInterface > xModel( SvxFmDrawPage::mpModel->getUnoModel() ); - mpDocModel = SdXImpressDocument::getImplementation( xModel ); + mpDocModel = comphelper::getUnoTunnelImplementation<SdXImpressDocument>( xModel ); } else { @@ -1469,13 +1469,13 @@ Reference< drawing::XShape > SdGenericDrawPage::CreateShape(SdrObject *pObj) co } if( !pShape ) - pShape = SvxShape::getImplementation( xShape ); + pShape = comphelper::getUnoTunnelImplementation<SvxShape>( xShape ); if( pShape ) pShape->SetShapeType( aShapeType ); } - SvxShape *pSdShape = SvxShape::getImplementation(xShape); + SvxShape *pSdShape = comphelper::getUnoTunnelImplementation<SvxShape>(xShape); if (pSdShape) { // SdXShape aggregates SvxShape @@ -2335,7 +2335,7 @@ void SAL_CALL SdDrawPage::setMasterPage( const Reference< drawing::XDrawPage >& if(!SvxFmDrawPage::mpPage) return; - SdMasterPage* pMasterPage = SdMasterPage::getImplementation( xMasterPage ); + SdMasterPage* pMasterPage = comphelper::getUnoTunnelImplementation<SdMasterPage>( xMasterPage ); if( !(pMasterPage && pMasterPage->isValid()) ) return; @@ -2415,7 +2415,7 @@ void SAL_CALL SdDrawPage::remove( const Reference< drawing::XShape >& xShape ) throwIfDisposed(); - SvxShape* pShape = SvxShape::getImplementation( xShape ); + SvxShape* pShape = comphelper::getUnoTunnelImplementation<SvxShape>( xShape ); if( pShape ) { SdrObject* pObj = pShape->GetSdrObject(); @@ -2444,7 +2444,7 @@ void SdDrawPage::setBackground( const Any& rValue ) } // is it our own implementation? - SdUnoPageBackground* pBack = SdUnoPageBackground::getImplementation( xSet ); + SdUnoPageBackground* pBack = comphelper::getUnoTunnelImplementation<SdUnoPageBackground>( xSet ); SfxItemSet aSet( GetModel()->GetDoc()->GetPool(), svl::Items<XATTR_FILL_FIRST, XATTR_FILL_LAST>{} ); @@ -2816,7 +2816,7 @@ void SdMasterPage::setBackground( const Any& rValue ) { // first fill an item set // is it our own implementation? - SdUnoPageBackground* pBack = SdUnoPageBackground::getImplementation( xInputSet ); + SdUnoPageBackground* pBack = comphelper::getUnoTunnelImplementation<SdUnoPageBackground>( xInputSet ); SfxItemSet aSet( GetModel()->GetDoc()->GetPool(), svl::Items<XATTR_FILL_FIRST, XATTR_FILL_LAST>{} ); @@ -3024,7 +3024,7 @@ void SAL_CALL SdMasterPage::remove( const Reference< drawing::XShape >& xShape ) throwIfDisposed(); - SvxShape* pShape = SvxShape::getImplementation( xShape ); + SvxShape* pShape = comphelper::getUnoTunnelImplementation<SvxShape>( xShape ); if( pShape ) { SdrObject* pObj = pShape->GetSdrObject(); @@ -3041,7 +3041,7 @@ Reference< uno::XInterface > createUnoPageImpl( SdPage* pPage ) if( pPage ) { - SdXImpressDocument* pModel = SdXImpressDocument::getImplementation( pPage->getSdrModelFromSdrPage().getUnoModel() ); + SdXImpressDocument* pModel = comphelper::getUnoTunnelImplementation<SdXImpressDocument>( pPage->getSdrModelFromSdrPage().getUnoModel() ); if( pModel ) { if( pPage->IsMasterPage() ) diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx index ee6b482b19ab..be11e8d28a7c 100644 --- a/sd/source/ui/unoidl/unosrch.cxx +++ b/sd/source/ui/unoidl/unosrch.cxx @@ -100,7 +100,7 @@ uno::Reference< util::XReplaceDescriptor > SAL_CALL SdUnoSearchReplaceShape::cre sal_Int32 SAL_CALL SdUnoSearchReplaceShape::replaceAll( const uno::Reference< util::XSearchDescriptor >& xDesc ) { - SdUnoSearchReplaceDescriptor* pDescr = SdUnoSearchReplaceDescriptor::getImplementation( xDesc ); + SdUnoSearchReplaceDescriptor* pDescr = comphelper::getUnoTunnelImplementation<SdUnoSearchReplaceDescriptor>( xDesc ); if( pDescr == nullptr ) return 0; @@ -182,7 +182,7 @@ uno::Reference< css::util::XSearchDescriptor > SAL_CALL SdUnoSearchReplaceShape: uno::Reference< css::container::XIndexAccess > SAL_CALL SdUnoSearchReplaceShape::findAll( const css::uno::Reference< css::util::XSearchDescriptor >& xDesc ) { - SdUnoSearchReplaceDescriptor* pDescr = SdUnoSearchReplaceDescriptor::getImplementation( xDesc ); + SdUnoSearchReplaceDescriptor* pDescr = comphelper::getUnoTunnelImplementation<SdUnoSearchReplaceDescriptor>( xDesc ); if( pDescr == nullptr ) return uno::Reference< container::XIndexAccess > (); @@ -305,7 +305,7 @@ uno::Reference< drawing::XShape > SdUnoSearchReplaceShape::GetCurrentShape() co uno::Reference< css::uno::XInterface > SAL_CALL SdUnoSearchReplaceShape::findNext( const css::uno::Reference< css::uno::XInterface >& xStartAt, const css::uno::Reference< css::util::XSearchDescriptor >& xDesc ) { - SdUnoSearchReplaceDescriptor* pDescr = SdUnoSearchReplaceDescriptor::getImplementation( xDesc ); + SdUnoSearchReplaceDescriptor* pDescr = comphelper::getUnoTunnelImplementation<SdUnoSearchReplaceDescriptor>( xDesc ); uno::Reference< uno::XInterface > xFound; @@ -562,7 +562,7 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( const uno:: pConvertPara[nEndPos], pConvertPos[nEndPos] ); SvxUnoTextRange *pRange; - SvxUnoTextBase* pParent = SvxUnoTextBase::getImplementation( xParent ); + SvxUnoTextBase* pParent = comphelper::getUnoTunnelImplementation<SvxUnoTextBase>( xParent ); if(pParent) { @@ -617,7 +617,7 @@ bool SdUnoSearchReplaceShape::Search( const OUString& rText, sal_Int32& nStartPo ESelection SdUnoSearchReplaceShape::GetSelection( const uno::Reference< text::XTextRange >& xTextRange ) throw() { ESelection aSel; - SvxUnoTextRangeBase* pRange = SvxUnoTextRangeBase::getImplementation( xTextRange ); + SvxUnoTextRangeBase* pRange = comphelper::getUnoTunnelImplementation<SvxUnoTextRangeBase>( xTextRange ); if(pRange) aSel = pRange->GetSelection(); diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index a79faf8916c5..7b5a894c91f5 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -1190,7 +1190,7 @@ public: if (aDev >>= xRenderDevice) { - VCLXDevice* pDevice = VCLXDevice::getImplementation(xRenderDevice); + VCLXDevice* pDevice = comphelper::getUnoTunnelImplementation<VCLXDevice>(xRenderDevice); VclPtr< OutputDevice > pOut = pDevice ? pDevice->GetOutputDevice() : VclPtr< OutputDevice >(); mpPrinter = dynamic_cast<Printer*>(pOut.get()); |