1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SVX_SOURCE_SIDEBAR_TEXT_TEXTPROPERTYPANEL_HXX
20 #define INCLUDED_SVX_SOURCE_SIDEBAR_TEXT_TEXTPROPERTYPANEL_HXX
22 #include <sfx2/sidebar/IContextChangeReceiver.hxx>
23 #include <sfx2/weldutils.hxx>
24 #include <vcl/EnumContext.hxx>
25 #include <sfx2/sidebar/PanelLayout.hxx>
27 namespace svx::sidebar
{
29 class TextPropertyPanel
31 public ::sfx2::sidebar::IContextChangeReceiver
34 virtual ~TextPropertyPanel() override
;
36 static std::unique_ptr
<PanelLayout
> Create (
37 weld::Widget
* pParent
,
38 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
);
40 virtual void HandleContextChange (
41 const vcl::EnumContext
& rContext
) override
;
44 weld::Widget
* pParent
,
45 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
);
48 std::unique_ptr
<weld::Toolbar
> mxFont
;
49 std::unique_ptr
<ToolbarUnoDispatcher
> mxFontDispatch
;
50 std::unique_ptr
<weld::Toolbar
> mxFontHeight
;
51 std::unique_ptr
<ToolbarUnoDispatcher
> mxFontHeightDispatch
;
52 std::unique_ptr
<weld::Toolbar
> mxFontEffects
;
53 std::unique_ptr
<ToolbarUnoDispatcher
> mxFontEffectsDispatch
;
54 std::unique_ptr
<weld::Toolbar
> mxFontAdjust
;
55 std::unique_ptr
<ToolbarUnoDispatcher
> mxFontAdjustDispatch
;
56 std::unique_ptr
<weld::Toolbar
> mxToolBoxFontColor
;
57 std::unique_ptr
<ToolbarUnoDispatcher
> mxToolBoxFontColorDispatch
;
58 std::unique_ptr
<weld::Toolbar
> mxToolBoxBackgroundColor
;
59 std::unique_ptr
<ToolbarUnoDispatcher
> mxToolBoxBackgroundColorDispatch
;
60 std::unique_ptr
<weld::Toolbar
> mxResetBar
;
61 std::unique_ptr
<ToolbarUnoDispatcher
> mxResetBarDispatch
;
62 std::unique_ptr
<weld::Toolbar
> mxDefaultBar
;
63 std::unique_ptr
<ToolbarUnoDispatcher
> mxDefaultBarDispatch
;
64 std::unique_ptr
<weld::Toolbar
> mxHyphenationBar
;
65 std::unique_ptr
<ToolbarUnoDispatcher
> mxHyphenationBarDispatch
;
66 std::unique_ptr
<weld::Toolbar
> mxPositionBar
;
67 std::unique_ptr
<ToolbarUnoDispatcher
> mxPositionBarDispatch
;
68 std::unique_ptr
<weld::Toolbar
> mxSpacingBar
;
69 std::unique_ptr
<ToolbarUnoDispatcher
> mxSpacingBarDispatch
;
71 vcl::EnumContext maContext
;
74 } // end of namespace svx::sidebar
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */