summaryrefslogtreecommitdiff
path: root/svx
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
commit4f852787478852ce6e3a5d56d260254fe27a3bb9 (patch)
tree2a1b58d233f6e89b3f1e7cc3222417c3e5bd6348 /svx
parent9b0ab7d50b728af5d708cbdd0c11eb544ffb953d (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')
-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 6004fe68b639..ba254b856b42 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 );