summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r--sc/source/ui/dbgui/asciiopt.cxx76
1 files changed, 0 insertions, 76 deletions
diff --git a/sc/source/ui/dbgui/asciiopt.cxx b/sc/source/ui/dbgui/asciiopt.cxx
index 157d6c4d2e4c..f101809552c9 100644
--- a/sc/source/ui/dbgui/asciiopt.cxx
+++ b/sc/source/ui/dbgui/asciiopt.cxx
@@ -403,80 +403,4 @@ String ScAsciiOptions::WriteToString() const
return aOutStr;
}
-#if 0
-// Code, um die Spalten-Liste aus einem Excel-kompatiblen String zu erzeugen:
-// (im Moment nicht benutzt)
-
-void ScAsciiOptions::InterpretColumnList( const String& rString )
-{
- // Eingabe ist 1-basiert, pColStart fuer FixedLen ist 0-basiert
-
- // Kommas durch Semikolon ersetzen
-
- String aSemiStr = rString;
- USHORT nPos = 0;
- do
- nPos = aSemiStr.SearchAndReplace( ',', ';', nPos );
- while ( nPos != STRING_NOTFOUND );
-
- // Eintraege sortieren
-
- USHORT nCount = aSemiStr.GetTokenCount();
- USHORT* pTemp = new USHORT[nCount+1];
- pTemp[0] = 1; // erste Spalte faengt immer bei 1 an
- USHORT nFound = 1;
- USHORT i,j;
- for (i=0; i<nCount; i++)
- {
- USHORT nVal = (USHORT) aSemiStr.GetToken(i);
- if (nVal)
- {
- BOOL bThere = FALSE;
- nPos = 0;
- for (j=0; j<nFound; j++)
- {
- if ( pTemp[j] == nVal )
- bThere = TRUE;
- else if ( pTemp[j] < nVal )
- nPos = j+1;
- }
- if ( !bThere )
- {
- if ( nPos < nFound )
- memmove( &pTemp[nPos+1], &pTemp[nPos], (nFound-nPos)*sizeof(USHORT) );
- pTemp[nPos] = nVal;
- ++nFound;
- }
- }
- }
-
- // Eintraege uebernehmen
-
- delete[] pColStart;
- delete[] pColFormat;
- nInfoCount = nFound;
- if (nInfoCount)
- {
- pColStart = new USHORT[nInfoCount];
- pColFormat = new BYTE[nInfoCount];
- for (i=0; i<nInfoCount; i++)
- {
- pColStart[i] = pTemp[i] - 1;
- pColFormat[i] = SC_COL_STANDARD;
- }
- }
- else
- {
- pColStart = NULL;
- pColFormat = NULL;
- }
-
- bFixedLen = TRUE; // sonst macht's keinen Sinn
-
- // aufraeumen
-
- delete[] pTemp;
-}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */