bump product version to 4.1.6.2
[LibreOffice.git] / sd / source / ui / inc / diactrl.hxx
blobbde05ac08b39c05c4fe9e5dfac72496b188c4644
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _SD_DIACTRL_HXX
21 #define _SD_DIACTRL_HXX
23 #include "dlgctrls.hxx"
24 #include <svl/intitem.hxx>
25 #include <sfx2/bindings.hxx>
26 #include <svx/itemwin.hxx>
27 #include <vcl/fixed.hxx>
28 #include <vcl/field.hxx>
29 #include <vcl/toolbox.hxx>
30 #include <sfx2/tbxctrl.hxx>
31 #include <com/sun/star/frame/XFrame.hpp>
33 //========================================================================
34 // SdPagesField:
36 class SdPagesField : public SvxMetricField
38 private:
39 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
40 protected:
41 virtual void Modify();
43 public:
44 SdPagesField( Window* pParent,
45 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
46 WinBits nBits = WB_BORDER | WB_SPIN | WB_REPEAT );
47 ~SdPagesField();
49 void UpdatePagesField( const SfxUInt16Item* pItem );
52 //========================================================================
53 // SdTbxCtlDiaPages:
54 //========================================================================
56 class SdTbxCtlDiaPages : public SfxToolBoxControl
58 public:
59 virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
60 const SfxPoolItem* pState );
61 virtual Window* CreateItemWindow( Window *pParent );
63 SFX_DECL_TOOLBOX_CONTROL();
65 SdTbxCtlDiaPages( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
66 ~SdTbxCtlDiaPages();
69 #endif // _SD_DIACTRL_HXX
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */