TextUnderlineControl.cxx (d4aefcae) TextUnderlineControl.cxx (45da7d5e)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 20 unchanged lines hidden (view full) ---

29#include <editeng/kernitem.hxx>
30#include <sfx2/bindings.hxx>
31#include <sfx2/dispatch.hxx>
32#include <sfx2/sidebar/Theme.hxx>
33#include <editeng/udlnitem.hxx>
34
35namespace svx { namespace sidebar {
36
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 20 unchanged lines hidden (view full) ---

29#include <editeng/kernitem.hxx>
30#include <sfx2/bindings.hxx>
31#include <sfx2/dispatch.hxx>
32#include <sfx2/sidebar/Theme.hxx>
33#include <editeng/udlnitem.hxx>
34
35namespace svx { namespace sidebar {
36
37TextUnderlineControl::TextUnderlineControl(Window* pParent, svx::sidebar::TextPropertyPanel& rPanel)
37TextUnderlineControl::TextUnderlineControl (
38 Window* pParent,
39 svx::sidebar::TextPropertyPanel& rPanel,
40 SfxBindings* pBindings)
38: svx::sidebar::PopupControl( pParent,SVX_RES(RID_POPUPPANEL_TEXTPAGE_UNDERLINE))
39, mrTextPropertyPanel(rPanel)
41: svx::sidebar::PopupControl( pParent,SVX_RES(RID_POPUPPANEL_TEXTPAGE_UNDERLINE))
42, mrTextPropertyPanel(rPanel)
40, mpBindings(NULL)
43, mpBindings(pBindings)
41, maVSUnderline( this, SVX_RES(VS_UNDERLINE))
42, maPBOptions (this, SVX_RES(PB_OPTIONS) )
43
44, maIMGSingle (SVX_RES(IMG_SINGLE))
45, maIMGDouble (SVX_RES(IMG_DOUBLE))
46, maIMGBold (SVX_RES(IMG_BOLD2))
47, maIMGDot (SVX_RES(IMG_DOT))
48, maIMGDotBold (SVX_RES(IMG_DOT_BOLD))

--- 24 unchanged lines hidden (view full) ---

73, maIMGDashLongSel (SVX_RES(IMG_DASH_LONG_SEL))
74, maIMGDashDotSel (SVX_RES(IMG_DASH_DOT_SEL))
75, maIMGDashDotDotSel (SVX_RES(IMG_DASH_DOT_DOT_SEL))
76, maIMGWaveSel (SVX_RES(IMG_WAVE_SEL))
77
78{
79 initial();
80 FreeResource();
44, maVSUnderline( this, SVX_RES(VS_UNDERLINE))
45, maPBOptions (this, SVX_RES(PB_OPTIONS) )
46
47, maIMGSingle (SVX_RES(IMG_SINGLE))
48, maIMGDouble (SVX_RES(IMG_DOUBLE))
49, maIMGBold (SVX_RES(IMG_BOLD2))
50, maIMGDot (SVX_RES(IMG_DOT))
51, maIMGDotBold (SVX_RES(IMG_DOT_BOLD))

--- 24 unchanged lines hidden (view full) ---

76, maIMGDashLongSel (SVX_RES(IMG_DASH_LONG_SEL))
77, maIMGDashDotSel (SVX_RES(IMG_DASH_DOT_SEL))
78, maIMGDashDotDotSel (SVX_RES(IMG_DASH_DOT_DOT_SEL))
79, maIMGWaveSel (SVX_RES(IMG_WAVE_SEL))
80
81{
82 initial();
83 FreeResource();
81 mpBindings = mrTextPropertyPanel.GetBindings();
82}
83
84void TextUnderlineControl::initial()
85{
86 /*maPBOptions.SetDefBkColor(GetSettings().GetStyleSettings().GetHighContrastMode()?
87 GetSettings().GetStyleSettings().GetMenuColor():
88 sfx2::sidebar::Theme::GetColor( sfx2::sidebar::Theme::Paint_DropDownBackground ));//Color(244,245,249)//for high contract
89 maPBOptions.SetHoverBkColor(GetSettings().GetStyleSettings().GetHighContrastMode()?

--- 192 unchanged lines hidden ---
84}
85
86void TextUnderlineControl::initial()
87{
88 /*maPBOptions.SetDefBkColor(GetSettings().GetStyleSettings().GetHighContrastMode()?
89 GetSettings().GetStyleSettings().GetMenuColor():
90 sfx2::sidebar::Theme::GetColor( sfx2::sidebar::Theme::Paint_DropDownBackground ));//Color(244,245,249)//for high contract
91 maPBOptions.SetHoverBkColor(GetSettings().GetStyleSettings().GetHighContrastMode()?

--- 192 unchanged lines hidden ---