summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh8.cxx33
1 files changed, 0 insertions, 33 deletions
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx
index 44dcbed876b9..de3ecf23470a 100644
--- a/sc/source/ui/docshell/docsh8.cxx
+++ b/sc/source/ui/docshell/docsh8.cxx
@@ -488,11 +488,6 @@ void lcl_GetColumnTypes(
OUString* pColNames, sal_Int32* pColTypes, sal_Int32* pColLengths,
sal_Int32* pColScales, bool& bHasMemo, rtl_TextEncoding eCharSet )
{
- // updating of column titles didn't work in 5.2 and isn't always wanted
- // (saving normally shouldn't modify the document)
- //! read flag from configuration
- bool bUpdateTitles = false;
-
ScDocument* pDoc = rDocShell.GetDocument();
SvNumberFormatter* pNumFmt = pDoc->GetFormatTable();
@@ -715,34 +710,6 @@ void lcl_GetColumnTypes(
if ( bSdbLenBad && nFieldLen == 1 )
nFieldLen = 2; // THIS is reality
}
- if ( bUpdateTitles )
- { // Angabe anpassen und ausgeben
- OUString aOutString = aFieldName;
- switch ( nDbType )
- {
- case sdbc::DataType::BIT :
- aOutString += ",L";
- break;
- case sdbc::DataType::DATE :
- aOutString += ",D";
- break;
- case sdbc::DataType::LONGVARCHAR :
- aOutString += ",M";
- break;
- case sdbc::DataType::VARCHAR :
- aOutString += ",C," + OUString::number( nFieldLen );
- break;
- case sdbc::DataType::DECIMAL :
- aOutString += ",N," + OUString::number( nFieldLen ) +
- "," + OUString::number( nPrecision );
- break;
- }
- if ( !aOutString.equalsIgnoreAsciiCase( aString ) )
- {
- pDoc->SetString( nCol, nFirstRow, nTab, aOutString );
- rDocShell.PostPaint( nCol, nFirstRow, nTab, nCol, nFirstRow, nTab, PAINT_GRID );
- }
- }
++nField;
}
}