Kaydet (Commit) d0d5b97d authored tarafından Andre Fischer's avatar Andre Fischer Kaydeden (comit) Michael Meeks

Resolves: #i122230# Fixed focus traveling in the sidebar

(cherry picked from commit bab3ddce)

Conflicts:
	sfx2/source/sidebar/FocusManager.cxx

Change-Id: I8853a92da3c4fe41a0110c630cc6af556ffc2ce4
üst 7f62fc9c
...@@ -260,6 +260,39 @@ void Deck::RequestLayout (void) ...@@ -260,6 +260,39 @@ void Deck::RequestLayout (void)
void Deck::ShowPanel (const Panel& rPanel)
{
if (mpVerticalScrollBar && mpVerticalScrollBar->IsVisible())
{
// Get vertical extent of the panel.
sal_Int32 nPanelTop (rPanel.GetPosPixel().Y());
const sal_Int32 nPanelBottom (nPanelTop + rPanel.GetSizePixel().Height() - 1);
// Add the title bar into the extent.
if (rPanel.GetTitleBar() != NULL && rPanel.GetTitleBar()->IsVisible())
nPanelTop = rPanel.GetTitleBar()->GetPosPixel().Y();
// Determine what the new thumb position should be like.
// When the whole panel does not fit then make its top visible
// and it off at the bottom.
sal_Int32 nNewThumbPos (mpVerticalScrollBar->GetThumbPos());
if (nPanelBottom >= nNewThumbPos+mpVerticalScrollBar->GetVisibleSize())
nNewThumbPos = nPanelBottom - mpVerticalScrollBar->GetVisibleSize();
if (nPanelTop < nNewThumbPos)
nNewThumbPos = nPanelTop;
mpVerticalScrollBar->SetThumbPos(nNewThumbPos);
mpScrollContainer->SetPosPixel(
Point(
mpScrollContainer->GetPosPixel().X(),
-nNewThumbPos));
}
}
const char* GetWindowClassification (const Window* pWindow) const char* GetWindowClassification (const Window* pWindow)
{ {
const String& rsName (pWindow->GetText()); const String& rsName (pWindow->GetText());
......
...@@ -61,6 +61,12 @@ public: ...@@ -61,6 +61,12 @@ public:
void RequestLayout (void); void RequestLayout (void);
::Window* GetPanelParentWindow (void); ::Window* GetPanelParentWindow (void);
/** Try to make the panel completely visible.
When the whole panel does not fit then make its top visible
and it off at the bottom.
*/
void ShowPanel (const Panel& rPanel);
virtual void Paint (const Rectangle& rUpdateArea); virtual void Paint (const Rectangle& rUpdateArea);
virtual void DataChanged (const DataChangedEvent& rEvent); virtual void DataChanged (const DataChangedEvent& rEvent);
......
...@@ -25,17 +25,32 @@ class Button; ...@@ -25,17 +25,32 @@ class Button;
class KeyCode; class KeyCode;
class VclSimpleEvent; class VclSimpleEvent;
namespace sfx2 { namespace sidebar { namespace sfx2 { namespace sidebar {
class DeckTitleBar;
/** Concentrate all focus handling in this class. /** Concentrate all focus handling in this class.
There are two rings of windows that accept the input focus: panels
and tab bar buttons. There is one ring of windows that accept the input focus which are
Arrow keys move the focus between them. Tab moves focus between rings. cycled through with the arrow keys:
- the closer in the deck title (present only when docked)
- the panel title bars
- the tab bar items
When the focus is in a panel title then focus travels over
- the panel title
- the panel closer
- the panel content
Once the focus is in the panel content then focus cycles through
all controls inside the panel but not back to the title bar of
the panel. Escape places the focus back in the panel title.
*/ */
class FocusManager class FocusManager
{ {
public: public:
FocusManager (void); FocusManager (const ::boost::function<void(const Panel&)>& rShowPanelFunctor);
~FocusManager (void); ~FocusManager (void);
/** Forget all panels and buttons. Remove all window listeners. /** Forget all panels and buttons. Remove all window listeners.
...@@ -48,22 +63,38 @@ public: ...@@ -48,22 +63,38 @@ public:
*/ */
void GrabFocus (void); void GrabFocus (void);
/** Handle the key event that was sent to the docking window. void SetDeckTitle (DeckTitleBar* pDeckTitleBar);
*/
long NotifyDockingWindowEvent (const KeyEvent& rKeyEvent);
void SetPanels (const SharedPanelContainer& rPanels); void SetPanels (const SharedPanelContainer& rPanels);
void SetButtons (const ::std::vector<Button*>& rButtons); void SetButtons (const ::std::vector<Button*>& rButtons);
private: private:
DeckTitleBar* mpDeckTitleBar;
::std::vector<Panel*> maPanels; ::std::vector<Panel*> maPanels;
::std::vector<Button*> maButtons; ::std::vector<Button*> maButtons;
Window* mpTopLevelWindow; const ::boost::function<void(const Panel&)> maShowPanelFunctor;
enum PanelComponent
{
PC_DeckTitle,
PC_DeckToolBox,
PC_PanelTitle,
PC_PanelToolBox,
PC_PanelContent,
PC_TabBar,
PC_None
};
class FocusLocation
{
public:
PanelComponent meComponent;
sal_Int32 mnIndex;
FocusLocation (const PanelComponent eComponent, const sal_Int32 nIndex);
};
/** Listen for key events for panels and buttons. /** Listen for key events for panels and buttons.
*/ */
DECL_LINK(WindowEventListener, VclSimpleEvent*); DECL_LINK(WindowEventListener, VclSimpleEvent*);
DECL_LINK(ChildEventListener, VclSimpleEvent*);
void ClearPanels (void); void ClearPanels (void);
void ClearButtons (void); void ClearButtons (void);
...@@ -73,17 +104,17 @@ private: ...@@ -73,17 +104,17 @@ private:
*/ */
void RegisterWindow (Window& rWindow); void RegisterWindow (Window& rWindow);
void UnregisterWindow (Window& rWindow); void UnregisterWindow (Window& rWindow);
void RegisterTopLevelListener (void);
/** Remove the window from the panel or the button container. /** Remove the window from the panel or the button container.
*/ */
void RemoveWindow (Window& rWindow); void RemoveWindow (Window& rWindow);
sal_Int32 GetPanelIndex (const Window& rWindow) const;
sal_Int32 GetButtonIndex (const Window& rWindow) const;
bool IsAnyPanelFocused (void) const; bool IsAnyPanelFocused (void) const;
bool IsAnyButtonFocused (void) const; bool IsAnyButtonFocused (void) const;
void FocusDeckTitle (void);
bool IsDeckTitleVisible (void) const;
/** Set the focus to the title bar of the panel or, if the the /** Set the focus to the title bar of the panel or, if the the
title bar is not visible, directly to the panel. title bar is not visible, directly to the panel.
*/ */
...@@ -92,15 +123,15 @@ private: ...@@ -92,15 +123,15 @@ private:
void FocusButton (const sal_Int32 nButtonIndex); void FocusButton (const sal_Int32 nButtonIndex);
void ClickButton (const sal_Int32 nButtonIndex); void ClickButton (const sal_Int32 nButtonIndex);
bool MoveFocusInsidePanel ( bool MoveFocusInsidePanel (
const sal_Int32 nPanelIndex, const FocusLocation aLocation,
const sal_Int32 nDirection); const sal_Int32 nDirection);
void HandleKeyEvent ( void HandleKeyEvent (
const KeyCode& rKeyCode, const KeyCode& rKeyCode,
const Window& rWindow); const Window& rWindow);
void SetTopLevelWindow (Window* pWindow); FocusLocation GetFocusLocation (const Window& rWindow) const;
void HandleTopLevelEvent (VclWindowEvent& rEvent);
}; };
} } // end of namespace sfx2::sidebar } } // end of namespace sfx2::sidebar
......
...@@ -47,7 +47,7 @@ namespace sfx2 { namespace sidebar { ...@@ -47,7 +47,7 @@ namespace sfx2 { namespace sidebar {
Panel::Panel ( Panel::Panel (
const PanelDescriptor& rPanelDescriptor, const PanelDescriptor& rPanelDescriptor,
Window* pParentWindow, Window* pParentWindow,
const ::boost::function<void(void)>& rDeckLayoutTrigger ) const ::boost::function<void(void)>& rDeckLayoutTrigger)
: Window(pParentWindow), : Window(pParentWindow),
msPanelId(rPanelDescriptor.msId), msPanelId(rPanelDescriptor.msId),
mpTitleBar(new PanelTitleBar( mpTitleBar(new PanelTitleBar(
...@@ -63,7 +63,6 @@ Panel::Panel ( ...@@ -63,7 +63,6 @@ Panel::Panel (
SetBackground(Theme::GetPaint(Theme::Paint_PanelBackground).GetWallpaper()); SetBackground(Theme::GetPaint(Theme::Paint_PanelBackground).GetWallpaper());
#ifdef DEBUG #ifdef DEBUG
OSL_TRACE("creating Panel at %x", this);
SetText(A2S("Panel")); SetText(A2S("Panel"));
#endif #endif
} }
...@@ -73,7 +72,6 @@ Panel::Panel ( ...@@ -73,7 +72,6 @@ Panel::Panel (
Panel::~Panel (void) Panel::~Panel (void)
{ {
OSL_TRACE("destroying Panel at %x", this);
Dispose(); Dispose();
} }
......
...@@ -100,13 +100,16 @@ SidebarController::SidebarController ( ...@@ -100,13 +100,16 @@ SidebarController::SidebarController (
::boost::bind(&SidebarController::ShowPopupMenu, this, _1,_2,_3))), ::boost::bind(&SidebarController::ShowPopupMenu, this, _1,_2,_3))),
mxFrame(rxFrame), mxFrame(rxFrame),
maCurrentContext(OUString(), OUString()), maCurrentContext(OUString(), OUString()),
maRequestedContext(),
msCurrentDeckId(A2S("PropertyDeck")), msCurrentDeckId(A2S("PropertyDeck")),
msCurrentDeckTitle(),
maPropertyChangeForwarder(::boost::bind(&SidebarController::BroadcastPropertyChange, this)), maPropertyChangeForwarder(::boost::bind(&SidebarController::BroadcastPropertyChange, this)),
maContextChangeUpdate(::boost::bind(&SidebarController::UpdateConfigurations, this)), maContextChangeUpdate(::boost::bind(&SidebarController::UpdateConfigurations, this)),
mbIsDeckRequestedOpen(), mbIsDeckRequestedOpen(),
mbIsDeckOpen(), mbIsDeckOpen(),
mbCanDeckBeOpened(true), mbCanDeckBeOpened(true),
mnSavedSidebarWidth(pParentWindow->GetSizePixel().Width()), mnSavedSidebarWidth(pParentWindow->GetSizePixel().Width()),
maFocusManager(::boost::bind(&SidebarController::ShowPanel, this, _1)),
mxReadOnlyModeDispatch(), mxReadOnlyModeDispatch(),
mbIsDocumentReadOnly(false), mbIsDocumentReadOnly(false),
mpSplitWindow(NULL), mpSplitWindow(NULL),
...@@ -603,6 +606,7 @@ void SidebarController::SwitchToDeck ( ...@@ -603,6 +606,7 @@ void SidebarController::SwitchToDeck (
// Tell the focus manager about the new panels and tab bar // Tell the focus manager about the new panels and tab bar
// buttons. // buttons.
maFocusManager.SetDeckTitle(mpCurrentDeck->GetTitleBar());
maFocusManager.SetPanels(aNewPanels); maFocusManager.SetPanels(aNewPanels);
mpTabBar->UpdateFocusManager(maFocusManager); mpTabBar->UpdateFocusManager(maFocusManager);
UpdateTitleBarIcons(); UpdateTitleBarIcons();
...@@ -1154,4 +1158,13 @@ void SidebarController::UpdateTitleBarIcons (void) ...@@ -1154,4 +1158,13 @@ void SidebarController::UpdateTitleBarIcons (void)
} }
void SidebarController::ShowPanel (const Panel& rPanel)
{
if (mpCurrentDeck)
mpCurrentDeck->ShowPanel(rPanel);
}
} } // end of namespace sfx2::sidebar } } // end of namespace sfx2::sidebar
...@@ -206,6 +206,12 @@ private: ...@@ -206,6 +206,12 @@ private:
void ProcessNewWidth (const sal_Int32 nNewWidth); void ProcessNewWidth (const sal_Int32 nNewWidth);
void UpdateCloseIndicator (const bool bIsIndicatorVisible); void UpdateCloseIndicator (const bool bIsIndicatorVisible);
/** Typically called when a panel is focused via keyboard.
Tries to scroll the deck up or down to make the given panel
completely visible.
*/
void ShowPanel (const Panel& rPanel);
virtual void SAL_CALL disposing (void); virtual void SAL_CALL disposing (void);
}; };
......
...@@ -78,31 +78,6 @@ void SidebarDockingWindow::GetFocus() ...@@ -78,31 +78,6 @@ void SidebarDockingWindow::GetFocus()
long SidebarDockingWindow::PreNotify (NotifyEvent& rEvent)
{
switch (rEvent.GetType())
{
case EVENT_KEYINPUT:
{
const KeyEvent* pKeyEvent = rEvent.GetKeyEvent();
if (pKeyEvent != NULL)
return mpSidebarController->GetFocusManager().NotifyDockingWindowEvent(*pKeyEvent);
else
break;
}
case EVENT_GETFOCUS:
OSL_TRACE("");
break;
}
return SfxDockingWindow::PreNotify(rEvent);
}
SfxChildWindow* SidebarDockingWindow::GetChildWindow (void) SfxChildWindow* SidebarDockingWindow::GetChildWindow (void)
{ {
return GetChildWindow_Impl(); return GetChildWindow_Impl();
......
...@@ -48,7 +48,6 @@ public: ...@@ -48,7 +48,6 @@ public:
protected: protected:
// Window overridables // Window overridables
virtual void GetFocus (void); virtual void GetFocus (void);
virtual long PreNotify (NotifyEvent& rEvent);
private: private:
::rtl::Reference<sfx2::sidebar::SidebarController> mpSidebarController; ::rtl::Reference<sfx2::sidebar::SidebarController> mpSidebarController;
......
...@@ -150,4 +150,21 @@ void SidebarToolBox::setPosSizePixel ( ...@@ -150,4 +150,21 @@ void SidebarToolBox::setPosSizePixel (
long SidebarToolBox::Notify (NotifyEvent& rEvent)
{
if (rEvent.GetType() == EVENT_KEYINPUT)
{
if (rEvent.GetKeyEvent()->GetKeyCode().GetCode() == KEY_TAB)
{
// Special handling for transferring handling of KEY_TAB
// that becomes necessary because of our parent that is
// not the dialog but a background control.
return DockingWindow::Notify(rEvent);
}
}
return ToolBox::Notify(rEvent);
}
} } // end of namespace sfx2::sidebar } } // end of namespace sfx2::sidebar
...@@ -40,6 +40,7 @@ public: ...@@ -40,6 +40,7 @@ public:
long nWidth, long nWidth,
long nHeight, long nHeight,
sal_uInt16 nFlags); sal_uInt16 nFlags);
virtual long Notify (NotifyEvent& rEvent);
private: private:
bool mbParentIsBorder; bool mbParentIsBorder;
......
...@@ -134,6 +134,14 @@ ToolBox& TitleBar::GetToolBox (void) ...@@ -134,6 +134,14 @@ ToolBox& TitleBar::GetToolBox (void)
const ToolBox& TitleBar::GetToolBox (void) const
{
return maToolBox;
}
void TitleBar::HandleToolBoxItemClick (const sal_uInt16 nItemIndex) void TitleBar::HandleToolBoxItemClick (const sal_uInt16 nItemIndex)
{ {
(void)nItemIndex; (void)nItemIndex;
...@@ -182,6 +190,10 @@ void TitleBar::PaintFocus (const Rectangle& rFocusBox) ...@@ -182,6 +190,10 @@ void TitleBar::PaintFocus (const Rectangle& rFocusBox)
{ {
Push(PUSH_FONT | PUSH_TEXTCOLOR | PUSH_LINECOLOR | PUSH_FILLCOLOR); Push(PUSH_FONT | PUSH_TEXTCOLOR | PUSH_LINECOLOR | PUSH_FILLCOLOR);
Font aFont(GetFont());
aFont.SetWeight(WEIGHT_BOLD);
SetFont(aFont);
const Rectangle aTextBox ( const Rectangle aTextBox (
GetTextRect( GetTextRect(
rFocusBox, rFocusBox,
......
...@@ -49,6 +49,7 @@ public: ...@@ -49,6 +49,7 @@ public:
sal_uInt16 nFlags = WINDOW_POSSIZE_ALL); sal_uInt16 nFlags = WINDOW_POSSIZE_ALL);
ToolBox& GetToolBox (void); ToolBox& GetToolBox (void);
const ToolBox& GetToolBox (void) const;
protected: protected:
ToolBox maToolBox; ToolBox maToolBox;
......
...@@ -1548,18 +1548,22 @@ ParaPropertyPanel::ParaPropertyPanel(Window* pParent, ...@@ -1548,18 +1548,22 @@ ParaPropertyPanel::ParaPropertyPanel(Window* pParent,
maFTUL (new FixedText(this, SVX_RES(FT_SPACING))), maFTUL (new FixedText(this, SVX_RES(FT_SPACING))),
maTbxUL_IncDecBackground(ControlFactory::CreateToolBoxBackground(this)), maTbxUL_IncDecBackground(ControlFactory::CreateToolBoxBackground(this)),
maTbxUL_IncDec (ControlFactory::CreateToolBox(maTbxUL_IncDecBackground.get(),SVX_RES(TBX_UL_INC_DEC))), maTbxUL_IncDec (ControlFactory::CreateToolBox(maTbxUL_IncDecBackground.get(),SVX_RES(TBX_UL_INC_DEC))),
maTopDist (new SvxRelativeField(this, SVX_RES(MF_ABOVE_PARASPACING))),
maBottomDist (new SvxRelativeField(this, SVX_RES(MF_BELOW_PARASPACING))),
maLineSPTbxBackground(ControlFactory::CreateToolBoxBackground(this)),
maLineSPTbx (ControlFactory::CreateToolBox(maLineSPTbxBackground.get(),SVX_RES(TBX_LINESP))),
maFTIndent (new FixedText(this, SVX_RES(FT_INDENT))), maFTIndent (new FixedText(this, SVX_RES(FT_INDENT))),
maTbxIndent_IncDecBackground(ControlFactory::CreateToolBoxBackground(this)), maTbxIndent_IncDecBackground(ControlFactory::CreateToolBoxBackground(this)),
maTbxIndent_IncDec (ControlFactory::CreateToolBox(maTbxIndent_IncDecBackground.get(),SVX_RES(TBX_INDENT_INC_DEC))), maTbxIndent_IncDec (ControlFactory::CreateToolBox(maTbxIndent_IncDecBackground.get(),SVX_RES(TBX_INDENT_INC_DEC))),
maTbxProDemoteBackground(ControlFactory::CreateToolBoxBackground(this)),
maTbxProDemote (ControlFactory::CreateToolBox(maTbxProDemoteBackground.get(),SVX_RES(TBX_INDENT_PRO_DEMOTE))), maTopDist (new SvxRelativeField(this, SVX_RES(MF_ABOVE_PARASPACING))),
maLeftIndent (new SvxRelativeField(this, SVX_RES(MF_BEFORE_INDENT))), maLeftIndent (new SvxRelativeField(this, SVX_RES(MF_BEFORE_INDENT))),
maBottomDist (new SvxRelativeField(this, SVX_RES(MF_BELOW_PARASPACING))),
maRightIndent (new SvxRelativeField(this, SVX_RES(MF_AFTER_INDENT))), maRightIndent (new SvxRelativeField(this, SVX_RES(MF_AFTER_INDENT))),
maLineSPTbxBackground(ControlFactory::CreateToolBoxBackground(this)),
maLineSPTbx (ControlFactory::CreateToolBox(maLineSPTbxBackground.get(),SVX_RES(TBX_LINESP))),
maFLineIndent (new SvxRelativeField(this, SVX_RES(MF_FL_INDENT))), maFLineIndent (new SvxRelativeField(this, SVX_RES(MF_FL_INDENT))),
maTbxProDemoteBackground(ControlFactory::CreateToolBoxBackground(this)),
maTbxProDemote (ControlFactory::CreateToolBox(maTbxProDemoteBackground.get(),SVX_RES(TBX_INDENT_PRO_DEMOTE))),
mpColorUpdater (), mpColorUpdater (),
maFISpace1 ( this, SVX_RES( FI_SPACE1)), maFISpace1 ( this, SVX_RES( FI_SPACE1)),
maFISpace2 ( this, SVX_RES( FI_SPACE2)), maFISpace2 ( this, SVX_RES( FI_SPACE2)),
......
...@@ -108,20 +108,20 @@ private: ...@@ -108,20 +108,20 @@ private:
::boost::scoped_ptr<FixedText> maFTUL; ::boost::scoped_ptr<FixedText> maFTUL;
::boost::scoped_ptr<Window> maTbxUL_IncDecBackground; ::boost::scoped_ptr<Window> maTbxUL_IncDecBackground;
::boost::scoped_ptr<ToolBox> maTbxUL_IncDec; ::boost::scoped_ptr<ToolBox> maTbxUL_IncDec;
::boost::scoped_ptr<FixedText> maFTIndent;
::boost::scoped_ptr<Window> maTbxIndent_IncDecBackground;
::boost::scoped_ptr<ToolBox> maTbxIndent_IncDec;
::boost::scoped_ptr<SvxRelativeField> maTopDist; ::boost::scoped_ptr<SvxRelativeField> maTopDist;
::boost::scoped_ptr<SvxRelativeField> maLeftIndent;
::boost::scoped_ptr<SvxRelativeField> maBottomDist; ::boost::scoped_ptr<SvxRelativeField> maBottomDist;
::boost::scoped_ptr<SvxRelativeField> maRightIndent;
//Line spacing //Line spacing
::boost::scoped_ptr<Window> maLineSPTbxBackground; ::boost::scoped_ptr<Window> maLineSPTbxBackground;
::boost::scoped_ptr<ToolBox> maLineSPTbx; ::boost::scoped_ptr<ToolBox> maLineSPTbx;
::boost::scoped_ptr<SvxRelativeField> maFLineIndent;
//Indent //Indent
::boost::scoped_ptr<FixedText> maFTIndent;
::boost::scoped_ptr<Window> maTbxIndent_IncDecBackground;
::boost::scoped_ptr<ToolBox> maTbxIndent_IncDec;
::boost::scoped_ptr<Window> maTbxProDemoteBackground; ::boost::scoped_ptr<Window> maTbxProDemoteBackground;
::boost::scoped_ptr<ToolBox> maTbxProDemote; ::boost::scoped_ptr<ToolBox> maTbxProDemote;
::boost::scoped_ptr<SvxRelativeField> maLeftIndent;
::boost::scoped_ptr<SvxRelativeField> maRightIndent;
::boost::scoped_ptr<SvxRelativeField> maFLineIndent;
::boost::scoped_ptr< ::svx::ToolboxButtonColorUpdater > mpColorUpdater; ::boost::scoped_ptr< ::svx::ToolboxButtonColorUpdater > mpColorUpdater;
/********************************************************** /**********************************************************
......
...@@ -160,18 +160,14 @@ TextPropertyPanel::TextPropertyPanel ( ...@@ -160,18 +160,14 @@ TextPropertyPanel::TextPropertyPanel (
: Control(pParent, SVX_RES(RID_SIDEBAR_TEXT_PANEL)), : Control(pParent, SVX_RES(RID_SIDEBAR_TEXT_PANEL)),
mpFontNameBox (new SvxSBFontNameBox(this, SVX_RES(CB_SBFONT_FONT))), mpFontNameBox (new SvxSBFontNameBox(this, SVX_RES(CB_SBFONT_FONT))),
maFontSizeBox (this, SVX_RES(MB_SBFONT_FONTSIZE)), maFontSizeBox (this, SVX_RES(MB_SBFONT_FONTSIZE)),
mpToolBoxIncDecBackground(ControlFactory::CreateToolBoxBackground(this)),
mpToolBoxIncDec(ControlFactory::CreateToolBox(
mpToolBoxIncDecBackground.get(),
SVX_RES(TB_INCREASE_DECREASE))),
mpToolBoxFontBackground(ControlFactory::CreateToolBoxBackground(this)), mpToolBoxFontBackground(ControlFactory::CreateToolBoxBackground(this)),
mpToolBoxFont(ControlFactory::CreateToolBox( mpToolBoxFont(ControlFactory::CreateToolBox(
mpToolBoxFontBackground.get(), mpToolBoxFontBackground.get(),
SVX_RES(TB_FONT))), SVX_RES(TB_FONT))),
mpToolBoxFontColorBackground(ControlFactory::CreateToolBoxBackground(this)), mpToolBoxIncDecBackground(ControlFactory::CreateToolBoxBackground(this)),
mpToolBoxFontColor(ControlFactory::CreateToolBox( mpToolBoxIncDec(ControlFactory::CreateToolBox(
mpToolBoxFontColorBackground.get(), mpToolBoxIncDecBackground.get(),
SVX_RES(TB_FONTCOLOR))), SVX_RES(TB_INCREASE_DECREASE))),
mpToolBoxScriptBackground(ControlFactory::CreateToolBoxBackground(this)), mpToolBoxScriptBackground(ControlFactory::CreateToolBoxBackground(this)),
mpToolBoxScript(ControlFactory::CreateToolBox( mpToolBoxScript(ControlFactory::CreateToolBox(
mpToolBoxScriptBackground.get(), mpToolBoxScriptBackground.get(),
...@@ -184,6 +180,10 @@ TextPropertyPanel::TextPropertyPanel ( ...@@ -184,6 +180,10 @@ TextPropertyPanel::TextPropertyPanel (
mpToolBoxSpacing(ControlFactory::CreateToolBox( mpToolBoxSpacing(ControlFactory::CreateToolBox(
mpToolBoxSpacingBackground.get(), mpToolBoxSpacingBackground.get(),
SVX_RES(TB_SPACING))), SVX_RES(TB_SPACING))),
mpToolBoxFontColorBackground(ControlFactory::CreateToolBoxBackground(this)),
mpToolBoxFontColor(ControlFactory::CreateToolBox(
mpToolBoxFontColorBackground.get(),
SVX_RES(TB_FONTCOLOR))),
mpToolBoxHighlightBackground(ControlFactory::CreateToolBoxBackground(this)), mpToolBoxHighlightBackground(ControlFactory::CreateToolBoxBackground(this)),
mpToolBoxHighlight(ControlFactory::CreateToolBox( mpToolBoxHighlight(ControlFactory::CreateToolBox(
mpToolBoxHighlightBackground.get(), mpToolBoxHighlightBackground.get(),
......
...@@ -83,18 +83,18 @@ private: ...@@ -83,18 +83,18 @@ private:
//ui controls //ui controls
::boost::scoped_ptr<SvxSBFontNameBox> mpFontNameBox; ::boost::scoped_ptr<SvxSBFontNameBox> mpFontNameBox;
FontSizeBox maFontSizeBox; FontSizeBox maFontSizeBox;
::boost::scoped_ptr<Window> mpToolBoxIncDecBackground;
::boost::scoped_ptr<ToolBox> mpToolBoxIncDec;
::boost::scoped_ptr<Window> mpToolBoxFontBackground; ::boost::scoped_ptr<Window> mpToolBoxFontBackground;
::boost::scoped_ptr<ToolBox> mpToolBoxFont; ::boost::scoped_ptr<ToolBox> mpToolBoxFont;
::boost::scoped_ptr<Window> mpToolBoxFontColorBackground; ::boost::scoped_ptr<Window> mpToolBoxIncDecBackground;
::boost::scoped_ptr<ToolBox> mpToolBoxFontColor; ::boost::scoped_ptr<ToolBox> mpToolBoxIncDec;
::boost::scoped_ptr<Window> mpToolBoxScriptBackground; ::boost::scoped_ptr<Window> mpToolBoxScriptBackground;
::boost::scoped_ptr<ToolBox> mpToolBoxScript; ::boost::scoped_ptr<ToolBox> mpToolBoxScript;
::boost::scoped_ptr<Window> mpToolBoxScriptSwBackground; ::boost::scoped_ptr<Window> mpToolBoxScriptSwBackground;
::boost::scoped_ptr<ToolBox> mpToolBoxScriptSw; ::boost::scoped_ptr<ToolBox> mpToolBoxScriptSw;
::boost::scoped_ptr<Window> mpToolBoxSpacingBackground; ::boost::scoped_ptr<Window> mpToolBoxSpacingBackground;
::boost::scoped_ptr<ToolBox> mpToolBoxSpacing; ::boost::scoped_ptr<ToolBox> mpToolBoxSpacing;
::boost::scoped_ptr<Window> mpToolBoxFontColorBackground;
::boost::scoped_ptr<ToolBox> mpToolBoxFontColor;
::boost::scoped_ptr<Window> mpToolBoxHighlightBackground; ::boost::scoped_ptr<Window> mpToolBoxHighlightBackground;
::boost::scoped_ptr<ToolBox> mpToolBoxHighlight; ::boost::scoped_ptr<ToolBox> mpToolBoxHighlight;
::boost::scoped_ptr<ToolboxButtonColorUpdater> mpFontColorUpdater; ::boost::scoped_ptr<ToolboxButtonColorUpdater> mpFontColorUpdater;
......
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