bump product version to 4.1.6.2
[LibreOffice.git] / sd / inc / sdattr.hxx
blob6bcbcf20e2b04703002082671e2ef82665a1c324
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 _SDATTR_HXX
21 #define _SDATTR_HXX
23 #include <com/sun/star/presentation/FadeEffect.hpp>
24 #include <svl/intitem.hxx>
25 #include <svl/eitem.hxx>
26 #include <svl/stritem.hxx>
27 #include <sfx2/sfx.hrc>
29 #include "sdattr.hrc"
30 #include "glob.hxx"
31 #include "fadedef.h"
32 #include "diadef.h"
34 //------------------------------------------------------------------
37 //==================================================================
38 // layer attributes
39 //==================================================================
41 class SdAttrLayerName : public SfxStringItem
43 public:
44 SdAttrLayerName() :
45 SfxStringItem( ATTR_LAYER_NAME, String( RTL_CONSTASCII_USTRINGPARAM( "neue Ebene" ))) {}
46 SdAttrLayerName( const String& aStr ) :
47 SfxStringItem( ATTR_LAYER_NAME, aStr ) {}
50 //------------------------------------------------------------------
52 class SdAttrLayerTitle : public SfxStringItem
54 public:
55 SdAttrLayerTitle() : SfxStringItem( ATTR_LAYER_TITLE, OUString()) {}
56 SdAttrLayerTitle( const String& aStr ) : SfxStringItem( ATTR_LAYER_TITLE, aStr ) {}
59 //------------------------------------------------------------------
61 class SdAttrLayerDesc : public SfxStringItem
63 public:
64 SdAttrLayerDesc() : SfxStringItem( ATTR_LAYER_DESC, OUString()) {}
65 SdAttrLayerDesc( const String& aStr ) : SfxStringItem( ATTR_LAYER_DESC, aStr ) {}
68 //------------------------------------------------------------------
70 class SdAttrLayerVisible : public SfxBoolItem
72 public:
73 SdAttrLayerVisible( sal_Bool bValue = sal_True ) :
74 SfxBoolItem( ATTR_LAYER_VISIBLE, bValue ) {}
77 //------------------------------------------------------------------
79 class SdAttrLayerPrintable : public SfxBoolItem
81 public:
82 SdAttrLayerPrintable( sal_Bool bValue = sal_True ) :
83 SfxBoolItem( ATTR_LAYER_PRINTABLE, bValue ) {}
86 //------------------------------------------------------------------
88 class SdAttrLayerLocked : public SfxBoolItem
90 public:
91 SdAttrLayerLocked( sal_Bool bValue = sal_False ) :
92 SfxBoolItem( ATTR_LAYER_LOCKED, bValue ) {}
95 //------------------------------------------------------------------
97 class SdAttrLayerThisPage : public SfxBoolItem
99 public:
100 SdAttrLayerThisPage( sal_Bool bValue = sal_False ) :
101 SfxBoolItem( ATTR_LAYER_THISPAGE, bValue ) {}
104 //------------------------------------------------------------------
106 class DiaEffectItem : public SfxEnumItem
108 public:
109 TYPEINFO();
110 DiaEffectItem( ::com::sun::star::presentation::FadeEffect eFade = com::sun::star::presentation::FadeEffect_NONE );
111 DiaEffectItem( SvStream& rIn );
113 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
114 virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const;
115 sal_uInt16 GetValueCount() const { return FADE_EFFECT_COUNT; }
116 ::com::sun::star::presentation::FadeEffect GetValue() const
117 { return (::com::sun::star::presentation::FadeEffect) SfxEnumItem::GetValue(); }
120 //------------------------------------------------------------------
122 class DiaSpeedItem : public SfxEnumItem
124 public:
125 TYPEINFO();
126 DiaSpeedItem( FadeSpeed = FADE_SPEED_MEDIUM );
127 DiaSpeedItem( SvStream& rIn );
129 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
130 virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const;
131 sal_uInt16 GetValueCount() const { return FADE_SPEED_COUNT; }
132 FadeSpeed GetValue() const
133 { return (FadeSpeed) SfxEnumItem::GetValue(); }
136 //------------------------------------------------------------------
138 class DiaAutoItem : public SfxEnumItem
140 public:
141 TYPEINFO();
142 DiaAutoItem( PresChange = PRESCHANGE_MANUAL );
143 DiaAutoItem( SvStream& rIn );
145 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
146 virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const;
147 sal_uInt16 GetValueCount() const { return PRESCHANGE_COUNT; }
148 PresChange GetValue() const { return (PresChange) SfxEnumItem::GetValue(); }
151 //------------------------------------------------------------------
153 class DiaTimeItem : public SfxUInt32Item
155 public:
156 TYPEINFO();
157 DiaTimeItem( sal_uInt32 nValue = 0L );
159 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
160 virtual int operator==( const SfxPoolItem& ) const;
163 #endif // _SDATTR_HXX
166 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */