LibreOffice Module sw (master)  1
PageStylesPanel.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_PAGESTYLESPANEL_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_PAGESTYLESPANEL_HXX
21 
22 #include <memory>
23 #include <com/sun/star/frame/XFrame.hpp>
24 
26 
28 
29 #include <svx/pageitem.hxx>
30 
31 #include <vcl/fixed.hxx>
32 #include <vcl/lstbox.hxx>
33 #include <svl/intitem.hxx>
34 #include <svl/poolitem.hxx>
35 #include <svx/xbtmpit.hxx>
36 #include <svx/xflclit.hxx>
37 #include <svx/xflgrit.hxx>
38 #include <svx/xflhtit.hxx>
39 #include <svx/itemwin.hxx>
41 
42 class List;
43 class SvxColorListBox;
44 namespace sw { namespace sidebar {
45 
47  public PanelLayout,
49 {
50 public:
52  vcl::Window* pParent,
53  const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rxFrame,
54  SfxBindings* pBindings);
55 
56  virtual void NotifyItemUpdate(
57  const sal_uInt16 nSId,
58  const SfxItemState eState,
59  const SfxPoolItem* pState,
60  const bool bIsEnabled) override;
61 
62  SfxBindings* GetBindings() const { return mpBindings; }
64  vcl::Window* pParent,
65  const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rxFrame,
66  SfxBindings* pBindings);
67  virtual ~PageStylesPanel() override;
68  virtual void dispose() override;
69 
70 private:
71 
73 
74  ::std::unique_ptr<SfxInt16Item> mpPageColumnItem;
75  ::std::unique_ptr<SvxPageItem> mpPageItem;
76  ::std::unique_ptr<XFillColorItem> mpBgColorItem;
77  ::std::unique_ptr<XFillGradientItem> mpBgGradientItem;
78  ::std::unique_ptr<XFillHatchItem> mpBgHatchItem;
79  ::std::unique_ptr<XFillBitmapItem> mpBgBitmapItem;
80 
88 
98  OUString aCustomEntry;
99 
100  void Initialize();
101  void Update();
102  Color const & GetColorSetOrDefault();
104  OUString const & GetHatchingSetOrDefault();
105  OUString const & GetBitmapSetOrDefault();
106  OUString const & GetPatternSetOrDefault();
107 
108  void ModifyFillColor();
109 
110  DECL_LINK( ModifyColumnCountHdl, ListBox&, void );
111  DECL_LINK( ModifyNumberingHdl, ListBox&, void );
112  DECL_LINK( ModifyLayoutHdl, ListBox&, void );
113  DECL_LINK( ModifyFillStyleHdl, ListBox&, void );
114  DECL_LINK( ModifyFillColorHdl, ListBox&, void );
115  DECL_LINK( ModifyFillColorListHdl, SvxColorListBox&, void );
116 };
117 
118 } } //end of namespace sw::sidebar
119 
120 #endif
121 
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
VclPtr< SvxFillAttrBox > mpBgHatchingLB
VclPtr< SvxColorListBox > mpBgColorLB
::sfx2::sidebar::ControllerItem maBgColorControl
VclPtr< SvxFillTypeBox > mpBgFillType
Dialog to specify the properties of date form field.
Definition: accfrmobj.cxx:40
VclPtr< ListBox > mpLayoutSelectLB
virtual void dispose() override
OUString const & GetPatternSetOrDefault()
::sfx2::sidebar::ControllerItem maPageNumFormatControl
static VclPtr< vcl::Window > Create(vcl::Window *pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > &rxFrame, SfxBindings *pBindings)
VclPtr< FixedText > mpCustomEntry
::sfx2::sidebar::ControllerItem maBgBitmapControl
::sfx2::sidebar::ControllerItem maPageColumnControl
::std::unique_ptr< SfxInt16Item > mpPageColumnItem
XGradient const & GetGradientSetOrDefault()
VclPtr< PageNumberListBox > mpNumberSelectLB
::std::unique_ptr< XFillGradientItem > mpBgGradientItem
::std::unique_ptr< XFillColorItem > mpBgColorItem
PageStylesPanel(vcl::Window *pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > &rxFrame, SfxBindings *pBindings)
::std::unique_ptr< SvxPageItem > mpPageItem
virtual ~PageStylesPanel() override
::std::unique_ptr< XFillHatchItem > mpBgHatchItem
::sfx2::sidebar::ControllerItem maBgHatchingControl
VclPtr< SvxFillAttrBox > mpBgBitmapLB
::sfx2::sidebar::ControllerItem maBgGradientControl
SfxItemState
SfxBindings * GetBindings() const
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState, const bool bIsEnabled) override
OUString const & GetBitmapSetOrDefault()
::sfx2::sidebar::ControllerItem maBgFillStyleControl
VclPtr< SvxColorListBox > mpBgGradientLB
OUString const & GetHatchingSetOrDefault()
DECL_LINK(ModifyColumnCountHdl, ListBox &, void)
::std::unique_ptr< XFillBitmapItem > mpBgBitmapItem