blob: 89872bce3694f2251f336c8ed8a90fa69e00d8cf [file] [log] [blame]
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef _SVX_POSTATTR_HXX
#define _SVX_POSTATTR_HXX
// include ---------------------------------------------------------------
#include <svl/stritem.hxx>
#include "svx/svxdllapi.h"
// class SvxPostItAuthorItem ---------------------------------------------
/*
[Beschreibung]
Dieses Item beschreibt das Autoren-Kuerzel eines Notizzettels.
*/
class SVX_DLLPUBLIC SvxPostItAuthorItem: public SfxStringItem
{
public:
TYPEINFO();
SvxPostItAuthorItem( sal_uInt16 nWhich );
SvxPostItAuthorItem( const String& rAuthor, sal_uInt16 nWhich );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
inline SvxPostItAuthorItem& operator=( const SvxPostItAuthorItem& rAuthor )
{
SetValue( rAuthor.GetValue() );
return *this;
}
};
// class SvxPostItDateItem -----------------------------------------------
/*
[Beschreibung]
Dieses Item beschreibt das Datum eines Notizzettels.
*/
class SVX_DLLPUBLIC SvxPostItDateItem: public SfxStringItem
{
public:
TYPEINFO();
SvxPostItDateItem( sal_uInt16 nWhich );
SvxPostItDateItem( const String& rDate, sal_uInt16 nWhich );
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
inline SvxPostItDateItem& operator=( const SvxPostItDateItem& rDate )
{
SetValue( rDate.GetValue() );
return *this;
}
};
// class SvxPostItTextItem -----------------------------------------------
/*
[Beschreibung]
Dieses Item beschreibt den Text eines Notizzettels.
*/
class SVX_DLLPUBLIC SvxPostItTextItem: public SfxStringItem
{
public:
TYPEINFO();
SvxPostItTextItem( sal_uInt16 nWhich );
SvxPostItTextItem( const String& rText, sal_uInt16 nWhich );
// "pure virtual Methoden" vom SfxPoolItem
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
String &rText, const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
inline SvxPostItTextItem& operator=( const SvxPostItTextItem& rText )
{
SetValue( rText.GetValue() );
return *this;
}
};
#endif