PagePropertyPanel.hxx (45da7d5e) PagePropertyPanel.hxx (550fbbbd)
1/**************************************************************
2*
3* Licensed to the Apache Software Foundation (ASF) under one
4* or more contributor license agreements. See the NOTICE file
5* distributed with this work for additional information
6* regarding copyright ownership. The ASF licenses this file
7* to you under the Apache License, Version 2.0 (the
8* "License"); you may not use this file except in compliance

--- 8 unchanged lines hidden (view full) ---

17* specific language governing permissions and limitations
18* under the License.
19*
20*************************************************************/
21
22#ifndef SW_SIDEBAR_PAGE_PROPERTY_PANEL_HXX
23#define SW_SIDEBAR_PAGE_PROPERTY_PANEL_HXX
24
1/**************************************************************
2*
3* Licensed to the Apache Software Foundation (ASF) under one
4* or more contributor license agreements. See the NOTICE file
5* distributed with this work for additional information
6* regarding copyright ownership. The ASF licenses this file
7* to you under the Apache License, Version 2.0 (the
8* "License"); you may not use this file except in compliance

--- 8 unchanged lines hidden (view full) ---

17* specific language governing permissions and limitations
18* under the License.
19*
20*************************************************************/
21
22#ifndef SW_SIDEBAR_PAGE_PROPERTY_PANEL_HXX
23#define SW_SIDEBAR_PAGE_PROPERTY_PANEL_HXX
24
25#include <com/sun/star/frame/XFrame.hpp>
26#include <com/sun/star/document/XUndoManager.hpp>
27
25#include <svx/sidebar/Popup.hxx>
26
27#include <sfx2/sidebar/ControllerItem.hxx>
28
29namespace svx { namespace sidebar {
30 class PopupControl;
31} }
32

--- 21 unchanged lines hidden (view full) ---

