2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-21 22:06:52 +00: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 .
|
|
|
|
*/
|
2007-04-11 15:52:56 +00:00
|
|
|
|
2013-10-23 19:08:11 +02:00
|
|
|
#ifndef INCLUDED_SVX_XFLHTIT_HXX
|
|
|
|
#define INCLUDED_SVX_XFLHTIT_HXX
|
2007-04-11 15:52:56 +00:00
|
|
|
|
|
|
|
#include <svx/xit.hxx>
|
|
|
|
#include <svx/xhatch.hxx>
|
2013-11-09 15:28:54 -06:00
|
|
|
#include <svx/svxdllapi.h>
|
2007-04-11 15:52:56 +00:00
|
|
|
|
|
|
|
class SdrModel;
|
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2007-04-11 15:52:56 +00:00
|
|
|
// class XFillHatchItem
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2007-04-11 15:52:56 +00:00
|
|
|
class SVX_DLLPUBLIC XFillHatchItem : public NameOrIndex
|
|
|
|
{
|
|
|
|
XHatch aHatch;
|
|
|
|
|
|
|
|
public:
|
2014-03-26 11:54:10 +01:00
|
|
|
TYPEINFO_OVERRIDE();
|
2007-04-11 15:52:56 +00:00
|
|
|
XFillHatchItem() : NameOrIndex(XATTR_FILLHATCH, -1) {}
|
2013-08-29 16:52:41 +02:00
|
|
|
XFillHatchItem(const OUString& rName, const XHatch& rTheHatch);
|
2007-04-11 15:52:56 +00:00
|
|
|
XFillHatchItem(SfxItemPool* pPool, const XHatch& rTheHatch);
|
|
|
|
XFillHatchItem(const XFillHatchItem& rItem);
|
|
|
|
XFillHatchItem(SvStream& rIn);
|
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual bool operator==(const SfxPoolItem& rItem) const SAL_OVERRIDE;
|
|
|
|
virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const SAL_OVERRIDE;
|
|
|
|
virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nVer) const SAL_OVERRIDE;
|
|
|
|
virtual SvStream& Store(SvStream& rOut, sal_uInt16 nItemVersion ) const SAL_OVERRIDE;
|
2007-04-11 15:52:56 +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;
|
2014-07-24 11:31:39 +02:00
|
|
|
virtual bool GetPresentation( SfxItemPresentation ePres,
|
2007-04-11 15:52:56 +00:00
|
|
|
SfxMapUnit eCoreMetric,
|
|
|
|
SfxMapUnit ePresMetric,
|
2014-03-27 18:12:18 +01:00
|
|
|
OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
|
|
|
|
virtual bool HasMetrics() const SAL_OVERRIDE;
|
|
|
|
virtual bool ScaleMetrics(long nMul, long nDiv) SAL_OVERRIDE;
|
2007-04-11 15:52:56 +00:00
|
|
|
|
2014-06-12 14:06:28 +02:00
|
|
|
const XHatch& GetHatchValue() const { return aHatch;} // GetValue -> GetHatchValue
|
2007-04-11 15:52:56 +00:00
|
|
|
void SetHatchValue(const XHatch& rNew) { aHatch = rNew; Detach(); } // SetValue -> SetHatchValue
|
|
|
|
|
2014-03-11 15:23:07 +02:00
|
|
|
static bool CompareValueFunc( const NameOrIndex* p1, const NameOrIndex* p2 );
|
2007-04-11 15:52:56 +00:00
|
|
|
XFillHatchItem* checkForUniqueItem( SdrModel* pModel ) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|