26#include <rtl/ustring.hxx>
29 const css::uno::Reference<css::uno::XComponentContext>& rContext)
32 addStatusListener(
".uno:CTLFontState");
37 return "com.sun.star.comp.svx.CTLToolBoxControl";
40extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
42 css::uno::Sequence<css::uno::Any>
const&)
48 const css::uno::Reference<css::uno::XComponentContext>& rContext)
51 addStatusListener(
".uno:VerticalTextState");
56 return "com.sun.star.comp.svx.VertTextToolBoxControl";
59extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
61 css::uno::XComponentContext* rContext, css::uno::Sequence<css::uno::Any>
const&)
67 const css::uno::Reference<css::uno::XComponentContext>& rContext)
77 SvxVertCTLTextTbxCtrl_Base::initialize(rArguments);
79 setFastPropertyValue_NoBroadcast(1, css::uno::Any(
true));
83 m_bVisible = m_pToolbar->get_item_visible(m_aCommandURL);
89 if (getToolboxId(nItemId, &pToolBox))
97 bool bVclToolBox = getToolboxId(nItemId, &pToolBox);
99 bool bEnabled =
false;
100 if (rEvent.FeatureURL.Complete ==
".uno:VerticalTextState")
104 else if (rEvent.FeatureURL.Complete ==
".uno:CTLFontState")
112 rEvent.State >>= bValue;
116 m_pToolbar->set_item_active(m_aCommandURL, bValue);
117 m_pToolbar->set_item_sensitive(m_aCommandURL, rEvent.IsEnabled);
123 pToolBox->
EnableItem(nItemId, rEvent.IsEnabled);
131 m_pToolbar->set_item_visible(m_aCommandURL, bEnabled);
137 pToolBox->
ShowItem(nItemId, bEnabled);
140 if (WindowType::FLOATINGWINDOW == pParent->
GetType())
157 return {
"com.sun.star.frame.ToolbarController" };
static bool IsCTLFontEnabled()
virtual OUString SAL_CALL getImplementationName() override
SvxCTLTextTbxCtrl(const css::uno::Reference< css::uno::XComponentContext > &rContext)
virtual ~SvxVertCTLTextTbxCtrl() override
virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent &rEvent) override
SvxVertCTLTextTbxCtrl(const css::uno::Reference< css::uno::XComponentContext > &rContext)
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArguments) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
SvxVertTextTbxCtrl(const css::uno::Reference< css::uno::XComponentContext > &rContext)
virtual OUString SAL_CALL getImplementationName() override
vcl::Window * GetParent() const
WindowType GetType() const
virtual void SetOutputSizePixel(const Size &rNewSize)
virtual void SetPosSizePixel(const Point &rNewPos, const Size &rNewSize)
bool IsVerticalTextEnabled()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_svx_CTLToolBoxControl_get_implementation(css::uno::XComponentContext *rContext, css::uno::Sequence< css::uno::Any > const &)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_svx_VertTextToolBoxControl_get_implementation(css::uno::XComponentContext *rContext, css::uno::Sequence< css::uno::Any > const &)