1766ce4d0SZheng Fan /**************************************************************
2766ce4d0SZheng Fan  *
3766ce4d0SZheng Fan  * Licensed to the Apache Software Foundation (ASF) under one
4766ce4d0SZheng Fan  * or more contributor license agreements.  See the NOTICE file
5766ce4d0SZheng Fan  * distributed with this work for additional information
6766ce4d0SZheng Fan  * regarding copyright ownership.  The ASF licenses this file
7766ce4d0SZheng Fan  * to you under the Apache License, Version 2.0 (the
8766ce4d0SZheng Fan  * "License"); you may not use this file except in compliance
9766ce4d0SZheng Fan  * with the License.  You may obtain a copy of the License at
10766ce4d0SZheng Fan  *
11766ce4d0SZheng Fan  *   http://www.apache.org/licenses/LICENSE-2.0
12766ce4d0SZheng Fan  *
13766ce4d0SZheng Fan  * Unless required by applicable law or agreed to in writing,
14766ce4d0SZheng Fan  * software distributed under the License is distributed on an
15766ce4d0SZheng Fan  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16766ce4d0SZheng Fan  * KIND, either express or implied.  See the License for the
17766ce4d0SZheng Fan  * specific language governing permissions and limitations
18766ce4d0SZheng Fan  * under the License.
19766ce4d0SZheng Fan  *
20766ce4d0SZheng Fan  *************************************************************/
21766ce4d0SZheng Fan 
22*37fee4fdSAndre Fischer #ifndef _SVX_SIDEBAR_LINE_SPACING_POPUP_HXX_
23*37fee4fdSAndre Fischer #define _SVX_SIDEBAR_LINE_SPACING_POPUP_HXX_
24766ce4d0SZheng Fan 
25766ce4d0SZheng Fan #include "svx/sidebar/Popup.hxx"
26766ce4d0SZheng Fan 
27*37fee4fdSAndre Fischer #include <boost/function.hpp>
28*37fee4fdSAndre Fischer #include <svl/poolitem.hxx>
29*37fee4fdSAndre Fischer #include <tools/fldunit.hxx>
30*37fee4fdSAndre Fischer #include <editeng/lspcitem.hxx>
31*37fee4fdSAndre Fischer #include <sfx2/sidebar/EnumContext.hxx>
32766ce4d0SZheng Fan 
33766ce4d0SZheng Fan namespace svx { namespace sidebar {
34766ce4d0SZheng Fan 
35*37fee4fdSAndre Fischer class ParaLineSpacingPopup
36766ce4d0SZheng Fan     : public Popup
37766ce4d0SZheng Fan {
38766ce4d0SZheng Fan public :
39*37fee4fdSAndre Fischer     ParaLineSpacingPopup (
40766ce4d0SZheng Fan         Window* pParent,
41766ce4d0SZheng Fan         const ::boost::function<PopupControl*(PopupContainer*)>& rControlCreator);
42*37fee4fdSAndre Fischer     ~ParaLineSpacingPopup (void);
43766ce4d0SZheng Fan 
44*37fee4fdSAndre Fischer     void Rearrange (SfxItemState currSPState,FieldUnit currMetricUnit,SvxLineSpacingItem* currSPItem ,const ::sfx2::sidebar::EnumContext currentContext);
45766ce4d0SZheng Fan private:
46766ce4d0SZheng Fan     void PopupModeEndCallback (void);
47766ce4d0SZheng Fan };
48766ce4d0SZheng Fan 
49766ce4d0SZheng Fan } } // end of namespace svx::sidebar
50766ce4d0SZheng Fan 
51766ce4d0SZheng Fan #endif
52766ce4d0SZheng Fan 
53*37fee4fdSAndre Fischer 
54