34 : meComponent(eComponent),
71 for (
auto const& panel : aPanels)
73 if (panel->GetTitleBar())
86 std::vector<weld::Widget*> aButtons;
88 for (
auto const& button : aButtons)
108 for (
auto const& panel : rPanels)
110 if (panel->GetTitleBar())
127 for (
auto const& button : rButtons)
208 const sal_Int32 nPanelIndex,
209 const bool bFallbackToDeckTitle)
213 if (bFallbackToDeckTitle)
225 else if (bFallbackToDeckTitle)
246 if (!
maPanels[nPanelIndex]->IsExpanded())
247 maPanels[nPanelIndex]->SetExpanded(
true);
260 const sal_Int32 nDirection)
262 const bool bHasToolBoxItem (
263 maPanels[rFocusLocation.
mnIndex]->GetTitleBar()->GetToolBox().get_n_items() > 0);
267 if (nDirection > 0 && bHasToolBoxItem)
268 maPanels[rFocusLocation.
mnIndex]->GetTitleBar()->GetToolBox().grab_focus();
274 if (nDirection < 0 && bHasToolBoxItem)
275 maPanels[rFocusLocation.
mnIndex]->GetTitleBar()->GetExpander().grab_focus();
286 const sal_Int32 nDirection)
288 bool bConsumed =
false;
311 bool bConsumed =
false;
325 mxDeck->GrabFocusToDocument();
364 const sal_Int32 nDirection (
501 return HandleKeyEvent(rKeyEvent.GetKeyCode(), GetFocusLocation());
sal_uInt16 GetCode() const
virtual void child_grab_focus()=0
constexpr sal_uInt16 KEY_RETURN
constexpr sal_uInt16 KEY_ESCAPE
constexpr sal_uInt16 KEY_LEFT
constexpr sal_uInt16 KEY_TAB
constexpr sal_uInt16 KEY_UP
constexpr sal_uInt16 KEY_RIGHT
constexpr sal_uInt16 KEY_DOWN
#define LINK(Instance, Class, Member)
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)