2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01: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:22:44 +00:00
|
|
|
|
2013-10-23 19:08:11 +02:00
|
|
|
#ifndef INCLUDED_SVX_SVDOATTR_HXX
|
|
|
|
#define INCLUDED_SVX_SVDOATTR_HXX
|
2007-04-11 15:22:44 +00:00
|
|
|
|
|
|
|
#include <svx/xfillit0.hxx>
|
|
|
|
#include <svx/xflasit.hxx>
|
|
|
|
#include <svx/xlineit0.hxx>
|
|
|
|
#include <svx/xlnasit.hxx>
|
|
|
|
#include <svx/svdobj.hxx>
|
|
|
|
#include <svx/svdattr.hxx>
|
2013-11-09 15:28:54 -06:00
|
|
|
#include <svx/svxdllapi.h>
|
2007-04-11 15:22:44 +00:00
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2013-07-01 13:10:56 +01:00
|
|
|
// Initial Declarations
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2007-04-11 15:22:44 +00:00
|
|
|
|
|
|
|
class SfxPoolItem;
|
|
|
|
class SfxSetItem;
|
|
|
|
class SdrOutliner;
|
|
|
|
class SfxItemSet;
|
|
|
|
class SfxItemPool;
|
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2007-04-11 15:22:44 +00:00
|
|
|
// SdrAttrObj
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2007-04-11 15:22:44 +00:00
|
|
|
|
|
|
|
class SVX_DLLPUBLIC SdrAttrObj : public SdrObject
|
|
|
|
{
|
2010-01-28 17:21:44 +01:00
|
|
|
private:
|
2007-04-11 15:22:44 +00:00
|
|
|
friend class SdrOutliner;
|
|
|
|
|
|
|
|
protected:
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual sdr::properties::BaseProperties* CreateObjectSpecificProperties() SAL_OVERRIDE;
|
2010-01-28 17:21:44 +01:00
|
|
|
|
2007-04-11 15:22:44 +00:00
|
|
|
Rectangle maSnapRect;
|
|
|
|
|
|
|
|
protected:
|
2013-07-01 13:10:56 +01:00
|
|
|
/// Detects the width of the line. No line ->0.
|
2007-04-11 15:22:44 +00:00
|
|
|
sal_Int32 ImpGetLineWdt() const;
|
|
|
|
|
2013-07-01 13:10:56 +01:00
|
|
|
/// Detects when a stylesheet is changed
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE;
|
2007-04-11 15:22:44 +00:00
|
|
|
|
|
|
|
SdrAttrObj();
|
|
|
|
virtual ~SdrAttrObj();
|
|
|
|
|
|
|
|
public:
|
2014-03-26 11:54:10 +01:00
|
|
|
TYPEINFO_OVERRIDE();
|
2007-04-11 15:22:44 +00:00
|
|
|
|
2013-07-01 13:10:56 +01:00
|
|
|
// Detects if bFilledObj && Fill != FillNone
|
2014-03-10 11:09:59 +02:00
|
|
|
bool HasFill() const;
|
2007-04-11 15:22:44 +00:00
|
|
|
|
2013-07-01 13:10:56 +01:00
|
|
|
// Detects if Line != LineNone
|
2014-03-10 11:09:59 +02:00
|
|
|
bool HasLine() const;
|
2007-04-11 15:22:44 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual const Rectangle& GetSnapRect() const SAL_OVERRIDE;
|
2007-04-11 15:22:44 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void SetModel(SdrModel* pNewModel) SAL_OVERRIDE;
|
2007-04-11 15:22:44 +00:00
|
|
|
};
|
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
|
2007-04-11 15:22:44 +00:00
|
|
|
|
2013-10-23 19:08:11 +02:00
|
|
|
#endif // INCLUDED_SVX_SVDOATTR_HXX
|
2007-04-11 15:22:44 +00:00
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|