bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / inc / diactrl.hxx
bloba6f6006445adc8c587046f4a46e04236986cac49
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 INCLUDED_SD_SOURCE_UI_INC_DIACTRL_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_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 // SdPagesField:
35 class SdPagesField : public SvxMetricField
37 private:
38 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
39 protected:
40 virtual void Modify() SAL_OVERRIDE;
42 public:
43 SdPagesField( vcl::Window* pParent,
44 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
45 WinBits nBits = WB_BORDER | WB_SPIN | WB_REPEAT );
46 virtual ~SdPagesField();
48 void UpdatePagesField( const SfxUInt16Item* pItem );
51 // SdTbxCtlDiaPages:
53 class SdTbxCtlDiaPages : public SfxToolBoxControl
55 public:
56 virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
57 const SfxPoolItem* pState ) SAL_OVERRIDE;
58 virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window *pParent ) SAL_OVERRIDE;
60 SFX_DECL_TOOLBOX_CONTROL();
62 SdTbxCtlDiaPages( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
63 virtual ~SdTbxCtlDiaPages();
66 #endif // INCLUDED_SD_SOURCE_UI_INC_DIACTRL_HXX
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */