diff options
Diffstat (limited to 'reportdesign/source/ui/report/FixedTextColor.cxx')
-rw-r--r-- | reportdesign/source/ui/report/FixedTextColor.cxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/reportdesign/source/ui/report/FixedTextColor.cxx b/reportdesign/source/ui/report/FixedTextColor.cxx index 67c6829b75ec..659fc4a32fdd 100644 --- a/reportdesign/source/ui/report/FixedTextColor.cxx +++ b/reportdesign/source/ui/report/FixedTextColor.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 @@ -73,7 +73,7 @@ namespace rptui // { // const StyleSettings& aStyleSettings = Application::GetSettings().GetStyleSettings(); // BOOL bHighContrast = aStyleSettings.GetHighContrastMode(); - // + // // Color aGetFaceColor = aStyleSettings.GetFaceColor(); // Color aGetCheckedColor = aStyleSettings.GetCheckedColor(); // Color aGetLightColor = aStyleSettings.GetLightColor(); @@ -118,11 +118,11 @@ namespace rptui // Color aGetHighlightLinkColor = aStyleSettings.GetHighlightLinkColor(); // Color aGetMonoColor = aStyleSettings.GetMonoColor(); // Color aGetActiveTabColor = aStyleSettings.GetActiveTabColor(); - // Color aGetInactiveTabColor = aStyleSettings.GetInactiveTabColor(); - // + // Color aGetInactiveTabColor = aStyleSettings.GetInactiveTabColor(); + // // Color aWindowColor = aStyleSettings.GetWindowColor(); // Color aLabelColor = aStyleSettings.GetLabelTextColor(); - // + // // // if (m_nTextColor == -1) // // { // // svtools::ExtendedColorConfig aConfig; @@ -130,14 +130,14 @@ namespace rptui // // } // return aLabelColor.GetColor(); // } - + //-------------------------------------------------------------------- FixedTextColor::~FixedTextColor() { DBG_DTOR(rpt_FixedTextColor,NULL); } // ----------------------------------------------------------------------------- - + void FixedTextColor::notifyPropertyChange( const beans::PropertyChangeEvent& _rEvent ) { // (void)_rEvent; @@ -160,7 +160,7 @@ namespace rptui DBG_UNHANDLED_EXCEPTION(); } } - + // ----------------------------------------------------------------------------- void FixedTextColor::setPropertyTextColor(const uno::Reference< awt::XVclWindowPeer >& _xVclWindowPeer, sal_Int32 _nTextColor) { @@ -172,7 +172,7 @@ namespace rptui { handle(_rxElement); } - + // ----------------------------------------------------------------------------- void FixedTextColor::handle( const uno::Reference< uno::XInterface >& _rxElement ) { @@ -188,9 +188,9 @@ namespace rptui sal_Bool bIsDark = sal_False; const sal_Int32 nBackColor( xFixedText->getControlBackground() ); if ((sal_uInt32)nBackColor == COL_TRANSPARENT) - { + { uno::Reference <report::XSection> xSection(xFixedText->getParent(), uno::UNO_QUERY_THROW); - + sal_Bool bSectionBackColorIsTransparent = xSection->getBackTransparent(); if (bSectionBackColorIsTransparent) { @@ -210,8 +210,8 @@ namespace rptui { Color aLabelBackColor(nBackColor); bIsDark = aLabelBackColor.IsDark(); - } - + } + uno::Reference<awt::XVclWindowPeer> xVclWindowPeer = getVclWindowPeer(xFixedText); if (bIsDark) { @@ -224,25 +224,25 @@ namespace rptui util::Color aLabelColor = xFixedText->getCharColor(); setPropertyTextColor(xVclWindowPeer, aLabelColor); } - + } catch( const uno::Exception& ) { DBG_UNHANDLED_EXCEPTION(); } } - + // ----------------------------------------------------------------------------- // XPropertyChangeListener uno::Reference<awt::XControl> FixedTextColor::getXControl(const uno::Reference< report::XFixedText >& _xFixedText) throw(uno::RuntimeException) { - + uno::Reference<awt::XControl> xControl; OReportController *pController = (OReportController *)&m_rReportController; - + ::boost::shared_ptr<OReportModel> pModel = pController->getSdrModel(); - + uno::Reference<report::XSection> xSection(_xFixedText->getSection()); if ( xSection.is() ) { @@ -266,7 +266,7 @@ namespace rptui } return xControl; } - + // ----------------------------------------------------------------------------- uno::Reference<awt::XVclWindowPeer> FixedTextColor::getVclWindowPeer(const uno::Reference< report::XFixedText >& _xComponent) throw(uno::RuntimeException) { @@ -280,7 +280,7 @@ namespace rptui - + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |