xmloff/source/text/txtparae.cxx |   43 ----------------------------------------
 1 file changed, 43 deletions(-)

New commits:
commit e73e117c1309b586f59a4c901aa30117f457727c
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Fri Apr 26 00:44:45 2024 +0500
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Fri Apr 26 05:49:50 2024 +0200

    This block seems obsolete now, try to drop it
    
    ... and see if something breaks. Unit tests pass.
    Likely obsoleted by commit 69ed893087f89d176a5ec4b263ce8d75774be72b
    (tdf#160253: fix list identifier export decision code, 2024-04-24).
    
    Change-Id: I4fde19e1047104686df22053c9b140819ea72963
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166651
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 09af34d44648..df324c16acad 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -1684,49 +1684,6 @@ void 
XMLTextParagraphExport::collectTextAutoStylesAndNodeExportOrder(bool bIsPro
             }
         }
 
-    Reference< XNumberingRulesSupplier > xNumberingRulesSupp( 
GetExport().GetModel(), UNO_QUERY );
-    if ( xNumberingRulesSupp.is() )
-    {
-        Reference< XIndexAccess > xNumberingRules = 
xNumberingRulesSupp->getNumberingRules();
-        sal_Int32 nCount = xNumberingRules->getCount();
-        // Custom outline assignment lost after re-importing sxw (#i73361#)
-        for( sal_Int32 i = 0; i < nCount; ++i )
-        {
-            Reference< XIndexReplace > xNumRule( xNumberingRules->getByIndex( 
i ), UNO_QUERY );
-            if( xNumRule.is() && xNumRule->getCount() )
-            {
-                Reference < XNamed > xNamed( xNumRule, UNO_QUERY );
-                OUString sName;
-                if( xNamed.is() )
-                    sName = xNamed->getName();
-                bool bAdd = sName.isEmpty();
-                if( !bAdd )
-                {
-                    Reference < XPropertySet > xNumPropSet( xNumRule,
-                                                            UNO_QUERY );
-                    if( xNumPropSet.is() &&
-                        xNumPropSet->getPropertySetInfo()
-                                   ->hasPropertyByName( "IsAutomatic" ) )
-                    {
-                        bAdd = 
*o3tl::doAccess<bool>(xNumPropSet->getPropertyValue( "IsAutomatic" ));
-                        // Check on outline style (#i73361#)
-                        if ( bAdd &&
-                             xNumPropSet->getPropertySetInfo()
-                                       ->hasPropertyByName( 
"NumberingIsOutline" ) )
-                        {
-                            bAdd = 
!(*o3tl::doAccess<bool>(xNumPropSet->getPropertyValue( "NumberingIsOutline" )));
-                        }
-                    }
-                    else
-                    {
-                        bAdd = true;
-                    }
-                }
-                if( bAdd )
-                    maListAutoPool.Add( xNumRule );
-            }
-        }
-    }
     mbCollected = true;
 }
 

Reply via email to