sc/inc/globstr.hrc                             |    3 +--
 sc/qa/extras/scautoformatobj.cxx               |    2 +-
 sc/qa/extras/scautoformatsobj.cxx              |    2 +-
 sc/qa/uitest/calc_tests6/tdf91726.py           |    4 ++--
 sc/source/core/data/attarray.cxx               |    2 +-
 sc/source/core/data/docpool.cxx                |    2 +-
 sc/source/core/data/documen8.cxx               |    2 +-
 sc/source/core/data/document.cxx               |    7 +------
 sc/source/core/data/dpoutput.cxx               |    2 +-
 sc/source/core/data/patattr.cxx                |    2 +-
 sc/source/core/data/stlpool.cxx                |   17 ++++++-----------
 sc/source/core/data/stlsheet.cxx               |    4 +---
 sc/source/core/data/table1.cxx                 |    2 +-
 sc/source/core/data/table5.cxx                 |    2 +-
 sc/source/core/tool/autoform.cxx               |    4 ++--
 sc/source/core/tool/stylehelper.cxx            |    4 ++--
 sc/source/filter/excel/impop.cxx               |    2 +-
 sc/source/filter/excel/xestyle.cxx             |    4 ++--
 sc/source/filter/excel/xistyle.cxx             |    6 +++---
 sc/source/filter/excel/xltools.cxx             |    4 ++--
 sc/source/filter/html/htmlexp.cxx              |    2 +-
 sc/source/filter/oox/stylesbuffer.cxx          |    6 +++---
 sc/source/ui/condformat/condformatdlgentry.cxx |    2 +-
 sc/source/ui/docshell/docsh4.cxx               |    2 +-
 sc/source/ui/unoobj/cellsuno.cxx               |    4 ++--
 sc/source/ui/unoobj/styleuno.cxx               |    2 +-
 26 files changed, 41 insertions(+), 54 deletions(-)

New commits:
commit a5b3211f072d982e1ee136e864f153836c76a5ca
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Nov 5 20:35:09 2020 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Nov 6 09:53:04 2020 +0100

    tdf#134161: Revert "tdf#132137 Rename Default Style in Calc."
    
    This reverts 4111ed76906bf6be05b704bf52fa91353dfef183
    
    the document would also hang if
    
    define STR_STYLENAME_STANDARD NC_("STR_STYLENAME_STANDARD", "Default");
    
    is replaced by
    
    define STR_STYLENAME_STANDARD NC_("STR_STYLENAME_STANDARD", "DefaultTest");
    
    meaning somewhere in the code 'Default' is harcoded
    as git grep "\"Default\"" sc/source/ shows
    
    Reverting for now so we can backport it to libreoffice-7-0
    while a better solution is provided for tdf#132137
    Some other problems of the reverted commit are mentioned
    in comment 4 and comment 5 of tdf#134161
    I'm adding a unittest in another commit so this one
    can be easily reverted in the future
    
    Change-Id: Ib7c4a99ff4957eba7ec0b644e989c7a08b46f2a8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105381
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/inc/globstr.hrc b/sc/inc/globstr.hrc
index 9cc238bee9ba..93972e0a1044 100644
--- a/sc/inc/globstr.hrc
+++ b/sc/inc/globstr.hrc
@@ -269,8 +269,7 @@
 #define STR_EXPORT_DBF                          NC_("STR_EXPORT_DBF", "DBase 
export")
 #define STR_EXPORT_DIF                          NC_("STR_EXPORT_DIF", "Dif 
Export")
 #define STR_IMPORT_DIF                          NC_("STR_IMPORT_DIF", "Dif 
Import")
-#define STR_STYLENAME_STANDARD_CELL             NC_("STR_STYLENAME_STANDARD", 
"Default Cell Style")
-#define STR_STYLENAME_STANDARD_PAGE             NC_("STR_STYLENAME_STANDARD", 
"Default Page Style")
+#define STR_STYLENAME_STANDARD                  NC_("STR_STYLENAME_STANDARD", 
"Default")
 #define STR_STYLENAME_HEADING                   NC_("STR_STYLENAME_HEADING", 
"Heading")
 #define STR_STYLENAME_HEADING_1                 NC_("STR_STYLENAME_HEADING_1", 
"Heading 1")
 #define STR_STYLENAME_HEADING_2                 NC_("STR_STYLENAME_HEADING_2", 
