summaryrefslogtreecommitdiffstats
path: root/svx/source/sdr/properties/groupproperties.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-11-14 12:37:12 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-11-14 12:37:12 +0000
commit6df6b55397e3b291d0838b4d26ec315595899a55 (patch)
treefdcf1a3745d473805e4b7c9bd68ff614f7bf52c2 /svx/source/sdr/properties/groupproperties.cxx
parentINTEGRATION: CWS aw024 (1.6.140); FILE MERGED (diff)
downloadcore-6df6b55397e3b291d0838b4d26ec315595899a55.tar.gz
core-6df6b55397e3b291d0838b4d26ec315595899a55.zip
INTEGRATION: CWS aw024 (1.4.140); FILE MERGED
2006/09/21 19:22:10 aw 1.4.140.5: RESYNC: (1.7-1.8); FILE MERGED 2006/07/04 13:10:09 aw 1.4.140.4: RESYNC: (1.6-1.7); FILE MERGED 2005/11/18 17:04:26 aw 1.4.140.3: RESYNC: (1.5-1.6); FILE MERGED 2005/09/18 04:54:52 aw 1.4.140.2: RESYNC: (1.4-1.5); FILE MERGED 2004/12/23 16:52:41 aw 1.4.140.1: #i39525
Diffstat (limited to 'svx/source/sdr/properties/groupproperties.cxx')
-rw-r--r--svx/source/sdr/properties/groupproperties.cxx110
1 files changed, 35 insertions, 75 deletions
diff --git a/svx/source/sdr/properties/groupproperties.cxx b/svx/source/sdr/properties/groupproperties.cxx
index 6e0c41e77d35..0d99605d6f9e 100644
--- a/svx/source/sdr/properties/groupproperties.cxx
+++ b/svx/source/sdr/properties/groupproperties.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: groupproperties.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 05:43:19 $
+ * last change: $Author: ihi $ $Date: 2006-11-14 13:37:12 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -196,30 +196,24 @@ namespace sdr
void GroupProperties::SetMergedItem(const SfxPoolItem& rItem)
{
- //BFS01if(!((const SdrObjGroup&)GetSdrObject()).IsLinkedGroup())
- //BFS01{
- const SdrObjList* pSub = ((const SdrObjGroup&)GetSdrObject()).GetSubList();
- const sal_uInt32 nCount(pSub->GetObjCount());
+ const SdrObjList* pSub = ((const SdrObjGroup&)GetSdrObject()).GetSubList();
+ const sal_uInt32 nCount(pSub->GetObjCount());
- for(sal_uInt32 a(0L); a < nCount; a++)
- {
- pSub->GetObj(a)->GetProperties().SetMergedItem(rItem);
- }
- //BFS01}
+ for(sal_uInt32 a(0L); a < nCount; a++)
+ {
+ pSub->GetObj(a)->GetProperties().SetMergedItem(rItem);
+ }
}
void GroupProperties::ClearMergedItem(const sal_uInt16 nWhich)
{
- //BFS01if(!((const SdrObjGroup&)GetSdrObject()).IsLinkedGroup())
- //BFS01{
- const SdrObjList* pSub = ((const SdrObjGroup&)GetSdrObject()).GetSubList();
- const sal_uInt32 nCount(pSub->GetObjCount());
+ const SdrObjList* pSub = ((const SdrObjGroup&)GetSdrObject()).GetSubList();
+ const sal_uInt32 nCount(pSub->GetObjCount());
- for(sal_uInt32 a(0L); a < nCount; a++)
- {
- pSub->GetObj(a)->GetProperties().ClearMergedItem(nWhich);
- }
- //BFS01}
+ for(sal_uInt32 a(0L); a < nCount; a++)
+ {
+ pSub->GetObj(a)->GetProperties().ClearMergedItem(nWhich);
+ }
}
void GroupProperties::SetObjectItemSet(const SfxItemSet& /*rSet*/)
@@ -252,75 +246,41 @@ namespace sdr
{
SfxStyleSheet* pRetval = 0L;
- //BFS01if(!((const SdrObjGroup&)GetSdrObject()).IsLinkedGroup())
- //BFS01{
- const SdrObjList* pSub = ((const SdrObjGroup&)GetSdrObject()).GetSubList();
- const sal_uInt32 nCount(pSub->GetObjCount());
+ const SdrObjList* pSub = ((const SdrObjGroup&)GetSdrObject()).GetSubList();
+ const sal_uInt32 nCount(pSub->GetObjCount());
- for(sal_uInt32 a(0L); a < nCount; a++)
- {
- SfxStyleSheet* pCandidate = pSub->GetObj(a)->GetStyleSheet();
+ for(sal_uInt32 a(0L); a < nCount; a++)
+ {
+ SfxStyleSheet* pCandidate = pSub->GetObj(a)->GetStyleSheet();
- if(pRetval)
- {
- if(pCandidate != pRetval)
- {
- // different StyleSheelts, return none
- return 0L;
- }
- }
- else
+ if(pRetval)
+ {
+ if(pCandidate != pRetval)
{
- pRetval = pCandidate;
+ // different StyleSheelts, return none
+ return 0L;
}
}
- //BFS01}
+ else
+ {
+ pRetval = pCandidate;
+ }
+ }
return pRetval;
}
void GroupProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, sal_Bool bDontRemoveHardAttr)
{
- //BFS01if(!((const SdrObjGroup&)GetSdrObject()).IsLinkedGroup())
- //BFS01{
- const SdrObjList* pSub = ((const SdrObjGroup&)GetSdrObject()).GetSubList();
- const sal_uInt32 nCount(pSub->GetObjCount());
+ const SdrObjList* pSub = ((const SdrObjGroup&)GetSdrObject()).GetSubList();
+ const sal_uInt32 nCount(pSub->GetObjCount());
- for(sal_uInt32 a(0L); a < nCount; a++)
- {
- pSub->GetObj(a)->SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr);
- }
- //BFS01}
+ for(sal_uInt32 a(0L); a < nCount; a++)
+ {
+ pSub->GetObj(a)->SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr);
+ }
}
-//BFS01 void GroupProperties::PreProcessSave()
-//BFS01 {
-//BFS01 //BFS01if(!((const SdrObjGroup&)GetSdrObject()).IsLinkedGroup())
-//BFS01 //BFS01{
-//BFS01 const SdrObjList* pSub = ((const SdrObjGroup&)GetSdrObject()).GetSubList();
-//BFS01 const sal_uInt32 nCount(pSub->GetObjCount());
-//BFS01
-//BFS01 for(sal_uInt32 a(0L); a < nCount; a++)
-//BFS01 {
-//BFS01 pSub->GetObj(a)->GetProperties().PreProcessSave();
-//BFS01 }
-//BFS01 //BFS01}
-//BFS01 }
-
-//BFS01 void GroupProperties::PostProcessSave()
-//BFS01 {
-//BFS01 //BFS01if(!((const SdrObjGroup&)GetSdrObject()).IsLinkedGroup())
-//BFS01 //BFS01{
-//BFS01 const SdrObjList* pSub = ((const SdrObjGroup&)GetSdrObject()).GetSubList();
-//BFS01 const sal_uInt32 nCount(pSub->GetObjCount());
-//BFS01
-//BFS01 for(sal_uInt32 a(0L); a < nCount; a++)
-//BFS01 {
-//BFS01 pSub->GetObj(a)->GetProperties().PostProcessSave();
-//BFS01 }
-//BFS01 //BFS01}
-//BFS01 }
-
void GroupProperties::ForceDefaultAttributes()
{
// nothing to do here, groups have no items and thus no default items, too.