LibreOffice Module sw (master)  1
WrapPropertyPanel.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_WRAPPROPERTYPANEL_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_WRAPPROPERTYPANEL_HXX
21 
23 #include <vcl/button.hxx>
24 #include <vcl/fixed.hxx>
26 #include <com/sun/star/frame/XFrame.hpp>
27 #include <vcl/lstbox.hxx>
28 #include <svx/spacinglistbox.hxx>
29 
30 namespace sw { namespace sidebar {
31 
33  : public PanelLayout
35  {
36  public:
38  vcl::Window* pParent,
39  const css::uno::Reference< css::frame::XFrame>& rxFrame,
40  SfxBindings* pBindings );
41 
42  // interface of ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
43  virtual void NotifyItemUpdate(
44  const sal_uInt16 nSId,
45  const SfxItemState eState,
46  const SfxPoolItem* pState) override;
47 
48  virtual ~WrapPropertyPanel() override;
49  virtual void dispose() override;
50 
52  vcl::Window* pParent,
53  const css::uno::Reference< css::frame::XFrame >& rxFrame,
54  SfxBindings* pBindings );
55  private:
56  css::uno::Reference< css::frame::XFrame > mxFrame;
58 
69 
70  //Spacing
71  sal_uInt16 nTop;
72  sal_uInt16 nBottom;
73  sal_uInt16 nLeft;
74  sal_uInt16 nRight;
75 
76  //custom entry
77  OUString aCustomEntry;
78 
79  // Controller Items
89 
90  void Initialize();
91  void UpdateEditContour();
92  void UpdateSpacingLB();
93 
94  DECL_LINK(WrapTypeHdl, Button*, void);
95  DECL_LINK(EnableContourHdl, Button*, void);
96  DECL_LINK(EditContourHdl, Button*, void);
97  DECL_LINK(SpacingLBHdl, ListBox&, void);
98  };
99 
100 } } // end of namespace ::sw::sidebar
101 
102 #endif
103 
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
WrapPropertyPanel(vcl::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, SfxBindings *pBindings)
VclPtr< SpacingListBox > mpSpacingLB
Dialog to specify the properties of date form field.
::sfx2::sidebar::ControllerItem maSwWrapParallelControl
VclPtr< RadioButton > mpRBWrapThrough
::sfx2::sidebar::ControllerItem maSwULSpacingControl
css::uno::Reference< css::frame::XFrame > mxFrame
::sfx2::sidebar::ControllerItem maSwNoWrapControl
VclPtr< RadioButton > mpRBWrapRight
virtual void dispose() override
::sfx2::sidebar::ControllerItem maSwWrapIdealControl
VclPtr< RadioButton > mpRBWrapLeft
VclPtr< RadioButton > mpRBNoWrap
::sfx2::sidebar::ControllerItem maSwWrapLeftControl
::sfx2::sidebar::ControllerItem maSwWrapThroughControl
static VclPtr< vcl::Window > Create(vcl::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, SfxBindings *pBindings)
::sfx2::sidebar::ControllerItem maSwWrapRightControl
SfxItemState
VclPtr< RadioButton > mpRBWrapParallel
::sfx2::sidebar::ControllerItem maSwLRSpacingControl
::sfx2::sidebar::ControllerItem maSwEnableContourControl
VclPtr< RadioButton > mpRBIdealWrap
DECL_LINK(WrapTypeHdl, Button *, void)