diff options
Diffstat (limited to 'sd/source/ui/framework/factories')
17 files changed, 96 insertions, 96 deletions
diff --git a/sd/source/ui/framework/factories/BasicPaneFactory.cxx b/sd/source/ui/framework/factories/BasicPaneFactory.cxx index 07d7be7fb6f3..98c14346f032 100644 --- a/sd/source/ui/framework/factories/BasicPaneFactory.cxx +++ b/sd/source/ui/framework/factories/BasicPaneFactory.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -147,7 +147,7 @@ BasicPaneFactory::BasicPaneFactory ( BasicPaneFactory::~BasicPaneFactory (void) { } - + @@ -441,7 +441,7 @@ void SAL_CALL BasicPaneFactory::notifyConfigurationChange ( - + //===== lang::XEventListener ================================================== void SAL_CALL BasicPaneFactory::disposing ( @@ -478,7 +478,7 @@ Reference<XResource> BasicPaneFactory::CreateFrameWindowPane ( const Reference<XResourceId>& rxPaneId) { Reference<XResource> xPane; - + if (mpViewShellBase != NULL) { xPane = new FrameWindowPane(rxPaneId, mpViewShellBase->GetViewWindow()); @@ -523,12 +523,12 @@ Reference<XResource> BasicPaneFactory::CreateChildWindowPane ( pShell.reset(new LeftImpressPaneShell()); nChildWindowId = ::sd::LeftPaneImpressChildWindow::GetChildWindowId(); break; - + case LeftDrawPaneId: pShell.reset(new LeftDrawPaneShell()); nChildWindowId = ::sd::LeftPaneDrawChildWindow::GetChildWindowId(); break; - + case RightPaneId: pShell.reset(new ToolPanelPaneShell()); nChildWindowId = ::sd::ToolPanelChildWindow::GetChildWindowId(); diff --git a/sd/source/ui/framework/factories/BasicPaneFactory.hxx b/sd/source/ui/framework/factories/BasicPaneFactory.hxx index bed0dc3b5e28..9eb31177035f 100644 --- a/sd/source/ui/framework/factories/BasicPaneFactory.hxx +++ b/sd/source/ui/framework/factories/BasicPaneFactory.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -78,25 +78,25 @@ namespace sd { namespace framework { */ class BasicPaneFactory : private ::cppu::BaseMutex, - public BasicPaneFactoryInterfaceBase + public BasicPaneFactoryInterfaceBase { public: BasicPaneFactory ( const css::uno::Reference<css::uno::XComponentContext>& rxContext); virtual ~BasicPaneFactory (void); - + virtual void SAL_CALL disposing (void); - + // XInitialization - + virtual void SAL_CALL initialize( const css::uno::Sequence<css::uno::Any>& aArguments) throw (css::uno::Exception, css::uno::RuntimeException); // XResourceFactory - + virtual css::uno::Reference<css::drawing::framework::XResource> SAL_CALL createResource ( const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneId) @@ -116,7 +116,7 @@ public: // lang::XEventListener - + virtual void SAL_CALL disposing ( const css::lang::EventObject& rEventObject) throw (css::uno::RuntimeException); diff --git a/sd/source/ui/framework/factories/BasicToolBarFactory.cxx b/sd/source/ui/framework/factories/BasicToolBarFactory.cxx index 64bd39de396c..8a5b97b56433 100644 --- a/sd/source/ui/framework/factories/BasicToolBarFactory.cxx +++ b/sd/source/ui/framework/factories/BasicToolBarFactory.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -190,7 +190,7 @@ void SAL_CALL BasicToolBarFactory::disposing ( //===== XPaneFactory ========================================================== - + Reference<XResource> SAL_CALL BasicToolBarFactory::createResource ( const Reference<XResourceId>& rxToolBarId) throw (RuntimeException, IllegalArgumentException, WrappedTargetException) @@ -198,7 +198,7 @@ Reference<XResource> SAL_CALL BasicToolBarFactory::createResource ( ThrowIfDisposed(); Reference<XResource> xToolBar; - + if (rxToolBarId->getResourceURL().equals(FrameworkHelper::msViewTabBarURL)) { xToolBar = new ViewTabBar(rxToolBarId, mxController); @@ -206,7 +206,7 @@ Reference<XResource> SAL_CALL BasicToolBarFactory::createResource ( else throw lang::IllegalArgumentException(); - + return xToolBar; } diff --git a/sd/source/ui/framework/factories/BasicToolBarFactory.hxx b/sd/source/ui/framework/factories/BasicToolBarFactory.hxx index edf4c9e4044a..487bc41e005d 100644 --- a/sd/source/ui/framework/factories/BasicToolBarFactory.hxx +++ b/sd/source/ui/framework/factories/BasicToolBarFactory.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -65,18 +65,18 @@ namespace sd { namespace framework { */ class BasicToolBarFactory : protected ::cppu::BaseMutex, - public BasicToolBarFactoryInterfaceBase + public BasicToolBarFactoryInterfaceBase { public: BasicToolBarFactory ( const css::uno::Reference<com::sun::star::uno::XComponentContext>& rxContext); virtual ~BasicToolBarFactory (void); - + virtual void SAL_CALL disposing (void); - + // ToolBarFactory - + virtual css::uno::Reference<com::sun::star::drawing::framework::XResource> SAL_CALL createResource ( const css::uno::Reference< @@ -91,14 +91,14 @@ public: // XInitialization - + virtual void SAL_CALL initialize( const css::uno::Sequence<com::sun::star::uno::Any>& aArguments) throw (css::uno::Exception, css::uno::RuntimeException); - + // lang::XEventListener - + virtual void SAL_CALL disposing ( const css::lang::EventObject& rEventObject) throw (css::uno::RuntimeException); diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx index 917081e48f5e..4e7a33a44644 100644 --- a/sd/source/ui/framework/factories/BasicViewFactory.cxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -155,7 +155,7 @@ BasicViewFactory::BasicViewFactory ( BasicViewFactory::~BasicViewFactory (void) { } - + @@ -174,7 +174,7 @@ void SAL_CALL BasicViewFactory::disposing (void) { ReleaseView(*iView, true); } - + // Release the view shell container. At this point no one other than us // should hold references to the view shells (at the moment this is a // trivial requirement, because no one other then us holds a shared @@ -217,10 +217,10 @@ Reference<XResource> SAL_CALL BasicViewFactory::createResource ( pWindow = VCLUnoHelper::GetWindow(xPane->getWindow()); // Get the view frame. - SfxViewFrame* pFrame = NULL; + SfxViewFrame* pFrame = NULL; if (mpBase != NULL) pFrame = mpBase->GetViewFrame(); - + if (pFrame != NULL && mpBase!=NULL && pWindow!=NULL) { // Try to get the view from the cache. @@ -231,7 +231,7 @@ Reference<XResource> SAL_CALL BasicViewFactory::createResource ( { pDescriptor = CreateView(rxViewId, *pFrame, *pWindow, xPane, pFrameView); } - + if (pDescriptor.get() != NULL) xView = pDescriptor->mxView; @@ -242,7 +242,7 @@ Reference<XResource> SAL_CALL BasicViewFactory::createResource ( else pWindow->Resize(); } - + return xView; } @@ -356,14 +356,14 @@ void SAL_CALL BasicViewFactory::initialize (const Sequence<Any>& aArguments) FrameView* pFrameView) { ::boost::shared_ptr<ViewDescriptor> pDescriptor (new ViewDescriptor()); - + pDescriptor->mpViewShell = CreateViewShell( rxViewId, rFrame, rWindow, pFrameView); pDescriptor->mxViewId = rxViewId; - + if (pDescriptor->mpViewShell.get() != NULL) { const bool bIsCenterPane ( @@ -478,7 +478,7 @@ void BasicViewFactory::ReleaseView ( bool bDoNotCache) { bool bIsCacheable (!bDoNotCache && IsCacheable(rpDescriptor)); - + if (bIsCacheable) { Reference<XRelocatableResource> xResource (rpDescriptor->mxView, UNO_QUERY); @@ -498,14 +498,14 @@ void BasicViewFactory::ReleaseView ( bIsCacheable = false; } } - + if ( ! bIsCacheable) { // Shut down the current view shell. rpDescriptor->mpViewShell->Shutdown (); mpBase->GetDocShell()->Disconnect(rpDescriptor->mpViewShell.get()); mpBase->GetViewShellManager()->DeactivateViewShell(rpDescriptor->mpViewShell.get()); - + Reference<XComponent> xComponent (rpDescriptor->mxView, UNO_QUERY); if (xComponent.is()) xComponent->dispose(); @@ -583,7 +583,7 @@ bool BasicViewFactory::IsCacheable (const ::boost::shared_ptr<ViewDescriptor>& r if (xResource->relocateToAnchor(xNewAnchor)) bRelocationSuccessfull = true; } - + if ( ! bRelocationSuccessfull) { ReleaseView(pDescriptor, true); diff --git a/sd/source/ui/framework/factories/BasicViewFactory.hxx b/sd/source/ui/framework/factories/BasicViewFactory.hxx index f7ab37c5a4fb..ef85c8f4ec63 100644 --- a/sd/source/ui/framework/factories/BasicViewFactory.hxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -82,16 +82,16 @@ namespace sd { namespace framework { */ class BasicViewFactory : private sd::MutexOwner, - public BasicViewFactoryInterfaceBase + public BasicViewFactoryInterfaceBase { public: BasicViewFactory ( const css::uno::Reference<css::uno::XComponentContext>& rxContext); virtual ~BasicViewFactory (void); - + virtual void SAL_CALL disposing (void); - + // XViewFactory virtual css::uno::Reference<css::drawing::framework::XResource> @@ -103,9 +103,9 @@ public: const css::uno::Reference<css::drawing::framework::XResource>& xView) throw(css::uno::RuntimeException); - + // XInitialization - + virtual void SAL_CALL initialize( const css::uno::Sequence<css::uno::Any>& aArguments) throw (css::uno::Exception, css::uno::RuntimeException); @@ -131,7 +131,7 @@ private: ::Window& rWindow, const css::uno::Reference<css::drawing::framework::XPane>& rxPane, FrameView* pFrameView); - + ::boost::shared_ptr<ViewShell> CreateViewShell ( const css::uno::Reference<css::drawing::framework::XResourceId>& rxViewId, SfxViewFrame& rFrame, diff --git a/sd/source/ui/framework/factories/ChildWindowPane.cxx b/sd/source/ui/framework/factories/ChildWindowPane.cxx index fc0be98867e0..f5b2ed3bb6f2 100644 --- a/sd/source/ui/framework/factories/ChildWindowPane.cxx +++ b/sd/source/ui/framework/factories/ChildWindowPane.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -147,7 +147,7 @@ void SAL_CALL ChildWindowPane::disposing (void) if (mxWindow.is()) // Window already exists => nothing to do. break; - + // When the window is not yet present then obtain it only when the // shell has already been activated. The activation is not // necessary for the code to work properly but is used to optimize @@ -157,7 +157,7 @@ void SAL_CALL ChildWindowPane::disposing (void) // Impress takes longer. if ( ! mbHasBeenActivated && mpShell.get()!=NULL && ! mpShell->IsActive()) break; - + mbHasBeenActivated = true; SfxViewFrame* pViewFrame = mrViewShellBase.GetViewFrame(); if (pViewFrame == NULL) @@ -194,7 +194,7 @@ void SAL_CALL ChildWindowPane::disposing (void) // At last, we have access to the window and its UNO wrapper. mpWindow = &pDockingWindow->GetContentWindow(); mxWindow = VCLUnoHelper::GetInterface(mpWindow); - + // Register as window listener to be informed when the child window // is hidden. if (mxWindow.is()) @@ -219,11 +219,11 @@ Reference<awt::XWindow> SAL_CALL ChildWindowPane::getWindow (void) IMPLEMENT_FORWARD_XINTERFACE2( - ChildWindowPane, + ChildWindowPane, ChildWindowPaneInterfaceBase, Pane); IMPLEMENT_FORWARD_XTYPEPROVIDER2( - ChildWindowPane, + ChildWindowPane, ChildWindowPaneInterfaceBase, Pane); @@ -236,7 +236,7 @@ void SAL_CALL ChildWindowPane::disposing (const lang::EventObject& rEvent) throw (RuntimeException) { ThrowIfDisposed(); - + if (rEvent.Source == mxWindow) { // The window is gone but the pane remains alive. The next call to diff --git a/sd/source/ui/framework/factories/ChildWindowPane.hxx b/sd/source/ui/framework/factories/ChildWindowPane.hxx index ecfcfd87e079..e1cc5629b6e0 100644 --- a/sd/source/ui/framework/factories/ChildWindowPane.hxx +++ b/sd/source/ui/framework/factories/ChildWindowPane.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -109,7 +109,7 @@ private: USHORT mnChildWindowId; ViewShellBase& mrViewShellBase; ::std::auto_ptr<SfxShell> mpShell; - + /** This flag is set when the pane shell has been activated at least once. It is used to optimize the start-up performance (by not showing the window too early) and by not delaying its creation at diff --git a/sd/source/ui/framework/factories/FrameWindowPane.cxx b/sd/source/ui/framework/factories/FrameWindowPane.cxx index a3d8f1ee64d8..436f32870bb4 100644 --- a/sd/source/ui/framework/factories/FrameWindowPane.cxx +++ b/sd/source/ui/framework/factories/FrameWindowPane.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sd/source/ui/framework/factories/FrameWindowPane.hxx b/sd/source/ui/framework/factories/FrameWindowPane.hxx index 5afcb4373d94..c8ea711ad9ed 100644 --- a/sd/source/ui/framework/factories/FrameWindowPane.hxx +++ b/sd/source/ui/framework/factories/FrameWindowPane.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/sd/source/ui/framework/factories/FullScreenPane.cxx b/sd/source/ui/framework/factories/FullScreenPane.cxx index a6135cca94f0..1dd6a8b20887 100644 --- a/sd/source/ui/framework/factories/FullScreenPane.cxx +++ b/sd/source/ui/framework/factories/FullScreenPane.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -69,7 +69,7 @@ FullScreenPane::FullScreenPane ( sal_Int32 nScreenNumber = 1; ExtractArguments(rxPaneId, nScreenNumber); - + if (mpWorkWindow.get() == NULL) return; @@ -135,8 +135,8 @@ void SAL_CALL FullScreenPane::disposing (void) mpWorkWindow->RemoveEventListener(aWindowEventHandler); mpWorkWindow.reset(); } - - + + FrameWindowPane::disposing(); } @@ -192,7 +192,7 @@ void SAL_CALL FullScreenPane::setAccessible ( throw (RuntimeException) { ThrowIfDisposed(); - + if (mpWindow != NULL) { Reference<lang::XInitialization> xInitializable (rxAccessible, UNO_QUERY); @@ -243,14 +243,14 @@ Reference<rendering::XCanvas> FullScreenPane::CreateCanvas (void) if (pWindow != NULL) { Sequence<Any> aArg (5); - + // common: first any is VCL pointer to window (for VCL canvas) aArg[0] = makeAny(reinterpret_cast<sal_Int64>(pWindow)); aArg[1] = Any(); aArg[2] = makeAny(::com::sun::star::awt::Rectangle()); aArg[3] = makeAny(sal_False); aArg[4] = makeAny(mxWindow); - + Reference<lang::XMultiServiceFactory> xFactory ( mxComponentContext->getServiceManager(), UNO_QUERY_THROW); return Reference<rendering::XCanvas>( diff --git a/sd/source/ui/framework/factories/FullScreenPane.hxx b/sd/source/ui/framework/factories/FullScreenPane.hxx index 1d3d65d83764..f15ba2680b64 100644 --- a/sd/source/ui/framework/factories/FullScreenPane.hxx +++ b/sd/source/ui/framework/factories/FullScreenPane.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -82,7 +82,7 @@ public: const cssu::Reference<css::accessibility::XAccessible>& rxAccessible) throw (cssu::RuntimeException); - + //------------------------------------------------------------------------- DECL_LINK(WindowEventHandler, VclWindowEvent*); diff --git a/sd/source/ui/framework/factories/Pane.cxx b/sd/source/ui/framework/factories/Pane.cxx index aef8527a0429..c0f1d5edb491 100644 --- a/sd/source/ui/framework/factories/Pane.cxx +++ b/sd/source/ui/framework/factories/Pane.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -87,7 +87,7 @@ void Pane::disposing (void) //----- XPane ----------------------------------------------------------------- - + Reference<awt::XWindow> SAL_CALL Pane::getWindow (void) throw (RuntimeException) { @@ -107,7 +107,7 @@ Reference<rendering::XCanvas> SAL_CALL Pane::getCanvas (void) if ( ! mxCanvas.is()) mxCanvas = CreateCanvas(); - + return mxCanvas; } @@ -216,7 +216,7 @@ const Sequence<sal_Int8>& Pane::getUnoTunnelId (void) sal_Int64 SAL_CALL Pane::getSomething (const Sequence<sal_Int8>& rId) throw (RuntimeException) -{ +{ sal_Int64 nResult = 0; if (rId.getLength() == 16 @@ -237,7 +237,7 @@ Reference<rendering::XCanvas> Pane::CreateCanvas (void) throw (RuntimeException) { Reference<rendering::XCanvas> xCanvas; - + if (mpWindow != NULL) { ::cppcanvas::SpriteCanvasSharedPtr pCanvas ( @@ -245,7 +245,7 @@ Reference<rendering::XCanvas> Pane::CreateCanvas (void) if (pCanvas.get() != NULL) xCanvas = Reference<rendering::XCanvas>(pCanvas->getUNOSpriteCanvas(), UNO_QUERY); } - + return xCanvas; } diff --git a/sd/source/ui/framework/factories/PresentationFactory.cxx b/sd/source/ui/framework/factories/PresentationFactory.cxx index b3ecd378d8de..2992903e86a5 100644 --- a/sd/source/ui/framework/factories/PresentationFactory.cxx +++ b/sd/source/ui/framework/factories/PresentationFactory.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -62,9 +62,9 @@ public: virtual ~PresentationFactoryProvider (void); virtual void SAL_CALL disposing (void); - + // XInitialization - + virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence<com::sun::star::uno::Any>& aArguments) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); @@ -96,7 +96,7 @@ public: virtual sal_Bool SAL_CALL isAnchorOnly (void) throw (RuntimeException) { return false; } - + private: Reference<XResourceId> mxResourceId; }; @@ -168,7 +168,7 @@ PresentationFactory::PresentationFactory ( PresentationFactory::~PresentationFactory (void) { } - + @@ -232,7 +232,7 @@ void SAL_CALL PresentationFactory::notifyConfigurationChange ( - + //===== lang::XEventListener ================================================== void SAL_CALL PresentationFactory::disposing ( @@ -291,7 +291,7 @@ void PresentationFactoryProvider::disposing (void) // XInitialization - + void SAL_CALL PresentationFactoryProvider::initialize( const Sequence<Any>& aArguments) throw (Exception, RuntimeException) diff --git a/sd/source/ui/framework/factories/TaskPanelFactory.cxx b/sd/source/ui/framework/factories/TaskPanelFactory.cxx index 296697699151..471709770195 100644 --- a/sd/source/ui/framework/factories/TaskPanelFactory.cxx +++ b/sd/source/ui/framework/factories/TaskPanelFactory.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -83,13 +83,13 @@ typedef ::cppu::WeakComponentImplHelper1 < class TaskPanelResource : private ::cppu::BaseMutex, - public TaskPanelResourceInterfaceBase + public TaskPanelResourceInterfaceBase { public: TaskPanelResource ( const Reference<XResourceId>& rxResourceId ); virtual ~TaskPanelResource (); - + virtual void SAL_CALL disposing (); // XResource @@ -135,9 +135,9 @@ void SAL_CALL TaskPanelFactory::disposing (void) - + //===== XInitialization ======================================================= - + void SAL_CALL TaskPanelFactory::initialize( const ::com::sun::star::uno::Sequence<com::sun::star::uno::Any>& aArguments) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) @@ -206,7 +206,7 @@ Reference<XResource> SAL_CALL TaskPanelFactory::createResource ( throw (RuntimeException, IllegalArgumentException, WrappedTargetException) { Reference<XResource> xResource; - + if ( ! rxResourceId.is()) return NULL; @@ -215,7 +215,7 @@ Reference<XResource> SAL_CALL TaskPanelFactory::createResource ( if ( sResourceURL.match( FrameworkHelper::msTaskPanelURLPrefix ) ) { toolpanel::PanelId ePanelId( toolpanel::GetStandardPanelId( sResourceURL ) ); - + if ( ( ePanelId != toolpanel::PID_UNKNOWN ) && ( mpViewShellBase != NULL ) ) { ::boost::shared_ptr< FrameworkHelper > pFrameworkHelper( FrameworkHelper::Instance( *mpViewShellBase ) ); diff --git a/sd/source/ui/framework/factories/TaskPanelFactory.hxx b/sd/source/ui/framework/factories/TaskPanelFactory.hxx index d1eb0bb7a0ae..d316bb927a2d 100644 --- a/sd/source/ui/framework/factories/TaskPanelFactory.hxx +++ b/sd/source/ui/framework/factories/TaskPanelFactory.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -58,18 +58,18 @@ namespace sd { namespace framework { */ class TaskPanelFactory : private ::cppu::BaseMutex, - public TaskPanelFactoryInterfaceBase + public TaskPanelFactoryInterfaceBase { public: TaskPanelFactory ( const css::uno::Reference<css::uno::XComponentContext>& rxContext); virtual ~TaskPanelFactory (void); - + virtual void SAL_CALL disposing (void); - + // XInitialization - + virtual void SAL_CALL initialize( const css::uno::Sequence<css::uno::Any>& aArguments) throw (css::uno::Exception, css::uno::RuntimeException); diff --git a/sd/source/ui/framework/factories/ViewShellWrapper.cxx b/sd/source/ui/framework/factories/ViewShellWrapper.cxx index 465e2b3640d8..f123b8b1ff08 100644 --- a/sd/source/ui/framework/factories/ViewShellWrapper.cxx +++ b/sd/source/ui/framework/factories/ViewShellWrapper.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -84,7 +84,7 @@ ViewShellWrapper::ViewShellWrapper ( ViewShellWrapper::~ViewShellWrapper (void) { } - + @@ -150,7 +150,7 @@ sal_Bool SAL_CALL ViewShellWrapper::relocateToAnchor ( if (xWindow.is()) xWindow->removeWindowListener(this); mxWindow = NULL; - + if (mpViewShell.get() != NULL) { ::Window* pWindow = VCLUnoHelper::GetWindow(xPane->getWindow()); @@ -198,7 +198,7 @@ const Sequence<sal_Int8>& ViewShellWrapper::getUnoTunnelId (void) sal_Int64 SAL_CALL ViewShellWrapper::getSomething (const Sequence<sal_Int8>& rId) throw (RuntimeException) -{ +{ sal_Int64 nResult = 0; if (rId.getLength() == 16 @@ -232,7 +232,7 @@ void SAL_CALL ViewShellWrapper::windowMoved (const awt::WindowEvent& rEvent) { (void)rEvent; } - + @@ -244,7 +244,7 @@ void SAL_CALL ViewShellWrapper::windowShown (const lang::EventObject& rEvent) if (pViewShell != NULL) pViewShell->Resize(); } - + |