2000-09-18 11:07:07 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 15:01:12 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 15:01:12 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 15:01:12 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 15:01:12 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 15:01:12 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 15:01:12 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _SD_DIACTRL_HXX
|
|
|
|
#define _SD_DIACTRL_HXX
|
|
|
|
|
|
|
|
#include "dlgctrls.hxx"
|
2009-10-15 17:05:16 -05:00
|
|
|
#include <svl/intitem.hxx>
|
2000-09-18 11:07:07 -05:00
|
|
|
#include <sfx2/bindings.hxx>
|
|
|
|
#include <svx/itemwin.hxx>
|
|
|
|
#include <vcl/fixed.hxx>
|
|
|
|
#include <vcl/field.hxx>
|
|
|
|
#include <vcl/toolbox.hxx>
|
|
|
|
#include <sfx2/tbxctrl.hxx>
|
2004-07-06 06:25:52 -05:00
|
|
|
#include <com/sun/star/frame/XFrame.hpp>
|
|
|
|
|
2000-09-18 11:07:07 -05:00
|
|
|
//========================================================================
|
|
|
|
// SdPagesField:
|
|
|
|
|
|
|
|
class SdPagesField : public SvxMetricField
|
|
|
|
{
|
2000-09-21 10:12:50 -05:00
|
|
|
private:
|
2004-07-06 06:25:52 -05:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
|
2000-09-18 11:07:07 -05:00
|
|
|
protected:
|
|
|
|
virtual void Modify();
|
|
|
|
|
|
|
|
public:
|
2004-07-06 06:25:52 -05:00
|
|
|
SdPagesField( Window* pParent,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
|
|
|
|
WinBits nBits = WB_BORDER | WB_SPIN | WB_REPEAT );
|
2000-09-18 11:07:07 -05:00
|
|
|
~SdPagesField();
|
|
|
|
|
2006-12-12 10:41:36 -06:00
|
|
|
void UpdatePagesField( const SfxUInt16Item* pItem );
|
2000-09-18 11:07:07 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
//========================================================================
|
|
|
|
// SdTbxCtlDiaPages:
|
|
|
|
//========================================================================
|
|
|
|
|
|
|
|
class SdTbxCtlDiaPages : public SfxToolBoxControl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void StateChanged( USHORT nSID, SfxItemState eState,
|
|
|
|
const SfxPoolItem* pState );
|
|
|
|
virtual Window* CreateItemWindow( Window *pParent );
|
|
|
|
|
|
|
|
SFX_DECL_TOOLBOX_CONTROL();
|
|
|
|
|
2004-07-06 06:25:52 -05:00
|
|
|
SdTbxCtlDiaPages( USHORT nSlotId, USHORT nId, ToolBox& rTbx );
|
2000-09-18 11:07:07 -05:00
|
|
|
~SdTbxCtlDiaPages();
|
|
|
|
};
|
|
|
|
|
2004-11-26 13:15:42 -06:00
|
|
|
#endif // _SD_DIACTRL_HXX
|
2000-09-18 11:07:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|