svdogrp.cxx (cdf0e10c) svdogrp.cxx (a5258243)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 765 unchanged lines hidden (view full) ---

774 pSub->NbcReformatAllTextObjects();
775}
776
777void SdrObjGroup::ReformatText()
778{
779 pSub->ReformatAllTextObjects();
780}
781
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 765 unchanged lines hidden (view full) ---

774 pSub->NbcReformatAllTextObjects();
775}
776
777void SdrObjGroup::ReformatText()
778{
779 pSub->ReformatAllTextObjects();
780}
781
782SdrObject* SdrObjGroup::DoConvertToPolyObj(sal_Bool bBezier) const
782SdrObject* SdrObjGroup::DoConvertToPolyObj(sal_Bool bBezier, bool bAddText) const
783{
784 SdrObject* pGroup = new SdrObjGroup;
785 pGroup->SetModel(GetModel());
786
787 for(sal_uInt32 a=0;a<pSub->GetObjCount();a++)
788 {
789 SdrObject* pIterObj = pSub->GetObj(a);
783{
784 SdrObject* pGroup = new SdrObjGroup;
785 pGroup->SetModel(GetModel());
786
787 for(sal_uInt32 a=0;a<pSub->GetObjCount();a++)
788 {
789 SdrObject* pIterObj = pSub->GetObj(a);
790 SdrObject* pResult = pIterObj->DoConvertToPolyObj(bBezier);
790 SdrObject* pResult = pIterObj->DoConvertToPolyObj(bBezier, bAddText);
791
792 // pResult can be NULL e.g. for empty objects
793 if( pResult )
794 pGroup->GetSubList()->NbcInsertObject(pResult);
795 }
796
797 return pGroup;
798}
799
800// eof
791
792 // pResult can be NULL e.g. for empty objects
793 if( pResult )
794 pGroup->GetSubList()->NbcInsertObject(pResult);
795 }
796
797 return pGroup;
798}
799
800// eof