2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2013-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_INC_FMTAUTOFMT_HXX
|
|
|
|
#define INCLUDED_SW_INC_FMTAUTOFMT_HXX
|
2006-12-01 14:32:02 +00:00
|
|
|
|
2009-10-16 00:05:16 +02:00
|
|
|
#include <svl/poolitem.hxx>
|
2006-12-01 14:32:02 +00:00
|
|
|
#include <format.hxx>
|
2015-02-17 16:40:00 +00:00
|
|
|
#include <memory>
|
2006-12-01 14:32:02 +00:00
|
|
|
|
2015-05-20 13:05:49 +02:00
|
|
|
class SwFormatAutoFormat: public SfxPoolItem
|
2006-12-01 14:32:02 +00:00
|
|
|
{
|
2015-02-17 16:40:00 +00:00
|
|
|
std::shared_ptr<SfxItemSet> mpHandle;
|
2006-12-01 14:32:02 +00:00
|
|
|
|
|
|
|
public:
|
2015-05-20 13:05:49 +02:00
|
|
|
SwFormatAutoFormat( 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.
|
2015-05-20 13:05:49 +02:00
|
|
|
virtual ~SwFormatAutoFormat();
|
2006-12-01 14:32:02 +00:00
|
|
|
|
2012-09-02 09:05:03 +03:00
|
|
|
/// @@@ public copy ctor, but no copy assignment?
|
2015-05-20 13:05:49 +02:00
|
|
|
SwFormatAutoFormat( const SwFormatAutoFormat& rAttr );
|
2006-12-01 14:32:02 +00:00
|
|
|
private:
|
2012-09-02 09:05:03 +03:00
|
|
|
/// @@@ public copy ctor, but no copy assignment?
|
2015-05-20 13:05:49 +02:00
|
|
|
SwFormatAutoFormat & operator= (const SwFormatAutoFormat &) SAL_DELETED_FUNCTION;
|
2006-12-01 14:32:02 +00:00
|
|
|
public:
|
|
|
|
|
2014-03-26 11:54:10 +01:00
|
|
|
TYPEINFO_OVERRIDE();
|
2006-12-01 14:32:02 +00:00
|
|
|
|
2012-09-02 09:05:03 +03:00
|
|
|
/// "pure virtual methods" of SfxPoolItem
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
|
|
|
|
virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
|
2014-07-24 11:31:39 +02:00
|
|
|
virtual bool GetPresentation( SfxItemPresentation ePres,
|
2006-12-01 14:32:02 +00:00
|
|
|
SfxMapUnit eCoreMetric,
|
|
|
|
SfxMapUnit ePresMetric,
|
2013-01-23 12:41:52 +01:00
|
|
|
OUString &rText,
|
2014-03-27 18:12:18 +01:00
|
|
|
const IntlWrapper* pIntl = 0 ) const SAL_OVERRIDE;
|
2006-12-01 14:32:02 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
|
|
|
|
virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
|
2006-12-01 14:32:02 +00:00
|
|
|
|
2015-02-17 16:40:00 +00:00
|
|
|
void SetStyleHandle( std::shared_ptr<SfxItemSet> pHandle ) { mpHandle = pHandle; }
|
|
|
|
const std::shared_ptr<SfxItemSet> GetStyleHandle() const { return mpHandle; }
|
|
|
|
std::shared_ptr<SfxItemSet> GetStyleHandle() { return mpHandle; }
|
2015-02-25 09:05:55 +01:00
|
|
|
|
|
|
|
void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE;
|
2006-12-01 14:32:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-14 08:30:41 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|