bump product version to 5.0.4.1
[LibreOffice.git] / sd / inc / sdattr.hxx
blob1fcafb138e6a770a2ce6630ccbec74c7e535cba7
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_INC_SDATTR_HXX
21 #define INCLUDED_SD_INC_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 // layer attributes
35 class SdAttrLayerName : public SfxStringItem
37 public:
38 SdAttrLayerName() :
39 SfxStringItem( ATTR_LAYER_NAME, OUString("neue Ebene") ) {}
40 SdAttrLayerName( const OUString& aStr ) :
41 SfxStringItem( ATTR_LAYER_NAME, aStr ) {}
44 class SdAttrLayerTitle : public SfxStringItem
46 public:
47 SdAttrLayerTitle() : SfxStringItem( ATTR_LAYER_TITLE, OUString()) {}
48 SdAttrLayerTitle( const OUString& aStr ) : SfxStringItem( ATTR_LAYER_TITLE, aStr ) {}
51 class SdAttrLayerDesc : public SfxStringItem
53 public:
54 SdAttrLayerDesc() : SfxStringItem( ATTR_LAYER_DESC, OUString()) {}
55 SdAttrLayerDesc( const OUString& aStr ) : SfxStringItem( ATTR_LAYER_DESC, aStr ) {}
58 class SdAttrLayerVisible : public SfxBoolItem
60 public:
61 SdAttrLayerVisible( bool bValue = true ) :
62 SfxBoolItem( ATTR_LAYER_VISIBLE, bValue ) {}
65 class SdAttrLayerPrintable : public SfxBoolItem
67 public:
68 SdAttrLayerPrintable( bool bValue = true ) :
69 SfxBoolItem( ATTR_LAYER_PRINTABLE, bValue ) {}
72 class SdAttrLayerLocked : public SfxBoolItem
74 public:
75 SdAttrLayerLocked( bool bValue = false ) :
76 SfxBoolItem( ATTR_LAYER_LOCKED, bValue ) {}
79 class SdAttrLayerThisPage : public SfxBoolItem
81 public:
82 SdAttrLayerThisPage( bool bValue = false ) :
83 SfxBoolItem( ATTR_LAYER_THISPAGE, bValue ) {}
86 class DiaEffectItem : public SfxEnumItem
88 public:
89 TYPEINFO_OVERRIDE();
90 DiaEffectItem( ::com::sun::star::presentation::FadeEffect eFade = com::sun::star::presentation::FadeEffect_NONE );
91 DiaEffectItem( SvStream& rIn );
93 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
94 virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const SAL_OVERRIDE;
95 sal_uInt16 GetValueCount() const SAL_OVERRIDE { return FADE_EFFECT_COUNT; }
96 ::com::sun::star::presentation::FadeEffect GetValue() const
97 { return (::com::sun::star::presentation::FadeEffect) SfxEnumItem::GetValue(); }
100 class DiaSpeedItem : public SfxEnumItem
102 public:
103 TYPEINFO_OVERRIDE();
104 DiaSpeedItem( FadeSpeed = FADE_SPEED_MEDIUM );
105 DiaSpeedItem( SvStream& rIn );
107 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
108 virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const SAL_OVERRIDE;
109 sal_uInt16 GetValueCount() const SAL_OVERRIDE { return FADE_SPEED_COUNT; }
110 FadeSpeed GetValue() const
111 { return (FadeSpeed) SfxEnumItem::GetValue(); }
114 class DiaAutoItem : public SfxEnumItem
116 public:
117 TYPEINFO_OVERRIDE();
118 DiaAutoItem( PresChange = PRESCHANGE_MANUAL );
119 DiaAutoItem( SvStream& rIn );
121 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
122 virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const SAL_OVERRIDE;
123 sal_uInt16 GetValueCount() const SAL_OVERRIDE { return PRESCHANGE_COUNT; }
124 PresChange GetValue() const { return (PresChange) SfxEnumItem::GetValue(); }
127 class DiaTimeItem : public SfxUInt32Item
129 public:
130 TYPEINFO_OVERRIDE();
131 DiaTimeItem( sal_uInt32 nValue = 0L );
133 virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
134 virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
137 #endif // INCLUDED_SD_INC_SDATTR_HXX
139 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */