diff options
Diffstat (limited to 'sdext/source/presenter/PresenterTheme.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterTheme.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sdext/source/presenter/PresenterTheme.cxx b/sdext/source/presenter/PresenterTheme.cxx index 0777d147cff9..c052e8212cc5 100644 --- a/sdext/source/presenter/PresenterTheme.cxx +++ b/sdext/source/presenter/PresenterTheme.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 @@ -61,12 +61,12 @@ class BorderSize { public: const static sal_Int32 mnInvalidValue = -10000; - + BorderSize (void) : mnLeft(mnInvalidValue), mnTop(mnInvalidValue), mnRight(mnInvalidValue), mnBottom(mnInvalidValue) {} - + sal_Int32 mnLeft; sal_Int32 mnTop; sal_Int32 mnRight; @@ -585,7 +585,7 @@ PresenterTheme::SharedFontDescriptor PresenterTheme::GetFont ( Theme::FontContainer::const_iterator iFont (pTheme->maFontContainer.find(rsStyleName)); if (iFont != pTheme->maFontContainer.end()) return iFont->second; - + pTheme = pTheme->mpParentTheme; } } @@ -649,7 +649,7 @@ bool PresenterTheme::FontDescriptor::PrepareFont ( const double nCellSize (GetCellSizeForDesignSize(rxCanvas, mnSize)); mxFont = CreateFont(rxCanvas, nCellSize); - + return mxFont.is(); } @@ -767,7 +767,7 @@ void PresenterTheme::Theme::Read ( { rReadContext.SetBitmapSourceExtension(PresenterComponent::gsExtensionIdentifier); } - + // Background. mpBackground = PresenterBitmapContainer::LoadBitmap( mxThemeRoot, @@ -782,7 +782,7 @@ void PresenterTheme::Theme::Read ( // Pane styles. maPaneStyles.Read(rReadContext, mxThemeRoot); - + // View styles. maViewStyles.Read(rReadContext, mxThemeRoot); @@ -895,7 +895,7 @@ PresenterTheme::SharedFontDescriptor ReadContext::ReadFont ( { if ( ! rxNode.is()) return PresenterTheme::SharedFontDescriptor(); - + try { Reference<container::XHierarchicalNameAccess> xFont ( @@ -1080,7 +1080,7 @@ void PaneStyleContainer::ProcessPaneStyle( return; ::boost::shared_ptr<PaneStyle> pStyle (new PaneStyle()); - + rValues[0] >>= pStyle->msStyleName; OUString sParentStyleName; @@ -1222,7 +1222,7 @@ void ViewStyleContainer::Read ( const Reference<container::XHierarchicalNameAccess>& rxThemeRoot) { (void)rReadContext; - + Reference<container::XNameAccess> xViewStyleList ( PresenterConfigurationAccess::GetConfigurationNode( rxThemeRoot, @@ -1245,7 +1245,7 @@ void ViewStyleContainer::ProcessViewStyle( const Reference<beans::XPropertySet>& rxProperties) { ::boost::shared_ptr<ViewStyle> pStyle (new ViewStyle()); - + PresenterConfigurationAccess::GetProperty(rxProperties, A2S("StyleName")) >>= pStyle->msStyleName; @@ -1285,7 +1285,7 @@ void ViewStyleContainer::ProcessViewStyle( SharedBitmapDescriptor())); if (pBackground.get() != NULL && pBackground->GetNormalBitmap().is()) pStyle->mpBackground = pBackground; - + push_back(pStyle); } |