diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2013-04-16 02:57:41 +0000 |
---|---|---|
committer | Ariel Constenla-Haile <arielch@apache.org> | 2013-04-16 02:57:41 +0000 |
commit | 4413cf97c42cd2318bf10562715ae755dfccf104 (patch) | |
tree | 4affe0894b7d76f1bba8f9fa6f542da21edf3640 /sdext/source/presenter/PresenterTheme.cxx | |
parent | a236c27366480e4b4e5d76de300a8cc2644298e0 (diff) |
i121873 - Integrate the Presenter Screen
Notes
Notes:
prefer: ea91c7d90d74e1ca039ba669b5d3e14fa359c0fa
Diffstat (limited to 'sdext/source/presenter/PresenterTheme.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterTheme.cxx | 45 |
1 files changed, 4 insertions, 41 deletions
diff --git a/sdext/source/presenter/PresenterTheme.cxx b/sdext/source/presenter/PresenterTheme.cxx index bdeb56c4fb14..72656ec1e887 100644 --- a/sdext/source/presenter/PresenterTheme.cxx +++ b/sdext/source/presenter/PresenterTheme.cxx @@ -27,7 +27,6 @@ #include "PresenterTheme.hxx" #include "PresenterBitmapContainer.hxx" #include "PresenterCanvasHelper.hxx" -#include "PresenterComponent.hxx" #include "PresenterConfigurationAccess.hxx" #include "PresenterHelper.hxx" #include <com/sun/star/awt/Point.hpp> @@ -102,7 +101,6 @@ public: Reference<XComponentContext> mxComponentContext; Reference<rendering::XCanvas> mxCanvas; Reference<drawing::XPresenterHelper> mxPresenterHelper; - OUString msBasePath; ReadContext ( const Reference<XComponentContext>& rxContext, @@ -128,8 +126,6 @@ public: BorderSize ReadBorderSize (const Reference<container::XNameAccess>& rxNode); - void SetBitmapSourceExtension (const OUString& rsExtensionName); - private: Any GetByName ( const Reference<container::XNameAccess>& rxNode, @@ -336,7 +332,7 @@ void SAL_CALL PresenterTheme::disposing (void) PresenterConfigurationAccess aConfiguration ( mxContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString::createFromAscii("/org.openoffice.Office.PresenterScreen/"), PresenterConfigurationAccess::READ_ONLY); return aReadContext.ReadTheme(aConfiguration, msThemeName); @@ -446,7 +442,7 @@ bool PresenterTheme::ConvertToColor ( ::boost::shared_ptr<PresenterConfigurationAccess> pConfiguration ( new PresenterConfigurationAccess( mxContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString::createFromAscii("/org.openoffice.Office.PresenterScreen/"), PresenterConfigurationAccess::READ_WRITE)); // Get configuration node for the view style container of the current @@ -749,26 +745,11 @@ void PresenterTheme::Theme::Read ( mpParentTheme = rReadContext.ReadTheme(rConfiguration, sParentThemeName); } - // Read the extension that contains the bitmaps referenced in this - // theme. - OUString sBitmapSourceExtension; - if ((PresenterConfigurationAccess::GetConfigurationNode( - mxThemeRoot, A2S("BitmapSourceExtension")) >>= sBitmapSourceExtension) - && sBitmapSourceExtension.getLength()>0) - { - rReadContext.SetBitmapSourceExtension(sBitmapSourceExtension); - } - else - { - rReadContext.SetBitmapSourceExtension(PresenterComponent::gsExtensionIdentifier); - } - // Background. mpBackground = PresenterBitmapContainer::LoadBitmap( mxThemeRoot, A2S("Background"), rReadContext.mxPresenterHelper, - rReadContext.msBasePath, rReadContext.mxCanvas, SharedBitmapDescriptor()); @@ -791,8 +772,7 @@ void PresenterTheme::Theme::Read ( ? mpParentTheme->mpIconContainer : ::boost::shared_ptr<PresenterBitmapContainer>(), rReadContext.mxComponentContext, - rReadContext.mxCanvas, - rReadContext.msBasePath)); + rReadContext.mxCanvas)); // Read fonts. Reference<container::XNameAccess> xFontNode( @@ -856,8 +836,7 @@ ReadContext::ReadContext ( const Reference<rendering::XCanvas>& rxCanvas) : mxComponentContext(rxContext), mxCanvas(rxCanvas), - mxPresenterHelper(), - msBasePath() + mxPresenterHelper() { Reference<lang::XMultiComponentFactory> xFactory (rxContext->getServiceManager()); if (xFactory.is()) @@ -868,9 +847,6 @@ ReadContext::ReadContext ( rxContext), UNO_QUERY_THROW); } - - // Get base path to bitmaps. - SetBitmapSourceExtension(PresenterComponent::gsExtensionIdentifier); } @@ -1021,17 +997,6 @@ BorderSize ReadContext::ReadBorderSize (const Reference<container::XNameAccess>& } - - -void ReadContext::SetBitmapSourceExtension (const OUString& rsExtensionIdentifier) -{ - // Get base path to bitmaps. - msBasePath = PresenterComponent::GetBasePath(mxComponentContext, rsExtensionIdentifier); -} - - - - //===== PaneStyleContainer ==================================================== void PaneStyleContainer::Read ( @@ -1116,7 +1081,6 @@ void PaneStyleContainer::ProcessPaneStyle( : ::boost::shared_ptr<PresenterBitmapContainer>(), rReadContext.mxComponentContext, rReadContext.mxCanvas, - rReadContext.msBasePath, rReadContext.mxPresenterHelper)); } @@ -1275,7 +1239,6 @@ void ViewStyleContainer::ProcessViewStyle( xBackgroundNode, OUString(), rReadContext.mxPresenterHelper, - rReadContext.msBasePath, rReadContext.mxCanvas, SharedBitmapDescriptor())); if (pBackground.get() != NULL && pBackground->GetNormalBitmap().is()) |