22#include <com/sun/star/lang/IllegalArgumentException.hpp>
32 const css::uno::Reference<css::frame::XFrame>& rxFrame)
34 if (pParent ==
nullptr)
35 throw lang::IllegalArgumentException(
"no parent Window given to TextPropertyPanel::Create",
nullptr, 0);
37 throw lang::IllegalArgumentException(
"no XFrame given to TextPropertyPanel::Create",
nullptr, 1);
39 return std::make_unique<TextPropertyPanel>(pParent, rxFrame);
43 :
PanelLayout(pParent,
"SidebarTextPanel",
"svx/ui/sidebartextpanel.ui")
44 ,
mxFont(m_xBuilder->weld_toolbar(
"font"))
46 , mxFontHeight(m_xBuilder->weld_toolbar(
"fontheight"))
48 , mxFontEffects(m_xBuilder->weld_toolbar(
"fonteffects"))
50 , mxFontAdjust(m_xBuilder->weld_toolbar(
"fontadjust"))
52 , mxToolBoxFontColor(m_xBuilder->weld_toolbar(
"colorbar"))
53 , mxToolBoxFontColorDispatch(new
ToolbarUnoDispatcher(*mxToolBoxFontColor, *m_xBuilder, rxFrame))
54 , mxToolBoxBackgroundColor(m_xBuilder->weld_toolbar(
"colorbar_background"))
55 , mxToolBoxBackgroundColorDispatch(new
ToolbarUnoDispatcher(*mxToolBoxBackgroundColor, *m_xBuilder, rxFrame))
56 , mxResetBar(m_xBuilder->weld_toolbar(
"resetattr"))
58 , mxDefaultBar(m_xBuilder->weld_toolbar(
"defaultattr"))
60 , mxPositionBar(m_xBuilder->weld_toolbar(
"position"))
62 , mxSpacingBar(m_xBuilder->weld_toolbar(
"spacingbar"))
65 bool isMobilePhone =
false;
106 bool bWriterText =
false;
107 bool bDrawText =
false;
108 bool bCalcText =
false;
143 mxResetBar->set_visible(bWriterText || bCalcText);
#define CombinedEnumContext(a, e)
bool isLOKMobilePhone() const
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
sal_Int32 GetCombinedContext_DI() const
uno::Reference< rendering::XCanvasFont > mxFont