summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/ctrl.hxx2
-rw-r--r--starmath/inc/dialog.hxx1
-rw-r--r--starmath/source/dialog.cxx4
-rw-r--r--vcl/source/control/ctrl.cxx20
4 files changed, 10 insertions, 17 deletions
diff --git a/include/vcl/ctrl.hxx b/include/vcl/ctrl.hxx
index d33982b78da3..0f689d04ebe6 100644
--- a/include/vcl/ctrl.hxx
+++ b/include/vcl/ctrl.hxx
@@ -41,8 +41,6 @@ protected:
private:
bool mbHasControlFocus;
- bool mbFont;
- bool mbForeground;
bool mbShowAccelerator;
Link<> maGetFocusHdl;
Link<> maLoseFocusHdl;
diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx
index a34e5057b353..968d12e70664 100644
--- a/starmath/inc/dialog.hxx
+++ b/starmath/inc/dialog.hxx
@@ -327,6 +327,7 @@ class SmShowSymbol : public Control
Link<> aDblClickHdlLink;
virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle&) SAL_OVERRIDE;
+ virtual void ApplySettings(vcl::RenderContext& rRenderContext) SAL_OVERRIDE;
virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE;
virtual void Resize() SAL_OVERRIDE;
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 59a08b59d6a5..70e7f295bd90 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -1384,6 +1384,10 @@ void SmShowSymbol::Resize()
Invalidate();
}
+void SmShowSymbol::ApplySettings(vcl::RenderContext& /*rRenderContext*/ )
+{
+}
+
void SmShowSymbol::setFontSize(vcl::Font &rFont) const
{
rFont.SetSize(Size(0, GetOutputSize().Height() - GetOutputSize().Height() / 3));
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index 61a1ad787df6..6062d1a49d4d 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -36,8 +36,6 @@ using namespace vcl;
void Control::ImplInitControlData()
{
mbHasControlFocus = false;
- mbFont = false;
- mbForeground = false;
mbShowAccelerator = false;
mpControlData = new ImplControlData;
}
@@ -425,23 +423,15 @@ void Control::ApplySettings(vcl::RenderContext& rRenderContext)
{
const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings();
- if (mbFont)
- {
- vcl::Font rFont(GetCanonicalFont(rStyleSettings));
- ApplyControlFont(rRenderContext, rFont);
- }
+ vcl::Font rFont(GetCanonicalFont(rStyleSettings));
+ ApplyControlFont(rRenderContext, rFont);
- if (mbFont || mbForeground)
- {
- ApplyControlForeground(rRenderContext, GetCanonicalTextColor(rStyleSettings));
- rRenderContext.SetTextFillColor();
- }
+ ApplyControlForeground(rRenderContext, GetCanonicalTextColor(rStyleSettings));
+ rRenderContext.SetTextFillColor();
}
-void Control::ImplInitSettings(const bool _bFont, const bool _bForeground)
+void Control::ImplInitSettings(const bool, const bool)
{
- mbFont = _bFont;
- mbForeground = _bForeground;
ApplySettings(*this);
}