2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2006-12-01 14:32:02 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 10:07:54 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2006-12-01 14:32:02 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2006-12-01 14:32:02 +00:00
|
|
|
*
|
2008-04-10 10:07:54 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2006-12-01 14:32:02 +00:00
|
|
|
*
|
2008-04-10 10:07:54 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2006-12-01 14:32:02 +00:00
|
|
|
*
|
2008-04-10 10:07:54 +00: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.
|
2006-12-01 14:32:02 +00:00
|
|
|
*
|
2008-04-10 10:07:54 +00: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).
|
2006-12-01 14:32:02 +00:00
|
|
|
*
|
2008-04-10 10:07:54 +00: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.
|
2006-12-01 14:32:02 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _FMTAUTOFMT_HXX
|
|
|
|
#define _FMTAUTOFMT_HXX
|
|
|
|
|
|
|
|
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/poolitem.hxx>
|
2006-12-01 14:32:02 +00:00
|
|
|
#include <format.hxx>
|
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
|
|
|
|
// ATT_AUTOFMT *********************************************
|
|
|
|
|
|
|
|
|
|
|
|
class SwFmtAutoFmt: public SfxPoolItem
|
|
|
|
{
|
|
|
|
boost::shared_ptr<SfxItemSet> mpHandle;
|
|
|
|
|
|
|
|
public:
|
2011-01-17 15:06:54 +01:00
|
|
|
SwFmtAutoFmt( sal_uInt16 nWhich = RES_TXTATR_AUTOFMT );
|
2006-12-01 14:32:02 +00:00
|
|
|
|
2012-09-02 09:05:03 +03:00
|
|
|
/// single argument ctors shall be explicit.
|
2006-12-01 14:32:02 +00:00
|
|
|
virtual ~SwFmtAutoFmt();
|
|
|
|
|
2012-09-02 09:05:03 +03:00
|
|
|
/// @@@ public copy ctor, but no copy assignment?
|
2006-12-01 14:32:02 +00:00
|
|
|
SwFmtAutoFmt( const SwFmtAutoFmt& rAttr );
|
|
|
|
private:
|
2012-09-02 09:05:03 +03:00
|
|
|
/// @@@ public copy ctor, but no copy assignment?
|
2006-12-01 14:32:02 +00:00
|
|
|
SwFmtAutoFmt & operator= (const SwFmtAutoFmt &);
|
|
|
|
public:
|
|
|
|
|
|
|
|
TYPEINFO();
|
|
|
|
|
2012-09-02 09:05:03 +03:00
|
|
|
/// "pure virtual methods" of SfxPoolItem
|
2006-12-01 14:32:02 +00:00
|
|
|
virtual int operator==( const SfxPoolItem& ) const;
|
|
|
|
virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
|
|
|
|
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
|
|
|
|
SfxMapUnit eCoreMetric,
|
|
|
|
SfxMapUnit ePresMetric,
|
|
|
|
String &rText,
|
|
|
|
const IntlWrapper* pIntl = 0 ) const;
|
|
|
|
|
2011-03-14 16:51:14 +00:00
|
|
|
virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
|
|
|
|
virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
|
2006-12-01 14:32:02 +00:00
|
|
|
|
|
|
|
void SetStyleHandle( boost::shared_ptr<SfxItemSet> pHandle ) { mpHandle = pHandle; }
|
|
|
|
const boost::shared_ptr<SfxItemSet> GetStyleHandle() const { return mpHandle; }
|
|
|
|
boost::shared_ptr<SfxItemSet> GetStyleHandle() { return mpHandle; }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-14 08:30:41 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|