xref: /AOO41X/main/svx/source/sidebar/paragraph/ParaLineSpacingPopup.hxx (revision ca62e2c2083b5d0995f1245bad6c2edfb455fbec)
1*766ce4d0SZheng Fan /**************************************************************
2*766ce4d0SZheng Fan  *
3*766ce4d0SZheng Fan  * Licensed to the Apache Software Foundation (ASF) under one
4*766ce4d0SZheng Fan  * or more contributor license agreements.  See the NOTICE file
5*766ce4d0SZheng Fan  * distributed with this work for additional information
6*766ce4d0SZheng Fan  * regarding copyright ownership.  The ASF licenses this file
7*766ce4d0SZheng Fan  * to you under the Apache License, Version 2.0 (the
8*766ce4d0SZheng Fan  * "License"); you may not use this file except in compliance
9*766ce4d0SZheng Fan  * with the License.  You may obtain a copy of the License at
10*766ce4d0SZheng Fan  *
11*766ce4d0SZheng Fan  *   http://www.apache.org/licenses/LICENSE-2.0
12*766ce4d0SZheng Fan  *
13*766ce4d0SZheng Fan  * Unless required by applicable law or agreed to in writing,
14*766ce4d0SZheng Fan  * software distributed under the License is distributed on an
15*766ce4d0SZheng Fan  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*766ce4d0SZheng Fan  * KIND, either express or implied.  See the License for the
17*766ce4d0SZheng Fan  * specific language governing permissions and limitations
18*766ce4d0SZheng Fan  * under the License.
19*766ce4d0SZheng Fan  *
20*766ce4d0SZheng Fan  *************************************************************/
21*766ce4d0SZheng Fan 
22*766ce4d0SZheng Fan #ifndef _SVX_SIDEBAR_LINE_SPACING_POPUP_HXX_
23*766ce4d0SZheng Fan #define _SVX_SIDEBAR_LINE_SPACING_POPUP_HXX_
24*766ce4d0SZheng Fan 
25*766ce4d0SZheng Fan #include "svx/sidebar/Popup.hxx"
26*766ce4d0SZheng Fan 
27*766ce4d0SZheng Fan #include <boost/function.hpp>
28*766ce4d0SZheng Fan #include <svl/poolitem.hxx>
29*766ce4d0SZheng Fan #include <tools/fldunit.hxx>
30*766ce4d0SZheng Fan #include <editeng/lspcitem.hxx>
31*766ce4d0SZheng Fan #include <sfx2/sidebar/EnumContext.hxx>
32*766ce4d0SZheng Fan 
33*766ce4d0SZheng Fan namespace svx { namespace sidebar {
34*766ce4d0SZheng Fan 
35*766ce4d0SZheng Fan class ParaLineSpacingPopup
36*766ce4d0SZheng Fan     : public Popup
37*766ce4d0SZheng Fan {
38*766ce4d0SZheng Fan public :
39*766ce4d0SZheng Fan     ParaLineSpacingPopup (
40*766ce4d0SZheng Fan         Window* pParent,
41*766ce4d0SZheng Fan         const ::boost::function<PopupControl*(PopupContainer*)>& rControlCreator);
42*766ce4d0SZheng Fan     ~ParaLineSpacingPopup (void);
43*766ce4d0SZheng Fan 
44*766ce4d0SZheng Fan     void Rearrange (SfxItemState currSPState,FieldUnit currMetricUnit,SvxLineSpacingItem* currSPItem ,const ::sfx2::sidebar::EnumContext currentContext);
45*766ce4d0SZheng Fan private:
46*766ce4d0SZheng Fan     void PopupModeEndCallback (void);
47*766ce4d0SZheng Fan };
48*766ce4d0SZheng Fan 
49*766ce4d0SZheng Fan } } // end of namespace svx::sidebar
50*766ce4d0SZheng Fan 
51*766ce4d0SZheng Fan #endif
52*766ce4d0SZheng Fan 
53*766ce4d0SZheng Fan 
54