Kaydet (Commit) bc46764f authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky Kaydeden (comit) Caolán McNamara

Sidebar Text panel cleanup

Change-Id: I6cbf5a9e5ad9d61df2abbcc835ba60d45768deeb
Reviewed-on: https://gerrit.libreoffice.org/7687Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 6733fdab
...@@ -22,11 +22,6 @@ ...@@ -22,11 +22,6 @@
#include <svtools/ctrlbox.hxx> #include <svtools/ctrlbox.hxx>
#include <svtools/ctrltool.hxx> #include <svtools/ctrltool.hxx>
namespace svx
{
class ToolboxButtonColorUpdater;
}
namespace svx { namespace sidebar { namespace svx { namespace sidebar {
class SvxSBFontNameBox : public FontNameBox//, public SfxListener class SvxSBFontNameBox : public FontNameBox//, public SfxListener
......
...@@ -67,10 +67,6 @@ ...@@ -67,10 +67,6 @@
#define STR_WITHOUT 50 #define STR_WITHOUT 50
//popup window font color
#define VS_FONT_COLOR 1
#define STR_AUTOMATICE 2
//POPUP WINDOW OF SPACING //POPUP WINDOW OF SPACING
#define VS_SPACING 1 #define VS_SPACING 1
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include <sfx2/sidebar/EnumContext.hxx> #include <sfx2/sidebar/EnumContext.hxx>
#include <svtools/ctrlbox.hxx> #include <svtools/ctrlbox.hxx>
#include <svx/tbxcolorupdate.hxx>
#include <editeng/svxenum.hxx>
#include <editeng/fhgtitem.hxx> #include <editeng/fhgtitem.hxx>
#include <com/sun/star/ui/XSidebar.hpp> #include <com/sun/star/ui/XSidebar.hpp>
...@@ -35,7 +33,6 @@ ...@@ -35,7 +33,6 @@
#include <boost/scoped_ptr.hpp> #include <boost/scoped_ptr.hpp>
#include "TextCharacterSpacingPopup.hxx" #include "TextCharacterSpacingPopup.hxx"
#include "TextUnderlinePopup.hxx" #include "TextUnderlinePopup.hxx"
#include <svx/sidebar/ColorPopup.hxx>
#include <svx/sidebar/PanelLayout.hxx> #include <svx/sidebar/PanelLayout.hxx>
#include <vcl/vclenum.hxx> #include <vcl/vclenum.hxx>
...@@ -69,7 +66,6 @@ public: ...@@ -69,7 +66,6 @@ public:
void EndUnderlinePopupMode (void); void EndUnderlinePopupMode (void);
void SetUnderline(FontUnderline eUnderline); void SetUnderline(FontUnderline eUnderline);
Color& GetUnderlineColor(); Color& GetUnderlineColor();
void SetDefaultUnderline(FontUnderline eUnderline);
virtual void HandleContextChange ( virtual void HandleContextChange (
...@@ -95,36 +91,16 @@ private: ...@@ -95,36 +91,16 @@ private:
//control items //control items
::sfx2::sidebar::ControllerItem maFontNameControl; ::sfx2::sidebar::ControllerItem maFontNameControl;
::sfx2::sidebar::ControllerItem maFontSizeControl; ::sfx2::sidebar::ControllerItem maFontSizeControl;
::sfx2::sidebar::ControllerItem maWeightControl;
::sfx2::sidebar::ControllerItem maItalicControl;
::sfx2::sidebar::ControllerItem maUnderlineControl; ::sfx2::sidebar::ControllerItem maUnderlineControl;
::sfx2::sidebar::ControllerItem maStrikeControl;
::sfx2::sidebar::ControllerItem maShadowControl;
::sfx2::sidebar::ControllerItem maScriptControlSw;
::sfx2::sidebar::ControllerItem maSuperScriptControl;
::sfx2::sidebar::ControllerItem maSubScriptControl;
::sfx2::sidebar::ControllerItem maSpacingControl; ::sfx2::sidebar::ControllerItem maSpacingControl;
::sfx2::sidebar::ControllerItem maSDFontGrow;
::sfx2::sidebar::ControllerItem maSDFontShrink;
FontWeight meWeight;
FontItalic meItalic;
FontUnderline meUnderline; FontUnderline meUnderline;
Color meUnderlineColor; Color meUnderlineColor;
bool mbShadow;
FontStrikeout meStrike;
bool mbWeightAvailable;
bool mbPostureAvailable;
SvxEscapement meEscape; //for sw
bool mbSuper;
bool mbSub;
bool mbKernAvailable; bool mbKernAvailable;
bool mbKernLBAvailable; bool mbKernLBAvailable;
long mlKerning; long mlKerning;
SvxFontHeightItem* mpHeightItem; SvxFontHeightItem* mpHeightItem;
const FontList* mpFontList;
bool mbMustDelete;
bool mbFocusOnFontSizeCtrl; bool mbFocusOnFontSizeCtrl;
TextCharacterSpacingPopup maCharSpacePopup; TextCharacterSpacingPopup maCharSpacePopup;
TextUnderlinePopup maUnderlinePopup; TextUnderlinePopup maUnderlinePopup;
...@@ -148,8 +124,6 @@ private: ...@@ -148,8 +124,6 @@ private:
void Initialize (void); void Initialize (void);
void SetupToolboxItems (void); void SetupToolboxItems (void);
void InitToolBoxFont(); void InitToolBoxFont();
void InitToolBoxIncDec();
void InitToolBoxScript();
void InitToolBoxSpacing(); void InitToolBoxSpacing();
DECL_LINK(FontSelHdl, FontNameBox *); DECL_LINK(FontSelHdl, FontNameBox *);
...@@ -157,19 +131,8 @@ private: ...@@ -157,19 +131,8 @@ private:
DECL_LINK(FontSizeSelHdl, FontSizeBox *); DECL_LINK(FontSizeSelHdl, FontSizeBox *);
DECL_LINK(FontSizeLoseFocus, FontSizeBox *); DECL_LINK(FontSizeLoseFocus, FontSizeBox *);
DECL_LINK(ToolboxFontSelectHandler, ToolBox *); DECL_LINK(ToolboxFontSelectHandler, ToolBox *);
DECL_LINK(ToolboxIncDecSelectHdl, ToolBox *);
DECL_LINK(ToolBoxScriptSelectHdl, ToolBox *);
void UpdateItem (const sal_uInt16 nSlotId); void UpdateFontColorToolbox (bool bWriterText);
/** Depending on the given context make one of the toolboxes
mpToolBoxFontColor and mpToolBoxFontColorSW visible. Both
occupy the same space.
*/
void UpdateFontColorToolbox (
const ::sfx2::sidebar::EnumContext aContext);
bool isWriter();
}; };
} } // end of namespace ::svx::sidebar } } // end of namespace ::svx::sidebar
......
...@@ -180,28 +180,6 @@ Control RID_POPUPPANEL_TEXTPAGE_UNDERLINE ...@@ -180,28 +180,6 @@ Control RID_POPUPPANEL_TEXTPAGE_UNDERLINE
}; };
Control RID_POPUPPANEL_TEXTPAGE_FONT_COLOR
{
OutputSize = TRUE;
DialogControl = TRUE;
Border = FALSE;
Size = MAP_APPFONT( POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT );
Control VS_FONT_COLOR
{
HelpID = HID_PPROPERTYPANEL_TEXT_COLOR_VS;
Hide = TRUE ;
Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
Size = MAP_APPFONT ( POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
TabStop = TRUE ;
Text = "Color Picker";
};
String STR_AUTOMATICE
{
Text [ en-US ] = "Automatic";
};
};
Control RID_POPUPPANEL_TEXTPAGE_SPACING Control RID_POPUPPANEL_TEXTPAGE_SPACING
{ {
OutputSize = TRUE; OutputSize = TRUE;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <svx/dialogs.hrc> #include <svx/dialogs.hrc>
#include <svx/dialmgr.hxx> #include <svx/dialmgr.hxx>
#include <unotools/viewoptions.hxx> #include <unotools/viewoptions.hxx>
#include <editeng/kernitem.hxx>
#include <sfx2/bindings.hxx> #include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx> #include <sfx2/dispatch.hxx>
#include <sfx2/sidebar/Theme.hxx> #include <sfx2/sidebar/Theme.hxx>
......
...@@ -27,7 +27,7 @@ TextUnderlinePopup::TextUnderlinePopup ( ...@@ -27,7 +27,7 @@ TextUnderlinePopup::TextUnderlinePopup (
: Popup( : Popup(
pParent, pParent,
rControlCreator, rControlCreator,
OUString( "Character Spacing")) OUString( "Underline"))
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment