diff options
Diffstat (limited to 'reportdesign/source/ui')
-rw-r--r-- | reportdesign/source/ui/misc/ColorListener.cxx | 5 | ||||
-rw-r--r-- | reportdesign/source/ui/report/ReportControllerObserver.cxx | 1 | ||||
-rw-r--r-- | reportdesign/source/ui/report/StartMarker.cxx | 4 |
3 files changed, 3 insertions, 7 deletions
diff --git a/reportdesign/source/ui/misc/ColorListener.cxx b/reportdesign/source/ui/misc/ColorListener.cxx index a4ec6faf4ddd..b119a1bdcc9a 100644 --- a/reportdesign/source/ui/misc/ColorListener.cxx +++ b/reportdesign/source/ui/misc/ColorListener.cxx @@ -17,7 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include "ColorListener.hxx" -#include <svl/smplhint.hxx> +#include <svl/hint.hxx> #include <vcl/settings.hxx> #include "uistrings.hrc" @@ -51,8 +51,7 @@ void OColorListener::dispose() void OColorListener::Notify(SfxBroadcaster & /*rBc*/, SfxHint const & rHint) { - const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint); - if (pSimpleHint && pSimpleHint->GetId() == SFX_HINT_COLORS_CHANGED) + if (rHint.GetId() == SFX_HINT_COLORS_CHANGED) { m_nColor = m_aExtendedColorConfig.GetColorValue(CFG_REPORTDESIGNER,m_sColorEntry).getColor(); m_nTextBoundaries = m_aColorConfig.GetColorValue(::svtools::DOCBOUNDARIES).nColor; diff --git a/reportdesign/source/ui/report/ReportControllerObserver.cxx b/reportdesign/source/ui/report/ReportControllerObserver.cxx index 801880dbb0c3..6e3dc687ba8e 100644 --- a/reportdesign/source/ui/report/ReportControllerObserver.cxx +++ b/reportdesign/source/ui/report/ReportControllerObserver.cxx @@ -23,7 +23,6 @@ #include <ReportControllerObserver.hxx> #include <ReportController.hxx> -#include <svl/smplhint.hxx> #include <osl/mutex.hxx> #include <vcl/svapp.hxx> #include <vcl/settings.hxx> diff --git a/reportdesign/source/ui/report/StartMarker.cxx b/reportdesign/source/ui/report/StartMarker.cxx index 7bbf48877a58..0e1d0f3b385b 100644 --- a/reportdesign/source/ui/report/StartMarker.cxx +++ b/reportdesign/source/ui/report/StartMarker.cxx @@ -32,7 +32,6 @@ #include <toolkit/helper/vclunohelper.hxx> #include <unotools/syslocale.hxx> -#include <svl/smplhint.hxx> #define CORNER_SPACE 5 @@ -254,8 +253,7 @@ void OStartMarker::setTitle(const OUString& _sTitle) void OStartMarker::Notify(SfxBroadcaster & rBc, SfxHint const & rHint) { OColorListener::Notify(rBc, rHint); - const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint); - if (pSimpleHint && pSimpleHint->GetId() == SFX_HINT_COLORS_CHANGED) + if (rHint.GetId() == SFX_HINT_COLORS_CHANGED) { setColor(); Invalidate(InvalidateFlags::Children); |