2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 #ifndef SW_SIDEBAR_WRAP_PROPERTY_PANEL_HXX
19 #define SW_SIDEBAR_WRAP_PROPERTY_PANEL_HXX
21 #include <vcl/button.hxx>
22 #include <vcl/image.hxx>
24 #include <sfx2/sidebar/ControllerItem.hxx>
25 #include <com/sun/star/frame/XFrame.hpp>
27 #include <boost/scoped_ptr.hpp>
30 namespace sw
{ namespace sidebar
{
32 class WrapPropertyPanel
34 , public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
37 static WrapPropertyPanel
* Create(
39 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rxFrame
,
40 SfxBindings
* pBindings
);
42 // interface of ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
43 virtual void NotifyItemUpdate(
44 const sal_uInt16 nSId
,
45 const SfxItemState eState
,
46 const SfxPoolItem
* pState
,
47 const bool bIsEnabled
);
52 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rxFrame
,
53 SfxBindings
* pBindings
);
55 virtual ~WrapPropertyPanel();
57 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
> mxFrame
;
58 SfxBindings
* mpBindings
;
60 ::boost::scoped_ptr
<ImageRadioButton
> mpRBNoWrap
;
61 ::boost::scoped_ptr
<ImageRadioButton
> mpRBWrapLeft
;
62 ::boost::scoped_ptr
<ImageRadioButton
> mpRBWrapRight
;
63 ::boost::scoped_ptr
<ImageRadioButton
> mpRBWrapParallel
;
64 ::boost::scoped_ptr
<ImageRadioButton
> mpRBWrapThrough
;
65 ::boost::scoped_ptr
<ImageRadioButton
> mpRBIdealWrap
;
70 //Controler Items==================================
71 ::sfx2::sidebar::ControllerItem maSwNoWrapControl
;
72 ::sfx2::sidebar::ControllerItem maSwWrapLeftControl
;
73 ::sfx2::sidebar::ControllerItem maSwWrapRightControl
;
74 ::sfx2::sidebar::ControllerItem maSwWrapParallelControl
;
75 ::sfx2::sidebar::ControllerItem maSwWrapThroughControl
;
76 ::sfx2::sidebar::ControllerItem maSwWrapIdealControl
;
80 DECL_LINK(WrapTypeHdl
, void*);
83 } } // end of namespace ::sw::sidebar