xref: /aoo4110/main/sd/source/ui/inc/diactrl.hxx (revision b1cdbd2c)
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
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SD_DIACTRL_HXX
25 #define _SD_DIACTRL_HXX
26 
27 #include "dlgctrls.hxx"
28 #include <svl/intitem.hxx>
29 #include <sfx2/bindings.hxx>
30 #include <svx/itemwin.hxx>
31 #include <vcl/fixed.hxx>
32 #include <vcl/field.hxx>
33 #include <vcl/toolbox.hxx>
34 #include <sfx2/tbxctrl.hxx>
35 #include <com/sun/star/frame/XFrame.hpp>
36 
37 //========================================================================
38 // SdPagesField:
39 
40 class SdPagesField : public SvxMetricField
41 {
42 private:
43 	::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
44 protected:
45 	virtual void 	Modify();
46 
47 public:
48 					SdPagesField( Window* pParent,
49                                   const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
50 						          WinBits nBits = WB_BORDER | WB_SPIN | WB_REPEAT );
51 					~SdPagesField();
52 
53 	void			UpdatePagesField( const SfxUInt16Item* pItem );
54 };
55 
56 //========================================================================
57 // SdTbxCtlDiaPages:
58 //========================================================================
59 
60 class SdTbxCtlDiaPages : public SfxToolBoxControl
61 {
62 public:
63 	virtual void		StateChanged( sal_uInt16 nSID, SfxItemState eState,
64 									  const SfxPoolItem* pState );
65 	virtual Window*		CreateItemWindow( Window *pParent );
66 
67 	SFX_DECL_TOOLBOX_CONTROL();
68 
69 	SdTbxCtlDiaPages( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
70 	~SdTbxCtlDiaPages();
71 };
72 
73 #endif // _SD_DIACTRL_HXX
74 
75 
76 
77