"Heading 2")
diff --git a/sc/qa/extras/scautoformatobj.cxx b/sc/qa/extras/scautoformatobj.cxx
index 23abaa956f1c..76db8c6a3592 100644
--- a/sc/qa/extras/scautoformatobj.cxx
+++ b/sc/qa/extras/scautoformatobj.cxx
@@ -88,7 +88,7 @@ ScAutoFormatObj::ScAutoFormatObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
     , XElementAccess(cppu::UnoType<beans::XPropertySet>::get())
     , XIndexAccess(16)
-    , XNamed("Default Cell Style")
+    , XNamed("Default")
     , XServiceInfo("ScAutoFormatObj", "com.sun.star.sheet.TableAutoFormat")
 {
 }
diff --git a/sc/qa/extras/scautoformatsobj.cxx 
b/sc/qa/extras/scautoformatsobj.cxx
index 769478608506..ed799c018ef4 100644
--- a/sc/qa/extras/scautoformatsobj.cxx
+++ b/sc/qa/extras/scautoformatsobj.cxx
@@ -89,7 +89,7 @@ ScAutoFormatsObj::ScAutoFormatsObj()
     : CalcUnoApiTest("/sc/qa/extras/testdocuments")
     , XElementAccess(cppu::UnoType<container::XNamed>::get())
     , XIndexAccess(2)
-    , XNameAccess("Default Cell Style")
+    , XNameAccess("Default")
     , XNameContainer("ScAutoFormatsObj")
     , XNameReplace("ScAutoFormatsObj")
     , XServiceInfo("stardiv.StarCalc.ScAutoFormatsObj", 
"com.sun.star.sheet.TableAutoFormats")
diff --git a/sc/qa/uitest/calc_tests6/tdf91726.py 
b/sc/qa/uitest/calc_tests6/tdf91726.py
index 4dccc7c697ec..38703cb7e34a 100644
--- a/sc/qa/uitest/calc_tests6/tdf91726.py
+++ b/sc/qa/uitest/calc_tests6/tdf91726.py
@@ -28,7 +28,7 @@ class tdf91726(UITestCase):
         xadd = xDialog.getChild("add")
         def handle_name_dlg(dialog):
             nameEntry = dialog.getChild("name_entry")