54
55 class PagePropertyPanel
56 : public Control,
57 public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
58 {
59 public:
60 static PagePropertyPanel* Create(
61 Window* pParent,
28#include <svx/sidebar/Popup.hxx>
29
30#include <sfx2/sidebar/ControllerItem.hxx>
31
32namespace svx { namespace sidebar {
33 class PopupControl;
34} }
35

--- 21 unchanged lines hidden (view full) ---

57
58 class PagePropertyPanel
59 : public Control,
60 public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
61 {
62 public:
63 static PagePropertyPanel* Create(
64 Window* pParent,
65 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame>& rxFrame,
62 SfxBindings* pBindings );
63
64 // interface of ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
65 virtual void NotifyItemUpdate(
66 const sal_uInt16 nSId,
67 const SfxItemState eState,
68 const SfxPoolItem* pState,
69 const bool bIsEnabled);

--- 21 unchanged lines hidden (view full) ---

91 ::svx::sidebar::PopupControl* CreatePageSizeControl( ::svx::sidebar::PopupContainer* pParent );
92 void ExecuteSizeChange( const Paper ePaper );
93 void ClosePageSizePopup();
94
95 ::svx::sidebar::PopupControl* CreatePageColumnControl( ::svx::sidebar::PopupContainer* pParent );
96 void ExecuteColumnChange( const sal_uInt16 nColumnType );
97 void ClosePageColumnPopup();
98
66 SfxBindings* pBindings );
67
68 // interface of ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
69 virtual void NotifyItemUpdate(
70 const sal_uInt16 nSId,
71 const SfxItemState eState,
72 const SfxPoolItem* pState,
73 const bool bIsEnabled);

--- 21 unchanged lines hidden (view full) ---

95 ::svx::sidebar::PopupControl* CreatePageSizeControl( ::svx::sidebar::PopupContainer* pParent );
96 void ExecuteSizeChange( const Paper ePaper );
97 void ClosePageSizePopup();
98
99 ::svx::sidebar::PopupControl* CreatePageColumnControl( ::svx::sidebar::PopupContainer* pParent );
100 void ExecuteColumnChange( const sal_uInt16 nColumnType );
101 void ClosePageColumnPopup();
102
103 void StartUndo();
104 void EndUndo();
105
99 private:
100 PagePropertyPanel(
101 Window* pParent,
106 private:
107 PagePropertyPanel(
108 Window* pParent,
109 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame>& rxFrame,
102 SfxBindings* pBindings );
103 virtual ~PagePropertyPanel(void);
104
105 SfxBindings* mpBindings;
106
107 // toolboxes - on click open corresponding popup
108 FixedText maFtOrientation;
109 ::boost::scoped_ptr<Window> mpToolBoxOrientationBackground;

--- 80 unchanged lines hidden (view full) ---

190 ::sfx2::sidebar::ControllerItem m_aSwPagePgULControl;
191 ::sfx2::sidebar::ControllerItem m_aSwPagePgLRControl;
192 ::sfx2::sidebar::ControllerItem m_aSwPagePgSizeControl;
193 ::sfx2::sidebar::ControllerItem m_aSwPagePgControl;
194 ::sfx2::sidebar::ControllerItem m_aSwPageColControl;
195 ::sfx2::sidebar::ControllerItem m_aSwPagePgMetricControl;
196
197 // popups
110 SfxBindings* pBindings );
111 virtual ~PagePropertyPanel(void);
112
113 SfxBindings* mpBindings;
114
115 // toolboxes - on click open corresponding popup
116 FixedText maFtOrientation;
117 ::boost::scoped_ptr<Window> mpToolBoxOrientationBackground;

--- 80 unchanged lines hidden (view full) ---

198 ::sfx2::sidebar::ControllerItem m_aSwPagePgULControl;
199 ::sfx2::sidebar::ControllerItem m_aSwPagePgLRControl;
200 ::sfx2::sidebar::ControllerItem m_aSwPagePgSizeControl;
201 ::sfx2::sidebar::ControllerItem m_aSwPagePgControl;
202 ::sfx2::sidebar::ControllerItem m_aSwPageColControl;
203 ::sfx2::sidebar::ControllerItem m_aSwPagePgMetricControl;
204
205 // popups
198 ::boost::scoped_ptr< ::svx::sidebar::Popup > mpOrientationPopup;
199 ::boost::scoped_ptr< ::svx::sidebar::Popup > mpMarginPopup;
200 ::boost::scoped_ptr< ::svx::sidebar::Popup > mpSizePopup;
201 ::boost::scoped_ptr< ::svx::sidebar::Popup > mpColumnPopup;
206 ::svx::sidebar::Popup maOrientationPopup;
207 ::svx::sidebar::Popup maMarginPopup;
208 ::svx::sidebar::Popup maSizePopup;
209 ::svx::sidebar::Popup maColumnPopup;
202
210
211 const cssu::Reference< css::document::XUndoManager > mxUndoManager;
212
203 bool mbInvalidateSIDAttrPageOnSIDAttrPageSizeNotify;
204
205 // handler for popup toolboxes to show the popups
206 DECL_LINK(ClickOrientationHdl, ToolBox* );
207 DECL_LINK(ClickMarginHdl, ToolBox* );
208 DECL_LINK(ClickSizeHdl, ToolBox* );
209 DECL_LINK(ClickColumnHdl, ToolBox* );
210

--- 14 unchanged lines hidden ---
213 bool mbInvalidateSIDAttrPageOnSIDAttrPageSizeNotify;
214
215 // handler for popup toolboxes to show the popups
216 DECL_LINK(ClickOrientationHdl, ToolBox* );
217 DECL_LINK(ClickMarginHdl, ToolBox* );
218 DECL_LINK(ClickSizeHdl, ToolBox* );
219 DECL_LINK(ClickColumnHdl, ToolBox* );
220

--- 14 unchanged lines hidden ---