summaryrefslogtreecommitdiff
path: root/include/svx/sdr
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-10-28 12:03:34 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-10-28 12:58:49 -0400
commit8c5f640308b618ec330e83527019a4baa982f902 (patch)
treeea434232c22b52db2a037907de6a842e2027fee6 /include/svx/sdr
parent2b4ffd8e333dee31ee7df58f693d8eff9ec5a93e (diff)
Move these headers from include to svx; they are not used outside svx.
Change-Id: I8685b451a39e890250a3309ddb70346bac4084b2
Diffstat (limited to 'include/svx/sdr')
-rw-r--r--include/svx/sdr/properties/attributeproperties.hxx96
-rw-r--r--include/svx/sdr/properties/e3dcompoundproperties.hxx71
-rw-r--r--include/svx/sdr/properties/e3dproperties.hxx64
-rw-r--r--include/svx/sdr/properties/emptyproperties.hxx96
-rw-r--r--include/svx/sdr/properties/rectangleproperties.hxx61
-rw-r--r--include/svx/sdr/properties/textproperties.hxx93
6 files changed, 0 insertions, 481 deletions
diff --git a/include/svx/sdr/properties/attributeproperties.hxx b/include/svx/sdr/properties/attributeproperties.hxx
deleted file mode 100644
index a14b63407ebc..000000000000
--- a/include/svx/sdr/properties/attributeproperties.hxx
+++ /dev/null
@@ -1,96 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * 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 .
- */
-
-#ifndef INCLUDED_SVX_SDR_PROPERTIES_ATTRIBUTEPROPERTIES_HXX
-#define INCLUDED_SVX_SDR_PROPERTIES_ATTRIBUTEPROPERTIES_HXX
-
-#include <svl/lstner.hxx>
-#include <svl/stylesheetuser.hxx>
-#include <svx/sdr/properties/defaultproperties.hxx>
-#include <svx/svxdllapi.h>
-
-
-
-namespace sdr
-{
- namespace properties
- {
- class SVX_DLLPUBLIC AttributeProperties : public DefaultProperties, public SfxListener, public svl::StyleSheetUser
- {
- // add style sheet, do all the necessary handling
- void ImpAddStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr);
-
- // remove StyleSheet, do all the necessary handling
- void ImpRemoveStyleSheet();
-
- protected:
- // the SytleSheet of this object
- SfxStyleSheet* mpStyleSheet;
-
- // create a new itemset
- virtual SfxItemSet& CreateObjectSpecificItemSet(SfxItemPool& pPool) SAL_OVERRIDE;
-
- // Do the ItemChange, may do special handling
- virtual void ItemChange(const sal_uInt16 nWhich, const SfxPoolItem* pNewItem = 0) SAL_OVERRIDE;
-
- // react on ItemSet changes
- virtual void ItemSetChanged(const SfxItemSet& rSet) SAL_OVERRIDE;
-
- public:
- // basic constructor
- explicit AttributeProperties(SdrObject& rObj);
-
- // constructor for copying, but using new object
- AttributeProperties(const AttributeProperties& rProps, SdrObject& rObj);
-
- // Clone() operator, normally just calls the local copy constructor
- virtual BaseProperties& Clone(SdrObject& rObj) const SAL_OVERRIDE;
-
- // destructor
- virtual ~AttributeProperties();
-
- // set a new StyleSheet and broadcast
- virtual void SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr) SAL_OVERRIDE;
-
- // get the installed StyleSheet
- virtual SfxStyleSheet* GetStyleSheet() const SAL_OVERRIDE;
-
- // Move properties to a new ItemPool.
- virtual void MoveToItemPool(SfxItemPool* pSrcPool, SfxItemPool* pDestPool, SdrModel* pNewModel = 0L) SAL_OVERRIDE;
-
- // Set new model.
- virtual void SetModel(SdrModel* pOldModel, SdrModel* pNewModel) SAL_OVERRIDE;
-
- // force all attributes which come from styles to hard attributes
- // to be able to live without the style.
- virtual void ForceStyleToHardAttributes() SAL_OVERRIDE;
-
- // This is the Notify(...) from 2nd base class SfxListener
- virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE;
-
- virtual bool isUsedByModel() const SAL_OVERRIDE;
- };
- } // end of namespace properties
-} // end of namespace sdr
-
-
-
-#endif // INCLUDED_SVX_SDR_PROPERTIES_ATTRIBUTEPROPERTIES_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/sdr/properties/e3dcompoundproperties.hxx b/include/svx/sdr/properties/e3dcompoundproperties.hxx
deleted file mode 100644
index 8a17ab1554f2..000000000000
--- a/include/svx/sdr/properties/e3dcompoundproperties.hxx
+++ /dev/null
@@ -1,71 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * 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 .
- */
-
-#ifndef INCLUDED_SVX_SDR_PROPERTIES_E3DCOMPOUNDPROPERTIES_HXX
-#define INCLUDED_SVX_SDR_PROPERTIES_E3DCOMPOUNDPROPERTIES_HXX
-
-#include <svx/sdr/properties/e3dproperties.hxx>
-#include <svx/svxdllapi.h>
-
-
-
-namespace sdr
-{
- namespace properties
- {
- class SVX_DLLPUBLIC E3dCompoundProperties : public E3dProperties
- {
- protected:
- // Called after ItemChange() is done for all items.
- virtual void PostItemChange(const sal_uInt16 nWhich) SAL_OVERRIDE;
-
- public:
- // basic constructor
- explicit E3dCompoundProperties(SdrObject& rObj);
-
- // constructor for copying, but using new object
- E3dCompoundProperties(const E3dCompoundProperties& rProps, SdrObject& rObj);
-
- // destructor
- virtual ~E3dCompoundProperties();
-
- // Clone() operator, normally just calls the local copy constructor
- virtual BaseProperties& Clone(SdrObject& rObj) const SAL_OVERRIDE;
-
- // get itemset
- virtual const SfxItemSet& GetObjectItemSet() const SAL_OVERRIDE;
-
- // Get merged ItemSet. Normally, this maps directly to GetObjectItemSet(), but may
- // be overloaded e.g for group objects to return a merged ItemSet of the object.
- // When using this method the returned ItemSet may contain items in the state
- // SfxItemState::DONTCARE which means there were several such items with different
- // values.
- virtual const SfxItemSet& GetMergedItemSet() const SAL_OVERRIDE;
-
- // Set merged ItemSet. Normally, this maps to SetObjectItemSet().
- virtual void SetMergedItemSet(const SfxItemSet& rSet, bool bClearAllItems = false) SAL_OVERRIDE;
- };
- } // end of namespace properties
-} // end of namespace sdr
-
-
-
-#endif // INCLUDED_SVX_SDR_PROPERTIES_E3DCOMPOUNDPROPERTIES_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/sdr/properties/e3dproperties.hxx b/include/svx/sdr/properties/e3dproperties.hxx
deleted file mode 100644
index 39e10235cb26..000000000000
--- a/include/svx/sdr/properties/e3dproperties.hxx
+++ /dev/null
@@ -1,64 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * 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 .
- */
-
-#ifndef INCLUDED_SVX_SDR_PROPERTIES_E3DPROPERTIES_HXX
-#define INCLUDED_SVX_SDR_PROPERTIES_E3DPROPERTIES_HXX
-
-#include <svx/sdr/properties/attributeproperties.hxx>
-#include <svx/svxdllapi.h>
-
-
-
-namespace sdr
-{
- namespace properties
- {
- class SVX_DLLPUBLIC E3dProperties : public AttributeProperties
- {
- protected:
- // create a new itemset
- virtual SfxItemSet& CreateObjectSpecificItemSet(SfxItemPool& rPool) SAL_OVERRIDE;
-
- // react on ItemSet changes
- virtual void ItemSetChanged(const SfxItemSet& rSet) SAL_OVERRIDE;
-
- public:
- // basic constructor
- explicit E3dProperties(SdrObject& rObj);
-
- // constructor for copying, but using new object
- E3dProperties(const E3dProperties& rProps, SdrObject& rObj);
-
- // destructor
- virtual ~E3dProperties();
-
- // Clone() operator, normally just calls the local copy constructor
- virtual BaseProperties& Clone(SdrObject& rObj) const SAL_OVERRIDE;
-
- // set a new StyleSheet and broadcast
- virtual void SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr) SAL_OVERRIDE;
- };
- } // end of namespace properties
-} // end of namespace sdr
-
-
-
-#endif // INCLUDED_SVX_SDR_PROPERTIES_E3DPROPERTIES_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/sdr/properties/emptyproperties.hxx b/include/svx/sdr/properties/emptyproperties.hxx
deleted file mode 100644
index 1c7f0250046a..000000000000
--- a/include/svx/sdr/properties/emptyproperties.hxx
+++ /dev/null
@@ -1,96 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * 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 .
- */
-
-#ifndef INCLUDED_SVX_SDR_PROPERTIES_EMPTYPROPERTIES_HXX
-#define INCLUDED_SVX_SDR_PROPERTIES_EMPTYPROPERTIES_HXX
-
-#include <svx/sdr/properties/properties.hxx>
-#include <svx/svxdllapi.h>
-
-
-
-namespace sdr
-{
- namespace properties
- {
- class SVX_DLLPUBLIC EmptyProperties : public BaseProperties
- {
- protected:
- // the to be used ItemSet
- SfxItemSet* mpEmptyItemSet;
-
- // create a new itemset
- virtual SfxItemSet& CreateObjectSpecificItemSet(SfxItemPool& rPool) SAL_OVERRIDE;
-
- // test changeability for a single item
- virtual bool AllowItemChange(const sal_uInt16 nWhich, const SfxPoolItem* pNewItem = 0) const SAL_OVERRIDE;
-
- // Do the ItemChange, may do special handling
- virtual void ItemChange(const sal_uInt16 nWhich, const SfxPoolItem* pNewItem = 0) SAL_OVERRIDE;
-
- // Called after ItemChange() is done for all items.
- virtual void PostItemChange(const sal_uInt16 nWhich) SAL_OVERRIDE;
-
- // react on ItemSet changes
- virtual void ItemSetChanged(const SfxItemSet& rSet) SAL_OVERRIDE;
-
- public:
- // basic constructor
- explicit EmptyProperties(SdrObject& rObj);
-
- // constructor for copying, but using new object
- EmptyProperties(const EmptyProperties& rProps, SdrObject& rObj);
-
- // destructor
- virtual ~EmptyProperties();
-
- // Clone() operator, normally just calls the local copy constructor
- virtual BaseProperties& Clone(SdrObject& rObj) const SAL_OVERRIDE;
-
- // get itemset
- virtual const SfxItemSet& GetObjectItemSet() const SAL_OVERRIDE;
-
- // set single item
- virtual void SetObjectItem(const SfxPoolItem& rItem) SAL_OVERRIDE;
-
- // set single item direct, do not do any notifies or things like that
- virtual void SetObjectItemDirect(const SfxPoolItem& rItem) SAL_OVERRIDE;
-
- // clear single item
- virtual void ClearObjectItem(const sal_uInt16 nWhich = 0) SAL_OVERRIDE;
-
- // clear single item direct, do not do any notifies or things like that.
- // Also supports complete deleteion of items when default parameter 0 is used.
- virtual void ClearObjectItemDirect(const sal_uInt16 nWhich = 0) SAL_OVERRIDE;
-
- // set complete item set
- virtual void SetObjectItemSet(const SfxItemSet& rSet) SAL_OVERRIDE;
-
- // set a new StyleSheet and broadcast
- virtual void SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr) SAL_OVERRIDE;
-
- // get the installed StyleSheet
- virtual SfxStyleSheet* GetStyleSheet() const SAL_OVERRIDE;
- };
- } // end of namespace properties
-} // end of namespace sdr
-
-#endif // INCLUDED_SVX_SDR_PROPERTIES_EMPTYPROPERTIES_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/sdr/properties/rectangleproperties.hxx b/include/svx/sdr/properties/rectangleproperties.hxx
deleted file mode 100644
index c78becdb6dec..000000000000
--- a/include/svx/sdr/properties/rectangleproperties.hxx
+++ /dev/null
@@ -1,61 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * 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 .
- */
-
-#ifndef INCLUDED_SVX_SDR_PROPERTIES_RECTANGLEPROPERTIES_HXX
-#define INCLUDED_SVX_SDR_PROPERTIES_RECTANGLEPROPERTIES_HXX
-
-#include <svx/sdr/properties/textproperties.hxx>
-#include <svx/svxdllapi.h>
-
-
-
-namespace sdr
-{
- namespace properties
- {
- class SVX_DLLPUBLIC RectangleProperties : public TextProperties
- {
- protected:
- // react on ItemSet changes
- virtual void ItemSetChanged(const SfxItemSet& rSet) SAL_OVERRIDE;
-
- public:
- // basic constructor
- explicit RectangleProperties(SdrObject& rObj);
-
- // constructor for copying, but using new object
- RectangleProperties(const RectangleProperties& rProps, SdrObject& rObj);
-
- // destructor
- virtual ~RectangleProperties();
-
- // Clone() operator, normally just calls the local copy constructor
- virtual BaseProperties& Clone(SdrObject& rObj) const SAL_OVERRIDE;
-
- // set a new StyleSheet and broadcast
- virtual void SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr) SAL_OVERRIDE;
- };
- } // end of namespace properties
-} // end of namespace sdr
-
-
-
-#endif // INCLUDED_SVX_SDR_PROPERTIES_RECTANGLEPROPERTIES_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/sdr/properties/textproperties.hxx b/include/svx/sdr/properties/textproperties.hxx
deleted file mode 100644
index 3a6a5c6991af..000000000000
--- a/include/svx/sdr/properties/textproperties.hxx
+++ /dev/null
@@ -1,93 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * 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 .
- */
-
-#ifndef INCLUDED_SVX_SDR_PROPERTIES_TEXTPROPERTIES_HXX
-#define INCLUDED_SVX_SDR_PROPERTIES_TEXTPROPERTIES_HXX
-
-#include <svx/itextprovider.hxx>
-#include <svx/sdr/properties/attributeproperties.hxx>
-#include <svx/svxdllapi.h>
-
-
-
-namespace sdr
-{
- namespace properties
- {
- class SVX_DLLPUBLIC TextProperties : public AttributeProperties
- {
- private:
- // #i101556# versioning support
- sal_uInt32 maVersion;
-
- protected:
- // create a new itemset
- virtual SfxItemSet& CreateObjectSpecificItemSet(SfxItemPool& rPool) SAL_OVERRIDE;
-
- // Do the ItemChange, may do special handling
- virtual void ItemChange(const sal_uInt16 nWhich, const SfxPoolItem* pNewItem = 0) SAL_OVERRIDE;
-
- // react on ItemSet changes
- virtual void ItemSetChanged(const SfxItemSet& rSet) SAL_OVERRIDE;
-
- /// Get the TextProvider related to our SdrObject
- virtual const svx::ITextProvider& getTextProvider() const;
-
- public:
- // basic constructor
- explicit TextProperties(SdrObject& rObj);
-
- // constructor for copying, but using new object
- TextProperties(const TextProperties& rProps, SdrObject& rObj);
-
- // destructor
- virtual ~TextProperties();
-
- // Clone() operator, normally just calls the local copy constructor
- virtual BaseProperties& Clone(SdrObject& rObj) const SAL_OVERRIDE;
-
- // set a new StyleSheet and broadcast
- virtual void SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr) SAL_OVERRIDE;
-
- // force default attributes for a specific object type, called from
- // DefaultProperties::GetObjectItemSet() if a new ItemSet is created
- virtual void ForceDefaultAttributes() SAL_OVERRIDE;
-
- // force all attributes which come from styles to hard attributes
- // to be able to live without the style.
- virtual void ForceStyleToHardAttributes() SAL_OVERRIDE;
-
- // This is the notifyer from SfxListener
- virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) SAL_OVERRIDE;
-
- // Set single item at the local ItemSet. *Does not use* AllowItemChange(),
- // ItemChange(), PostItemChange() and ItemSetChanged() calls.
- void SetObjectItemNoBroadcast(const SfxPoolItem& rItem);
-
- // #i101556# versioning support
- virtual sal_uInt32 getVersion() const SAL_OVERRIDE;
- };
- } // end of namespace properties
-} // end of namespace sdr
-
-
-
-#endif // INCLUDED_SVX_SDR_PROPERTIES_TEXTPROPERTIES_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */