FocusManager.hxx (52d13b84) FocusManager.hxx (441705db)
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

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

71 void SetPanels (const SharedPanelContainer& rPanels);
72 void SetButtons (const ::std::vector<Button*>& rButtons);
73
74private:
75 DeckTitleBar* mpDeckTitleBar;
76 ::std::vector<Panel*> maPanels;
77 ::std::vector<Button*> maButtons;
78 const ::boost::function<void(const Panel&)> maShowPanelFunctor;
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

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

71 void SetPanels (const SharedPanelContainer& rPanels);
72 void SetButtons (const ::std::vector<Button*>& rButtons);
73
74private:
75 DeckTitleBar* mpDeckTitleBar;
76 ::std::vector<Panel*> maPanels;
77 ::std::vector<Button*> maButtons;
78 const ::boost::function<void(const Panel&)> maShowPanelFunctor;
79
79 bool mbObservingContentControlFocus;
80 Window* mpFirstFocusedContentControl;
81 Window* mpLastFocusedWindow;
82
80 enum PanelComponent
81 {
82 PC_DeckTitle,
83 PC_DeckToolBox,
84 PC_PanelTitle,
85 PC_PanelToolBox,
86 PC_PanelContent,
87 PC_TabBar,

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

113 */
114 void RemoveWindow (Window& rWindow);
115
116 bool IsAnyPanelFocused (void) const;
117 bool IsAnyButtonFocused (void) const;
118
119 void FocusDeckTitle (void);
120 bool IsDeckTitleVisible (void) const;
83 enum PanelComponent
84 {
85 PC_DeckTitle,
86 PC_DeckToolBox,
87 PC_PanelTitle,
88 PC_PanelToolBox,
89 PC_PanelContent,
90 PC_TabBar,

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

116 */
117 void RemoveWindow (Window& rWindow);
118
119 bool IsAnyPanelFocused (void) const;
120 bool IsAnyButtonFocused (void) const;
121
122 void FocusDeckTitle (void);
123 bool IsDeckTitleVisible (void) const;
124 bool IsPanelTitleVisible (const sal_Int32 nPanelIndex) const;
121
122 /** Set the focus to the title bar of the panel or, if the the
123 title bar is not visible, directly to the panel.
125
126 /** Set the focus to the title bar of the panel or, if the the
127 title bar is not visible, directly to the panel.
128 @param nPanelIndex
129 Index of the panel to focus.
130 @param bFallbackToDeckTitle
131 When the panel title bar is not visible then The fallback
132 bias defines whether to focus the deck (true) or the panel
133 content (false) will be focused instead.
124 */
134 */
125 void FocusPanel (const sal_Int32 nPanelIndex);
135 void FocusPanel (
136 const sal_Int32 nPanelIndex,
137 const bool bFallbackToDeckTitle);
138
126 void FocusPanelContent (const sal_Int32 nPanelIndex);
127 void FocusButton (const sal_Int32 nButtonIndex);
128 void ClickButton (const sal_Int32 nButtonIndex);
129 bool MoveFocusInsidePanel (
130 const FocusLocation aLocation,
131 const sal_Int32 nDirection);
139 void FocusPanelContent (const sal_Int32 nPanelIndex);
140 void FocusButton (const sal_Int32 nButtonIndex);
141 void ClickButton (const sal_Int32 nButtonIndex);
142 bool MoveFocusInsidePanel (
143 const FocusLocation aLocation,
144 const sal_Int32 nDirection);
145 bool MoveFocusInsideDeckTitle (
146 const FocusLocation aLocation,
147 const sal_Int32 nDirection);
132
133 void HandleKeyEvent (
134 const KeyCode& rKeyCode,
135 const Window& rWindow);
136
137 FocusLocation GetFocusLocation (const Window& rWindow) const;
138
139};
140
141} } // end of namespace sfx2::sidebar
142
143#endif
148
149 void HandleKeyEvent (
150 const KeyCode& rKeyCode,
151 const Window& rWindow);
152
153 FocusLocation GetFocusLocation (const Window& rWindow) const;
154
155};
156
157} } // end of namespace sfx2::sidebar
158
159#endif