summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-06 11:36:51 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-06 11:36:51 +0000
commitd93914554d69c27f02eab6b34d8b49a08d66f04b (patch)
treeda9a48445a2965ada9abfa0d4d5b00483e9c240e /svx/source/unodraw
parent2ed4d5ac55a29daae12a3593a22ca0dbf0c3c10f (diff)
INTEGRATION: CWS impressodf12 (1.59.12); FILE MERGED
2008/05/26 16:17:41 cl 1.59.12.4: RESYNC: (1.60-1.61); FILE MERGED 2008/04/25 08:58:44 cl 1.59.12.3: RESYNC: (1.59-1.60); FILE MERGED 2008/04/24 15:28:27 cl 1.59.12.2: #i35937# removed property HasLevels 2008/04/10 16:50:57 cl 1.59.12.1: #i35937# allow paragraph depth of -1 to switch of numbering
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/unoshtxt.cxx55
1 files changed, 1 insertions, 54 deletions
diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx
index d4e69d8171..75ba1ec5fa 100644
--- a/svx/source/unodraw/unoshtxt.cxx
+++ b/svx/source/unodraw/unoshtxt.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: unoshtxt.cxx,v $
- * $Revision: 1.61 $
+ * $Revision: 1.62 $
*
* This file is part of OpenOffice.org.
*
@@ -1122,59 +1122,6 @@ Point SvxTextEditSource::PixelToLogic( const Point& rPoint, const MapMode& rMapM
return mpImpl->PixelToLogic( rPoint, rMapMode );
}
-/** this method returns true if the outliner para object of the given shape has
- a paragraph with a level > 0 or if there is a paragraph with the EE_PARA_BULLETSTATE
- set to true. This is needed for xml export to decide if we need to export the
- level information.
-*/
-sal_Bool SvxTextEditSource::hasLevels( const SdrObject* pObject )
-{
- OutlinerParaObject* pOutlinerParaObject = pObject->GetOutlinerParaObject();
- if( NULL == pOutlinerParaObject )
- return sal_False;
-
- USHORT nParaCount = (USHORT)pOutlinerParaObject->Count();
- USHORT nPara;
- for( nPara = 0; nPara < nParaCount; nPara++ )
- {
- if( pOutlinerParaObject->GetDepth( nPara ) > 0 )
- return sal_True;
- }
-
- sal_Bool bHadBulletStateOnEachPara = sal_True;
-
- const EditTextObject& rEditTextObject = pOutlinerParaObject->GetTextObject();
- const SfxPoolItem* pItem;
-
- for( nPara = 0; nPara < nParaCount; nPara++ )
- {
- SfxItemSet aSet = rEditTextObject.GetParaAttribs( nPara );
- if( aSet.GetItemState(EE_PARA_BULLETSTATE, sal_False, &pItem) == SFX_ITEM_SET )
- {
- if( ((const SfxUInt16Item*) pItem)->GetValue() )
- return sal_True;
- }
- else
- {
- bHadBulletStateOnEachPara = sal_False;
- }
- }
-
- // if there was at least one paragraph without a bullet state item we
- // also need to check the stylesheet for a bullet state item
- if( !bHadBulletStateOnEachPara && pObject->GetStyleSheet() )
- {
- const SfxItemSet& rSet = pObject->GetStyleSheet()->GetItemSet();
- if( rSet.GetItemState(EE_PARA_BULLETSTATE, sal_False, &pItem) == SFX_ITEM_SET )
- {
- if( ((const SfxUInt16Item*)pItem)->GetValue() )
- return sal_True;
- }
- }
-
- return sal_False;
-}
-
void SvxTextEditSource::addRange( SvxUnoTextRangeBase* pNewRange )
{
mpImpl->addRange( pNewRange );