-            nameEntry.executeAction("TYPE", mkPropertyValues({"TEXT":"Default 
Cell Style"}))
+            nameEntry.executeAction("TYPE", 
mkPropertyValues({"TEXT":"Default"}))
             xOKBtn = dialog.getChild("ok")
             def handle_error_dlg(dialog2):
                 #Error message: You have entered an invalid name.
@@ -43,7 +43,7 @@ class tdf91726(UITestCase):
             xDialog = self.xUITest.getTopFocusWindow()
             nameEntry = xDialog.getChild("name_entry")
             #back to name dialog, LO should not crash
-            self.assertEqual(get_state_as_dict(nameEntry)["Text"], "Default 
Cell Style")
+            self.assertEqual(get_state_as_dict(nameEntry)["Text"], "Default")
             xCanceltn = xDialog.getChild("cancel")
             self.ui_test.close_dialog_through_button(xCanceltn)
 
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index b582ac2c6871..c9fd30332c83 100644
--- a/sc/source/core/data/attarray.cxx
+++ b/sc/source/core/data/attarray.cxx
@@ -1823,7 +1823,7 @@ void ScAttrArray::FindStyleSheet( const 
SfxStyleSheetBase* pStyleSheet, ScFlatBo
                 rDocument.GetPool()->Remove(*mvData[nPos].pPattern);
                 pNewPattern->SetStyleSheet( static_cast<ScStyleSheet*>(
                     rDocument.GetStyleSheetPool()->
-                        Find( ScResId(STR_STYLENAME_STANDARD_CELL),
+                        Find( ScResId(STR_STYLENAME_STANDARD),
                               SfxStyleFamily::Para,
                               SfxStyleSearchBits::Auto | 
SfxStyleSearchBits::ScStandard ) ) );
                 mvData[nPos].pPattern = 
&rDocument.GetPool()->Put(*pNewPattern);
diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx
index 01a821a1c953..a4691f69ef81 100644
--- a/sc/source/core/data/docpool.cxx
+++ b/sc/source/core/data/docpool.cxx
@@ -279,7 +279,7 @@ ScDocumentPool::ScDocumentPool()
     // TODO: Write additional method ScGlobal::IsInit() or somesuch
     //       or detect whether this is the Secondary Pool for a MessagePool
     if ( ScGlobal::GetEmptyBrushItem() )
-        mvPoolDefaults[ ATTR_PATTERN     - ATTR_STARTINDEX ] = new 
ScPatternAttr( std::move(pSet), ScResId(STR_STYLENAME_STANDARD_CELL) );
+        mvPoolDefaults[ ATTR_PATTERN     - ATTR_STARTINDEX ] = new 
ScPatternAttr( std::move(pSet), ScResId(STR_STYLENAME_STANDARD) );
     else
         mvPoolDefaults[ ATTR_PATTERN     - ATTR_STARTINDEX ] = new 
ScPatternAttr( std::move(pSet), STRING_STANDARD ); // FIXME: without name?
 
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 0cef7c94acae..3e09e16656ab 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -331,7 +331,7 @@ bool ScDocument::RemovePageStyleInUse( const OUString& 
rStyle )
         if ( maTabs[i]->GetPageStyle() == rStyle )
         {
             bWasInUse = true;
-            maTabs[i]->SetPageStyle( ScResId(STR_STYLENAME_STANDARD_PAGE) );
+            maTabs[i]->SetPageStyle( ScResId(STR_STYLENAME_STANDARD) );
         }
 
     return bWasInUse;
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index c8d2d86f0eab..17d0bf5c9561 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -4965,12 +4965,7 @@ void ScDocument::StyleSheetChanged( const 
SfxStyleSheetBase* pStyleSheet, bool b
                 ( pStyleSheet, bRemoved, pDev, nPPTX, nPPTY, rZoomX, rZoomY );
     }
 
-    if ( pStyleSheet && pStyleSheet->GetName() == 
ScResId(STR_STYLENAME_STANDARD_CELL) )
-    {
-        //  update attributes for all note objects
-        ScDetectiveFunc::UpdateAllComments( *this );
-    }
-    else if ( pStyleSheet && pStyleSheet->GetName() == 
ScResId(STR_STYLENAME_STANDARD_PAGE) )
+    if ( pStyleSheet && pStyleSheet->GetName() == 
ScResId(STR_STYLENAME_STANDARD) )
     {
         //  update attributes for all note objects
         ScDetectiveFunc::UpdateAllComments( *this );
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index a80a3e6cd777..2716a2d79fc5 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -298,7 +298,7 @@ void lcl_SetStyleById(ScDocument* pDoc, SCTAB nTab,
 
         pStyle = static_cast<ScStyleSheet*>( &pStlPool->Make( aStyleName, 
SfxStyleFamily::Para,
                                                     
SfxStyleSearchBits::UserDefined ) );
-        pStyle->SetParent( ScResId(STR_STYLENAME_STANDARD_CELL) );
+        pStyle->SetParent( ScResId(STR_STYLENAME_STANDARD) );
         SfxItemSet& rSet = pStyle->GetItemSet();
         if (strcmp(pStrId, STR_PIVOT_STYLENAME_RESULT) == 0 || strcmp(pStrId, 
STR_PIVOT_STYLENAME_TITLE) == 0){
             rSet.Put( SvxWeightItem( WEIGHT_BOLD, ATTR_FONT_WEIGHT ) );
diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx
index 9d0245d58303..0a3433ba3d25 100644
--- a/sc/source/core/data/patattr.cxx
+++ b/sc/source/core/data/patattr.cxx
@@ -1015,7 +1015,7 @@ static SfxStyleSheetBase* lcl_CopyStyleToPool
 
         // if necessary create derivative Styles, if not available:
 
-        if ( (ScResId(STR_STYLENAME_STANDARD_CELL) != aStrParent || 
ScResId(STR_STYLENAME_STANDARD_PAGE) != aStrParent) &&
+        if ( ScResId(STR_STYLENAME_STANDARD) != aStrParent &&
              aStrSrcStyle != aStrParent &&
              !pDestPool->Find( aStrParent, eFamily ) )
         {
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx
index 59de29c849de..d1e831e0dd88 100644
--- a/sc/source/core/data/stlpool.cxx
+++ b/sc/source/core/data/stlpool.cxx
@@ -84,10 +84,7 @@ SfxStyleSheetBase& ScStyleSheetPool::Make( const OUString& 
rName,
         sal_uInt32 nCount = GetIndexedStyleSheets().GetNumberOfStyleSheets();
         for ( sal_uInt32 nAdd = 1; nAdd <= nCount; nAdd++ )
         {
-            OUString aNewName = ScResId(STR_STYLENAME_STANDARD_CELL) + 
OUString::number( nAdd );
-            if ( Find( aNewName, eFam ) == nullptr )
-                return SfxStyleSheetPool::Make(aNewName, eFam, mask);
-            aNewName = ScResId(STR_STYLENAME_STANDARD_PAGE) + 
OUString::number( nAdd );
+            OUString aNewName = ScResId(STR_STYLENAME_STANDARD) + 
OUString::number( nAdd );
             if ( Find( aNewName, eFam ) == nullptr )
                 return SfxStyleSheetPool::Make(aNewName, eFam, mask);
         }
@@ -104,8 +101,8 @@ SfxStyleSheetBase* ScStyleSheetPool::Create( const 
OUString&   rName,
                                              SfxStyleSearchBits nMaskP )
 {
     ScStyleSheet* pSheet = new ScStyleSheet( rName, *this, eFamily, nMaskP );
-    if ( eFamily == SfxStyleFamily::Para && 
ScResId(STR_STYLENAME_STANDARD_CELL) != rName )
-        pSheet->SetParent( ScResId(STR_STYLENAME_STANDARD_CELL) );
+    if ( eFamily == SfxStyleFamily::Para && ScResId(STR_STYLENAME_STANDARD) != 
rName )
+        pSheet->SetParent( ScResId(STR_STYLENAME_STANDARD) );
 
     return pSheet;
 }
@@ -190,8 +187,8 @@ void ScStyleSheetPool::CopyStdStylesFrom( ScStyleSheetPool* 
pSrcPool )
 {
     //  Copy Default styles
 
-    CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_STANDARD_CELL),     
SfxStyleFamily::Para );
-    CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_STANDARD_PAGE),     
SfxStyleFamily::Page );
+    CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_STANDARD),     
SfxStyleFamily::Para );
+    CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_STANDARD),     
SfxStyleFamily::Page );
     CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_REPORT),       
SfxStyleFamily::Page );
 }
 
@@ -232,7 +229,7 @@ void ScStyleSheetPool::CreateStandardStyles()
     SvxBoxItem      aBoxItem        ( ATTR_BORDER );
     SvxBoxInfoItem  aBoxInfoItem    ( ATTR_BORDER_INNER );
 
-    OUString  aStrStandard = ScResId(STR_STYLENAME_STANDARD_CELL);
+    OUString  aStrStandard = ScResId(STR_STYLENAME_STANDARD);
 
     // Cell format templates:
 
@@ -267,8 +264,6 @@ void ScStyleSheetPool::CreateStandardStyles()
 //    if ( eCtl == LANGUAGE_THAI )
 //        pSet->Put( SvxFontHeightItem( 300, 100, ATTR_CTL_FONT_HEIGHT ) );   
// 15 pt
 
-    aStrStandard = ScResId(STR_STYLENAME_STANDARD_PAGE);
-
     // Page format template:
 
     // 1. Standard
diff --git a/sc/source/core/data/stlsheet.cxx b/sc/source/core/data/stlsheet.cxx
index adf1cbacc46b..13acfa8e9e56 100644
--- a/sc/source/core/data/stlsheet.cxx
+++ b/sc/source/core/data/stlsheet.cxx
@@ -281,9 +281,7 @@ void ScStyleSheet::Notify( SfxBroadcaster&, const SfxHint& 
rHint )
 bool ScStyleSheet::SetName(const OUString& rNew, bool bReindexNow)
 {
     OUString aFileStdName = STRING_STANDARD;
-    if ( rNew == aFileStdName && aFileStdName != 
ScResId(STR_STYLENAME_STANDARD_CELL) )
-        return false;
-    else if ( rNew == aFileStdName && aFileStdName != 
ScResId(STR_STYLENAME_STANDARD_PAGE) )
+    if ( rNew == aFileStdName && aFileStdName != 
ScResId(STR_STYLENAME_STANDARD) )
         return false;
     else
         return SfxStyleSheet::SetName(rNew, bReindexNow);
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index f994024b80b7..79638f5ffa31 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -236,7 +236,7 @@ ScTable::ScTable( ScDocument& rDoc, SCTAB nNewTab, const 
OUString& rNewName,
     aCodeName( rNewName ),
     nLinkRefreshDelay( 0 ),
     nLinkMode( ScLinkMode::NONE ),
-    aPageStyle( ScResId(STR_STYLENAME_STANDARD_PAGE) ),
+    aPageStyle( ScResId(STR_STYLENAME_STANDARD) ),
     nRepeatStartX( SCCOL_REPEAT_NONE ),
     nRepeatEndX( SCCOL_REPEAT_NONE ),
     nRepeatStartY( SCROW_REPEAT_NONE ),
diff --git a/sc/source/core/data/table5.cxx b/sc/source/core/data/table5.cxx
index ff90463ba4c7..f2c248ee7fbf 100644
--- a/sc/source/core/data/table5.cxx
+++ b/sc/source/core/data/table5.cxx
@@ -1156,7 +1156,7 @@ void ScTable::SetPageStyle( const OUString& rName )
 
     if ( !pNewStyle )
     {
-        aStrNew = ScResId(STR_STYLENAME_STANDARD_PAGE);
+        aStrNew = ScResId(STR_STYLENAME_STANDARD);
         pNewStyle = pStylePool->Find( aStrNew, SfxStyleFamily::Page );
     }
 
diff --git a/sc/source/core/tool/autoform.cxx b/sc/source/core/tool/autoform.cxx
index 699c8ce9f824..05c76541ae11 100644
--- a/sc/source/core/tool/autoform.cxx
+++ b/sc/source/core/tool/autoform.cxx
@@ -675,7 +675,7 @@ ScAutoFormat::ScAutoFormat() :
 {
     //  create default autoformat
     std::unique_ptr<ScAutoFormatData> pData(new ScAutoFormatData);
-    OUString aName(ScResId(STR_STYLENAME_STANDARD_CELL));
+    OUString aName(ScResId(STR_STYLENAME_STANDARD));
     pData->SetName(aName);
 
     //  default font, default height
@@ -755,7 +755,7 @@ ScAutoFormat::ScAutoFormat() :
 
 bool DefaultFirstEntry::operator() (const OUString& left, const OUString& 
right) const
 {
-    OUString aStrStandard(ScResId(STR_STYLENAME_STANDARD_CELL));
+    OUString aStrStandard(ScResId(STR_STYLENAME_STANDARD));
     if (ScGlobal::GetpTransliteration()->isEqual( left, right ) )
         return false;
     if ( ScGlobal::GetpTransliteration()->isEqual( left, aStrStandard ) )
diff --git a/sc/source/core/tool/stylehelper.cxx 
b/sc/source/core/tool/stylehelper.cxx
index 9cec093029ae..36a1ae8ddebd 100644
--- a/sc/source/core/tool/stylehelper.cxx
+++ b/sc/source/core/tool/stylehelper.cxx
@@ -84,7 +84,7 @@ static const ScDisplayNameMap* lcl_GetStyleNameMap( 
SfxStyleFamily nType )
             { ScResId( STR_STYLENAME_ACCENT_3 ),  "Accent 3" },
             { ScResId( STR_STYLENAME_RESULT ),    "Result" },
             // API compatibility programmatic names after.
-            { ScResId( STR_STYLENAME_STANDARD_CELL ), 
OUString(SC_STYLE_PROG_STANDARD) },
+            { ScResId( STR_STYLENAME_STANDARD ), 
OUString(SC_STYLE_PROG_STANDARD) },
             { ScResId( STR_STYLENAME_RESULT ), OUString(SC_STYLE_PROG_RESULT) 
},
             { ScResId( STR_STYLENAME_RESULT1 ), 
OUString(SC_STYLE_PROG_RESULT1) },
             { ScResId( STR_STYLENAME_HEADING ), 
OUString(SC_STYLE_PROG_HEADING) },
@@ -105,7 +105,7 @@ static const ScDisplayNameMap* lcl_GetStyleNameMap( 
SfxStyleFamily nType )
     {
         static ScDisplayNameMap const aPageMap[]
         {
-            { ScResId( STR_STYLENAME_STANDARD_PAGE ), 
OUString(SC_STYLE_PROG_STANDARD) },
+            { ScResId( STR_STYLENAME_STANDARD ), 
OUString(SC_STYLE_PROG_STANDARD) },
             { ScResId( STR_STYLENAME_REPORT ),   
OUString(SC_STYLE_PROG_REPORT) },
             //  last entry remains empty
             { OUString(), OUString() },
diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx
index 5b2fa7cef930..abb1e8934758 100644
--- a/sc/source/filter/excel/impop.cxx
+++ b/sc/source/filter/excel/impop.cxx
@@ -1234,7 +1234,7 @@ void ImportExcel::PostDocLoad()
     /*  Set automatic page numbering in Default page style (default is "page 
number = 1").
         Otherwise hidden tables (i.e. for scenarios) which have Default page 
style will
         break automatic page numbering. */
-    if( SfxStyleSheetBase* pStyleSheet = GetStyleSheetPool().Find( ScResId( 
STR_STYLENAME_STANDARD_PAGE ), SfxStyleFamily::Page ) )
+    if( SfxStyleSheetBase* pStyleSheet = GetStyleSheetPool().Find( ScResId( 
STR_STYLENAME_STANDARD ), SfxStyleFamily::Page ) )
         pStyleSheet->GetItemSet().Put( SfxUInt16Item( ATTR_PAGE_FIRSTPAGENO, 0 
) );
 
     // outlines for all sheets, sets hidden rows and columns (#i11776# after 
filtered ranges)
diff --git a/sc/source/filter/excel/xestyle.cxx 
b/sc/source/filter/excel/xestyle.cxx
index d57bec08b487..dbf13483903a 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -2012,7 +2012,7 @@ XclExpXF::XclExpXF( const XclExpRoot& rRoot, const 
SfxStyleSheetBase& rStyleShee
     XclExpRoot( rRoot ),
     mnParentXFId( XclExpXFBuffer::GetXFIdFromIndex( EXC_XF_STYLEPARENT ) )
 {
-    bool bDefStyle = (rStyleSheet.GetName() == ScResId( 
STR_STYLENAME_STANDARD_CELL ));
+    bool bDefStyle = (rStyleSheet.GetName() == ScResId( STR_STYLENAME_STANDARD 
));
     sal_Int16 nScript = bDefStyle ? GetDefApiScript() : 
css::i18n::ScriptType::WEAK;
     Init( const_cast< SfxStyleSheetBase& >( rStyleSheet ).GetItemSet(), 
nScript,
         NUMBERFORMAT_ENTRY_NOT_FOUND, EXC_FONT_NOTFOUND, false, bDefStyle );
@@ -2923,7 +2923,7 @@ void XclExpXFBuffer::InsertDefaultRecords()
     maFills.push_back( lcl_GetPatternFill_Gray125() );
 
     // index 0: default style
-    if( SfxStyleSheetBase* pDefStyleSheet = GetStyleSheetPool().Find( ScResId( 
STR_STYLENAME_STANDARD_CELL ), SfxStyleFamily::Para ) )
+    if( SfxStyleSheetBase* pDefStyleSheet = GetStyleSheetPool().Find( ScResId( 
STR_STYLENAME_STANDARD ), SfxStyleFamily::Para ) )
     {
         XclExpXFRef xDefStyle = new XclExpXF( GetRoot(), *pDefStyleSheet );
         sal_uInt32 nXFId = AppendBuiltInXFWithStyle( xDefStyle, 
EXC_STYLE_NORMAL );
diff --git a/sc/source/filter/excel/xistyle.cxx 
b/sc/source/filter/excel/xistyle.cxx
index 4477f55b9e0b..98c91ab6f8c2 100644
--- a/sc/source/filter/excel/xistyle.cxx
+++ b/sc/source/filter/excel/xistyle.cxx
@@ -1360,7 +1360,7 @@ void XclImpXF::ApplyPatternToAttrVector(
             {
                 ScStyleSheet* pStyleSheet = static_cast<ScStyleSheet*>(
                     pStylePool->Find(
-                        ScResId(STR_STYLENAME_STANDARD_CELL), 
SfxStyleFamily::Para));
+                        ScResId(STR_STYLENAME_STANDARD), 
SfxStyleFamily::Para));
 
                 if (pStyleSheet)
                     rPat.SetStyleSheet(pStyleSheet, false);
@@ -1522,7 +1522,7 @@ ScStyleSheet* XclImpStyle::CreateStyleSheet()
             if( pXF ) pXF->SetAllUsedFlags( true );
             // use existing "Default" style sheet
             mpStyleSheet = static_cast< ScStyleSheet* >( 
GetStyleSheetPool().Find(
-                ScResId( STR_STYLENAME_STANDARD_CELL ), SfxStyleFamily::Para ) 
);
+                ScResId( STR_STYLENAME_STANDARD ), SfxStyleFamily::Para ) );
             OSL_ENSURE( mpStyleSheet, "XclImpStyle::CreateStyleSheet - Default 
style not found" );
             bCreatePattern = true;
         }
@@ -1620,7 +1620,7 @@ void XclImpXFBuffer::CreateUserStyles()
         BIFF4W import filter is never used to import from clipboard... */
     bool bReserveAll = (GetBiff() == EXC_BIFF4) && (GetCurrScTab() > 0);
     SfxStyleSheetIterator aStyleIter( GetDoc().GetStyleSheetPool(), 
SfxStyleFamily::Para );
-    OUString aStandardName = ScResId( STR_STYLENAME_STANDARD_CELL );
+    OUString aStandardName = ScResId( STR_STYLENAME_STANDARD );
     for( SfxStyleSheetBase* pStyleSheet = aStyleIter.First(); pStyleSheet; 
pStyleSheet = aStyleIter.Next() )
         if( (pStyleSheet->GetName() != aStandardName) && (bReserveAll || 
!pStyleSheet->IsUserDefined()) )
             if( aCellStyles.count( pStyleSheet->GetName() ) == 0 )
diff --git a/sc/source/filter/excel/xltools.cxx 
b/sc/source/filter/excel/xltools.cxx
index 1de11ca87bab..8ab44ed5a87f 100644
--- a/sc/source/filter/excel/xltools.cxx
+++ b/sc/source/filter/excel/xltools.cxx
@@ -555,7 +555,7 @@ OUString XclTools::GetBuiltInStyleName( sal_uInt8 nStyleId, 
const OUString& rNam
 
     if( nStyleId == EXC_STYLE_NORMAL )  // "Normal" becomes "Default" style
     {
-        aStyleName = ScResId( STR_STYLENAME_STANDARD_CELL );
+        aStyleName = ScResId( STR_STYLENAME_STANDARD );
     }
     else
     {
@@ -579,7 +579,7 @@ OUString XclTools::GetBuiltInStyleName( sal_uInt8 nStyleId, 
const OUString& rNam
 bool XclTools::IsBuiltInStyleName( const OUString& rStyleName, sal_uInt8* 
pnStyleId, sal_Int32* pnNextChar )
 {
     // "Default" becomes "Normal"
-    if (rStyleName == ScResId(STR_STYLENAME_STANDARD_CELL))
+    if (rStyleName == ScResId(STR_STYLENAME_STANDARD))
     {
         if( pnStyleId ) *pnStyleId = EXC_STYLE_NORMAL;
         if( pnNextChar ) *pnNextChar = rStyleName.getLength();
diff --git a/sc/source/filter/html/htmlexp.cxx 
b/sc/source/filter/html/htmlexp.cxx
index 13792201c8b0..3984d7f393fd 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -440,7 +440,7 @@ const SfxItemSet& ScHTMLExport::PageDefaults( SCTAB nTab )
     if ( !aHTMLStyle.bInitialized )
     {
         pStyleSheet = pStylePool->Find(
-                ScResId(STR_STYLENAME_STANDARD_CELL),
+                ScResId(STR_STYLENAME_STANDARD),
                 SfxStyleFamily::Para );
         OSL_ENSURE( pStyleSheet, "ParaStyle not found! :-(" );
         if (!pStyleSheet)
diff --git a/sc/source/filter/oox/stylesbuffer.cxx 
b/sc/source/filter/oox/stylesbuffer.cxx
index 89bc91dc17e4..c7baa9b976ba 100644
--- a/sc/source/filter/oox/stylesbuffer.cxx
+++ b/sc/source/filter/oox/stylesbuffer.cxx
@@ -2047,7 +2047,7 @@ void Xf::applyPatternToAttrList( AttrList& rAttrs, SCROW 
nRow1, SCROW nRow2, sal
             {
                 ScStyleSheet* pStyleSheet = static_cast<ScStyleSheet*>(
                     pStylePool->Find(
-                        ScResId(STR_STYLENAME_STANDARD_CELL), 
SfxStyleFamily::Para));
+                        ScResId(STR_STYLENAME_STANDARD), 
SfxStyleFamily::Para));
 
                 if (pStyleSheet)
                     rPat.SetStyleSheet( pStyleSheet, false );
@@ -2481,7 +2481,7 @@ void CellStyle::createCellStyle()
     if( !mbCreated )
     {
         if ( bDefStyle && maFinalName.isEmpty() )
-            maFinalName = ScResId( STR_STYLENAME_STANDARD_CELL );
+            maFinalName = ScResId( STR_STYLENAME_STANDARD );
         mbCreated = maFinalName.isEmpty();
     }
 
@@ -2496,7 +2496,7 @@ void CellStyle::createCellStyle()
     {
         // use existing "Default" style sheet
         mpStyleSheet = static_cast< ScStyleSheet* >( 
rDoc.GetStyleSheetPool()->Find(
-            ScResId( STR_STYLENAME_STANDARD_CELL ), SfxStyleFamily::Para ) );
+            ScResId( STR_STYLENAME_STANDARD ), SfxStyleFamily::Para ) );
         OSL_ENSURE( mpStyleSheet, "CellStyle::createStyle - Default style not 
found" );
         bCreatePattern = true;
     }
diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx 
b/sc/source/ui/condformat/condformatdlgentry.cxx
index fc2f19cd7559..8a9fe98c5242 100644
--- a/sc/source/ui/condformat/condformatdlgentry.cxx
+++ b/sc/source/ui/condformat/condformatdlgentry.cxx
@@ -423,7 +423,7 @@ void StyleSelect(weld::Window* pDialogParent, 
weld::ComboBox& rLbStyle, const Sc
     {
         // call new style dialog
         SfxUInt16Item aFamilyItem( SID_STYLE_FAMILY, 
sal_uInt16(SfxStyleFamily::Para) );
-        SfxStringItem aRefItem( SID_STYLE_REFERENCE, 
ScResId(STR_STYLENAME_STANDARD_CELL) );
+        SfxStringItem aRefItem( SID_STYLE_REFERENCE, 
ScResId(STR_STYLENAME_STANDARD) );
         css::uno::Any aAny(pDialogParent->GetXWindow());
         SfxUnoAnyItem aDialogParent( SID_DIALOG_PARENT, aAny );
 
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 737268f9b8e7..8526f99d9931 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -1511,7 +1511,7 @@ void ScDocShell::DoAutoStyle( const ScRange& rRange, 
const OUString& rStyle )
         pStylePool->FindCaseIns( rStyle, SfxStyleFamily::Para );
     if (!pStyleSheet)
         pStyleSheet = static_cast<ScStyleSheet*>(
-            pStylePool->Find( ScResId(STR_STYLENAME_STANDARD_CELL), 
SfxStyleFamily::Para ));
+            pStylePool->Find( ScResId(STR_STYLENAME_STANDARD), 
SfxStyleFamily::Para ));
     if (!pStyleSheet)
         return;
 
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index e72686fe2422..7ab5335529b2 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -1923,7 +1923,7 @@ void SAL_CALL ScCellRangesBase::setPropertyToDefault( 
const OUString& aPropertyN
             bChartRowAsHdr = false;
         else if ( pEntry->nWID == SC_WID_UNO_CELLSTYL )
         {
-            OUString aStyleName( ScResId( STR_STYLENAME_STANDARD_CELL ) );
+            OUString aStyleName( ScResId( STR_STYLENAME_STANDARD ) );
             pDocShell->GetDocFunc().ApplyStyle( *GetMarkData(), aStyleName, 
true );
         }
     }
@@ -1974,7 +1974,7 @@ uno::Any SAL_CALL ScCellRangesBase::getPropertyDefault( 
const OUString& aPropert
                         break;
                     case SC_WID_UNO_CELLSTYL:
                         aAny <<= 
ScStyleNameConversion::DisplayToProgrammaticName(
-                                    ScResId(STR_STYLENAME_STANDARD_CELL), 
SfxStyleFamily::Para );
+                                    ScResId(STR_STYLENAME_STANDARD), 
SfxStyleFamily::Para );
                         break;
                     case SC_WID_UNO_TBLBORD:
                     case SC_WID_UNO_TBLBORD2:
diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx
index 15e2074ffe44..5e32bb5f2417 100644
--- a/sc/source/ui/unoobj/styleuno.cxx
+++ b/sc/source/ui/unoobj/styleuno.cxx
@@ -759,7 +759,7 @@ void SAL_CALL ScStyleFamilyObj::removeByName( const 
OUString& aName )
             else
             {
                 if ( rDoc.RemovePageStyleInUse( aString ) )
-                    pDocShell->PageStyleModified( 
ScResId(STR_STYLENAME_STANDARD_PAGE), true );
+                    pDocShell->PageStyleModified( 
ScResId(STR_STYLENAME_STANDARD), true );
 
                 pStylePool->Remove( pStyle );
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to