summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-07 14:15:06 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-07 14:15:06 +0000
commited64bd7748040210943737e1b8bbdda46871163a (patch)
treead364e36e1093f67cfecfbd4407674d4f68c91b3 /svx/inc
parent4b064a882975b4066e011a4aab8814c5888c4d58 (diff)
INTEGRATION: CWS pages01_DEV300 (1.1.2); FILE ADDED
2007/12/13 13:23:39 fme 1.1.2.1: #i1598# Multiple page view - zoom slider
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/svx/zoomslideritem.hxx82
1 files changed, 82 insertions, 0 deletions
diff --git a/svx/inc/svx/zoomslideritem.hxx b/svx/inc/svx/zoomslideritem.hxx
new file mode 100644
index 000000000000..13dff2da5c2f
--- /dev/null
+++ b/svx/inc/svx/zoomslideritem.hxx
@@ -0,0 +1,82 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: zoomslideritem.hxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: kz $ $Date: 2008-03-07 15:15:06 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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 for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+#ifndef _SVX_ZOOMSLIDERITEM_HXX
+#define _SVX_ZOOMSLIDERITEM_HXX
+
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+#ifndef _SVX_SVXIDS_HRC
+#include <svx/svxids.hrc>
+#endif
+#ifndef _COM_SUN_STAR_UNO_SEQUENCE_HXX_
+#include <com/sun/star/uno/Sequence.hxx>
+#endif
+#ifndef INCLUDED_SVXDLLAPI_H
+#include "svx/svxdllapi.h"
+#endif
+
+//-------------------------------------------------------------------------
+
+class SVX_DLLPUBLIC SvxZoomSliderItem: public SfxUInt16Item
+{
+ com::sun::star::uno::Sequence < sal_Int32 > maValues;
+ USHORT mnMinZoom;
+ USHORT mnMaxZoom;
+
+public:
+ TYPEINFO();
+
+ SvxZoomSliderItem( USHORT nCurrentZoom = 100, USHORT nMinZoom = 20, USHORT nMaxZoom = 600, USHORT nWhich = SID_ATTR_ZOOMSLIDER );
+ SvxZoomSliderItem( const SvxZoomSliderItem& );
+ ~SvxZoomSliderItem();
+
+ void AddSnappingPoint( sal_Int32 nNew );
+ const com::sun::star::uno::Sequence < sal_Int32 >& GetSnappingPoints() const;
+ USHORT GetMinZoom() const {return mnMinZoom;}
+ USHORT GetMaxZoom() const {return mnMaxZoom;}
+
+ // "pure virtual Methoden" vom SfxPoolItem
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create( SvStream& rStrm, USHORT nVersion ) const; // leer
+ virtual SvStream& Store( SvStream& rStrm , USHORT nItemVersion ) const; // leer
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const; // leer
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ); // leer
+};
+
+//------------------------------------------------------------------------
+
+#endif