summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfun2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/viewfun2.cxx')
-rw-r--r--sc/source/ui/view/viewfun2.cxx378
1 files changed, 189 insertions, 189 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 49f93c43ffac..04ebe2d42c09 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ using namespace com::sun::star;
#include "attrib.hxx"
#include "autoform.hxx"
-#include "cell.hxx" // EnterAutoSum
+#include "cell.hxx" // EnterAutoSum
#include "cellmergeoption.hxx"
#include "compiler.hxx"
#include "docfunc.hxx"
@@ -249,7 +249,7 @@ ScAutoSum lcl_IsAutoSumData( ScDocument* pDoc, SCCOL nCol, SCROW nRow,
//----------------------------------------------------------------------------
-#define SC_AUTOSUM_MAXCOUNT 20
+#define SC_AUTOSUM_MAXCOUNT 20
ScAutoSum lcl_SeekAutoSumData( ScDocument* pDoc, SCCOL& nCol, SCROW& nRow,
SCTAB nTab, ScDirection eDir, SCCOLROW& nExtend )
@@ -420,11 +420,11 @@ BOOL ScViewFunc::GetAutoSumArea( ScRangeList& rRangeList )
SCCOL nStartCol = nCol;
SCROW nStartRow = nRow;
- SCCOL nEndCol = nCol;
- SCROW nEndRow = nRow;
- SCCOL nSeekCol = nCol;
- SCROW nSeekRow = nRow;
- SCCOLROW nExtend; // wird per Reference gueltig bei ScAutoSumSum
+ SCCOL nEndCol = nCol;
+ SCROW nEndRow = nRow;
+ SCCOL nSeekCol = nCol;
+ SCROW nSeekRow = nRow;
+ SCCOLROW nExtend; // wird per Reference gueltig bei ScAutoSumSum
BOOL bCol = FALSE;
BOOL bRow = FALSE;
@@ -455,19 +455,19 @@ BOOL ScViewFunc::GetAutoSumArea( ScRangeList& rRangeList )
{
if ( bRow )
{
- nStartRow = nSeekRow; // nSeekRow evtl. per Reference angepasst
+ nStartRow = nSeekRow; // nSeekRow evtl. per Reference angepasst
if ( eSum == ScAutoSumSum )
- nEndRow = nStartRow; // nur Summen summieren
+ nEndRow = nStartRow; // nur Summen summieren
else
- nEndRow = nRow - 1; // Datenbereich evtl. nach unten erweitern
+ nEndRow = nRow - 1; // Datenbereich evtl. nach unten erweitern
}
else
{
- nStartCol = nSeekCol; // nSeekCol evtl. per Reference angepasst
+ nStartCol = nSeekCol; // nSeekCol evtl. per Reference angepasst
if ( eSum == ScAutoSumSum )
- nEndCol = nStartCol; // nur Summen summieren
+ nEndCol = nStartCol; // nur Summen summieren
else
- nEndCol = nCol - 1; // Datenbereich evtl. nach rechts erweitern
+ nEndCol = nCol - 1; // Datenbereich evtl. nach rechts erweitern
}
BOOL bContinue = FALSE;
do
@@ -476,7 +476,7 @@ BOOL ScViewFunc::GetAutoSumArea( ScRangeList& rRangeList )
{
if ( bRow )
{
- while ( nStartRow != 0 && lcl_IsAutoSumData( pDoc, nCol,
+ while ( nStartRow != 0 && lcl_IsAutoSumData( pDoc, nCol,
nStartRow-1, nTab, DIR_TOP, nExtend /*out*/ ) == eSum )
--nStartRow;
}
@@ -767,7 +767,7 @@ String ScViewFunc::GetAutoSumFormula( const ScRangeList& rRangeList, bool bSubTo
void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData )
{
- // Mehrfachselektion vorher abfragen...
+ // Mehrfachselektion vorher abfragen...
SCCOL nCol = GetViewData()->GetCurX();
SCROW nRow = GetViewData()->GetCurY();
@@ -777,10 +777,10 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData
{
rMark.MarkToSimple();
if ( rMark.IsMultiMarked() )
- { // "Einfuegen auf Mehrfachselektion nicht moeglich"
+ { // "Einfuegen auf Mehrfachselektion nicht moeglich"
ErrorMessage(STR_MSSG_PASTEFROMCLIP_0);
- // insert into single cell
+ // insert into single cell
if ( pData )
EnterData( nCol, nRow, nTab, pData );
else
@@ -805,7 +805,7 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData
}
}
- // Einfuegen per PasteFromClip
+ // Einfuegen per PasteFromClip
WaitObject aWait( GetFrameWin() );
@@ -814,9 +814,9 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData
ScDocument* pInsDoc = new ScDocument( SCDOCMODE_CLIP );
pInsDoc->ResetClip( pDoc, nTab );
- if (aNewStr.GetChar(0) == '=') // Formel ?
+ if (aNewStr.GetChar(0) == '=') // Formel ?
{
- // SetString geht nicht, weil in Clipboard-Dokumenten nicht kompiliert wird!
+ // SetString geht nicht, weil in Clipboard-Dokumenten nicht kompiliert wird!
ScFormulaCell* pFCell = new ScFormulaCell( pDoc, aPos, aNewStr );
pInsDoc->PutCell( nCol, nRow, nTab, pFCell );
}
@@ -833,7 +833,7 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData
const SfxUInt32Item* pItem = (SfxUInt32Item*) pInsDoc->GetAttr(
nCol, nRow, nTab, ATTR_VALUE_FORMAT );
if ( pItem )
- { // Numberformat setzen wenn inkompatibel
+ { // Numberformat setzen wenn inkompatibel
// MarkData wurde bereits in PasteFromClip MarkToSimple'ed
ScRange aRange;
rMark.GetMarkArea( aRange );
@@ -851,7 +851,7 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData
//----------------------------------------------------------------------------
-// manueller Seitenumbruch
+// manueller Seitenumbruch
void ScViewFunc::InsertPageBreak( BOOL bColumn, BOOL bRecord, const ScAddress* pPos,
BOOL bSetModified )
@@ -867,7 +867,7 @@ void ScViewFunc::InsertPageBreak( BOOL bColumn, BOOL bRecord, const ScAddress* p
InsertPageBreak( bColumn, aCursor, bRecord, bSetModified, FALSE );
if ( bSuccess && bSetModified )
- UpdatePageBreakData( TRUE ); // fuer PageBreak-Modus
+ UpdatePageBreakData( TRUE ); // fuer PageBreak-Modus
}
@@ -887,7 +887,7 @@ void ScViewFunc::DeletePageBreak( BOOL bColumn, BOOL bRecord, const ScAddress* p
RemovePageBreak( bColumn, aCursor, bRecord, bSetModified, FALSE );
if ( bSuccess && bSetModified )
- UpdatePageBreakData( TRUE ); // fuer PageBreak-Modus
+ UpdatePageBreakData( TRUE ); // fuer PageBreak-Modus
}
//----------------------------------------------------------------------------
@@ -939,12 +939,12 @@ void ScViewFunc::SetPrintRanges( BOOL bEntireSheet, const String* pPrint,
const String* pRepCol, const String* pRepRow,
BOOL bAddPrint )
{
- // on all selected tables
+ // on all selected tables
- ScDocShell* pDocSh = GetViewData()->GetDocShell();
- ScDocument* pDoc = pDocSh->GetDocument();
- SCTAB nTabCount = pDoc->GetTableCount();
- ScMarkData& rMark = GetViewData()->GetMarkData();
+ ScDocShell* pDocSh = GetViewData()->GetDocShell();
+ ScDocument* pDoc = pDocSh->GetDocument();
+ SCTAB nTabCount = pDoc->GetTableCount();
+ ScMarkData& rMark = GetViewData()->GetMarkData();
SCTAB nTab;
BOOL bUndo (pDoc->IsUndoEnabled());
@@ -957,7 +957,7 @@ void ScViewFunc::SetPrintRanges( BOOL bEntireSheet, const String* pPrint,
{
ScRange aRange( 0,0,nTab );
- // print ranges
+ // print ranges
if( !bAddPrint )
pDoc->ClearPrintRanges( nTab );
@@ -1005,7 +1005,7 @@ void ScViewFunc::SetPrintRanges( BOOL bEntireSheet, const String* pPrint,
}
}
- // repeat columns
+ // repeat columns
if ( pRepCol )
{
@@ -1016,7 +1016,7 @@ void ScViewFunc::SetPrintRanges( BOOL bEntireSheet, const String* pPrint,
pDoc->SetRepeatColRange( nTab, &aRange );
}
- // repeat rows
+ // repeat rows
if ( pRepRow )
{
@@ -1028,7 +1028,7 @@ void ScViewFunc::SetPrintRanges( BOOL bEntireSheet, const String* pPrint,
}
}
- // undo (for all tables)
+ // undo (for all tables)
if (bUndo)
{
SCTAB nCurTab = GetViewData()->GetTabNo();
@@ -1037,7 +1037,7 @@ void ScViewFunc::SetPrintRanges( BOOL bEntireSheet, const String* pPrint,
new ScUndoPrintRange( pDocSh, nCurTab, pOldRanges, pNewRanges ) );
}
- // update page breaks
+ // update page breaks
for (nTab=0; nTab<nTabCount; nTab++)
if (rMark.GetTableSelect(nTab))
@@ -1050,11 +1050,11 @@ void ScViewFunc::SetPrintRanges( BOOL bEntireSheet, const String* pPrint,
}
//----------------------------------------------------------------------------
-// Zellen zusammenfassen
+// Zellen zusammenfassen
-BOOL ScViewFunc::TestMergeCells() // Vorab-Test (fuer Menue)
+BOOL ScViewFunc::TestMergeCells() // Vorab-Test (fuer Menue)
{
- // simple test: TRUE if there's a selection but no multi selection and not filtered
+ // simple test: TRUE if there's a selection but no multi selection and not filtered
const ScMarkData& rMark = GetViewData()->GetMarkData();
if ( rMark.IsMarked() || rMark.IsMultiMarked() )
@@ -1071,8 +1071,8 @@ BOOL ScViewFunc::TestMergeCells() // Vorab-Test (fuer Menue)
BOOL ScViewFunc::MergeCells( BOOL bApi, BOOL& rDoContents, BOOL bRecord, BOOL bCenter )
{
- // Editable- und Verschachtelungs-Abfrage muss vorneweg sein (auch in DocFunc),
- // damit dann nicht die Inhalte-QueryBox kommt
+ // Editable- und Verschachtelungs-Abfrage muss vorneweg sein (auch in DocFunc),
+ // damit dann nicht die Inhalte-QueryBox kommt
ScEditableTester aTester( this );
if (!aTester.IsEditable())
{
@@ -1107,7 +1107,7 @@ BOOL ScViewFunc::MergeCells( BOOL bApi, BOOL& rDoContents, BOOL bRecord, BOOL bC
if ( pDoc->HasAttrib( nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nEndTab,
HASATTR_MERGED | HASATTR_OVERLAPPED ) )
- { // "Zusammenfassen nicht verschachteln !"
+ { // "Zusammenfassen nicht verschachteln !"
ErrorMessage(STR_MSSG_MERGECELLS_0);
return FALSE;
}
@@ -1263,7 +1263,7 @@ BOOL ScViewFunc::RemoveMerge( BOOL bRecord )
if (bOk)
pDocSh->UpdateOle(GetViewData());
}
- return TRUE; //! bOk ??
+ return TRUE; //! bOk ??
}
//----------------------------------------------------------------------------
@@ -1332,7 +1332,7 @@ void ScViewFunc::FillAuto( FillDir eDir, SCCOL nStartCol, SCROW nStartRow,
FillAuto( aRange, &rMark, eDir, nCount, bRecord, FALSE );
if (bSuccess)
{
- MarkRange( aRange, FALSE ); // aRange ist in FillAuto veraendert worden
+ MarkRange( aRange, FALSE ); // aRange ist in FillAuto veraendert worden
pDocSh->UpdateOle(GetViewData());
UpdateScrollBars();
@@ -1405,12 +1405,12 @@ void ScViewFunc::FillTab( USHORT nFlags, USHORT nFunction, BOOL bSkipEmpty, BOOL
aMarkRange = ScRange( GetViewData()->GetCurX(), GetViewData()->GetCurY(), nTab );
ScDocument* pUndoDoc = NULL;
-// if ( bRecord )
+// if ( bRecord )
if (bUndo)
{
pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
pUndoDoc->InitUndo( pDoc, nTab, nTab );
-// pUndoDoc->SelectTable( nTab, TRUE ); // nur fuer Markierung
+// pUndoDoc->SelectTable( nTab, TRUE ); // nur fuer Markierung
SCTAB nTabCount = pDoc->GetTableCount();
for (SCTAB i=0; i<nTabCount; i++)
@@ -1420,7 +1420,7 @@ void ScViewFunc::FillTab( USHORT nFlags, USHORT nFunction, BOOL bSkipEmpty, BOOL
aMarkRange.aStart.SetTab( i );
aMarkRange.aEnd.SetTab( i );
pDoc->CopyToDocument( aMarkRange, IDF_ALL, bMulti, pUndoDoc );
-// pUndoDoc->SelectTable( i, TRUE );
+// pUndoDoc->SelectTable( i, TRUE );
}
}
@@ -1433,9 +1433,9 @@ void ScViewFunc::FillTab( USHORT nFlags, USHORT nFunction, BOOL bSkipEmpty, BOOL
pDoc->FillTab( aMarkRange, rMark, nFlags, nFunction, bSkipEmpty, bAsLink );
}
-// if ( bRecord )
+// if ( bRecord )
if (bUndo)
- { //! fuer ChangeTrack erst zum Schluss
+ { //! fuer ChangeTrack erst zum Schluss
pDocSh->GetUndoManager()->AddUndoAction(
new ScUndoFillTable( pDocSh, rMark,
aMarkRange.aStart.Col(), aMarkRange.aStart.Row(), nTab,
@@ -1529,7 +1529,7 @@ void ScViewFunc::TransliterateText( sal_Int32 nType )
ScMarkData aFuncMark = GetViewData()->GetMarkData();
if ( !aFuncMark.IsMarked() && !aFuncMark.IsMultiMarked() )
{
- // no selection -> use cursor position
+ // no selection -> use cursor position
ScAddress aCursor( GetViewData()->GetCurX(), GetViewData()->GetCurY(), GetViewData()->GetTabNo() );
aFuncMark.SetMarkArea( ScRange( aCursor ) );
@@ -1544,7 +1544,7 @@ void ScViewFunc::TransliterateText( sal_Int32 nType )
}
//----------------------------------------------------------------------------
-// AutoFormat
+// AutoFormat
ScAutoFormatData* ScViewFunc::CreateAutoFormatData()
{
@@ -1652,7 +1652,7 @@ void ScViewFunc::AutoFormat( USHORT nFormatNo, BOOL bRecord )
nEndCol, nEndRow, nEndTab, PAINT_GRID );
}
- if ( bRecord ) // Draw-Undo erst jetzt verfuegbar
+ if ( bRecord ) // Draw-Undo erst jetzt verfuegbar
{
pDocSh->GetUndoManager()->AddUndoAction(
new ScUndoAutoFormat( pDocSh,
@@ -1671,7 +1671,7 @@ void ScViewFunc::AutoFormat( USHORT nFormatNo, BOOL bRecord )
//----------------------------------------------------------------------------
-// Suchen & Ersetzen
+// Suchen & Ersetzen
void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
BOOL bAddUndo, BOOL bIsApi )
@@ -1706,7 +1706,7 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
}
}
else
- { //! mindestens eine ist immer selektiert
+ { //! mindestens eine ist immer selektiert
nStartTab = nEndTab = rMark.GetFirstSelected();
for ( SCTAB j = nStartTab + 1; j <= nLastTab; j++ )
{
@@ -1735,14 +1735,14 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
|| nCommand == SVX_SEARCHCMD_FIND_ALL)
bAddUndo = FALSE;
- //! bAttrib bei Undo beruecksichtigen !!!
+ //! bAttrib bei Undo beruecksichtigen !!!
ScDocument* pUndoDoc = NULL;
ScMarkData* pUndoMark = NULL;
String aUndoStr;
if (bAddUndo)
{
- pUndoMark = new ScMarkData( rMark ); // Markierung wird veraendert
+ pUndoMark = new ScMarkData( rMark ); // Markierung wird veraendert
if ( nCommand == SVX_SEARCHCMD_REPLACE_ALL )
{
pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
@@ -1751,17 +1751,17 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
}
if ( bAllTables )
- { //! alles selektieren, erst nachdem pUndoMark erzeugt wurde
+ { //! alles selektieren, erst nachdem pUndoMark erzeugt wurde
for ( SCTAB j = nStartTab; j <= nEndTab; j++ )
{
rMark.SelectTable( j, TRUE );
}
}
- DoneBlockMode(TRUE); // Markierung nicht loeschen!
+ DoneBlockMode(TRUE); // Markierung nicht loeschen!
InitOwnBlockMode();
- // wenn vom Anfang an gesucht wird, nicht nochmal fragen ob vom Anfang gesucht werden soll
+ // wenn vom Anfang an gesucht wird, nicht nochmal fragen ob vom Anfang gesucht werden soll
BOOL bFirst = TRUE;
if ( nCol == 0 && nRow == 0 && nTab == nStartTab && !pSearchItem->GetBackward() )
bFirst = FALSE;
@@ -1783,7 +1783,7 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
pUndoDoc = NULL;
}
- break; // Abbruch while True
+ break; // Abbruch while True
}
else if ( bFirst && (nCommand == SVX_SEARCHCMD_FIND ||
nCommand == SVX_SEARCHCMD_REPLACE) )
@@ -1795,7 +1795,7 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
nRetVal = RET_NO;
else
{
- // Suchen-Dialog als Parent, wenn vorhanden
+ // Suchen-Dialog als Parent, wenn vorhanden
Window* pParent = GetParentOrChild(SID_SEARCH_DLG);
USHORT nStrId;
if ( pSearchItem->GetBackward() )
@@ -1828,38 +1828,38 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
}
else
{
- break; // Abbruch while True
+ break; // Abbruch while True
}
}
- else // nichts gefunden
+ else // nichts gefunden
{
if ( nCommand == SVX_SEARCHCMD_FIND_ALL || nCommand == SVX_SEARCHCMD_REPLACE_ALL )
{
- pDocSh->PostPaintGridAll(); // Markierung
+ pDocSh->PostPaintGridAll(); // Markierung
}
GetFrameWin()->LeaveWait();
if (!bIsApi)
{
- // Suchen-Dialog als Parent, wenn vorhanden
+ // Suchen-Dialog als Parent, wenn vorhanden
Window* pParent = GetParentOrChild(SID_SEARCH_DLG);
// "nichts gefunden"
InfoBox aBox( pParent, ScGlobal::GetRscString( STR_MSSG_SEARCHANDREPLACE_0 ) );
aBox.Execute();
}
- break; // Abbruch while True
+ break; // Abbruch while True
}
- } // of while TRUE
+ } // of while TRUE
if ( pOldSelectedTables )
- { // urspruenglich selektierte Tabellen wiederherstellen
+ { // urspruenglich selektierte Tabellen wiederherstellen
for ( SCTAB j = nStartTab; j <= nEndTab; j++ )
{
rMark.SelectTable( j, pOldSelectedTables[j] );
}
if ( bFound )
- { // durch Fundstelle neu selektierte Tabelle bleibt
+ { // durch Fundstelle neu selektierte Tabelle bleibt
rMark.SelectTable( nTab, TRUE );
// wenn vorher nur eine selektiert war, ist es ein Tausch
//! wenn nicht, ist jetzt evtl. eine mehr selektiert
@@ -1876,8 +1876,8 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
if ( nTab != GetViewData()->GetTabNo() )
SetTabNo( nTab );
- // wenn nichts markiert ist, DoneBlockMode, damit von hier aus
- // direkt per Shift-Cursor markiert werden kann:
+ // wenn nichts markiert ist, DoneBlockMode, damit von hier aus
+ // direkt per Shift-Cursor markiert werden kann:
if (!rMark.IsMarked() && !rMark.IsMultiMarked())
DoneBlockMode(TRUE);
@@ -1894,17 +1894,17 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
pDocSh->SetDocumentModified();
}
else if ( nCommand == SVX_SEARCHCMD_FIND_ALL )
- pDocSh->PostPaintGridAll(); // Markierung
+ pDocSh->PostPaintGridAll(); // Markierung
GetFrameWin()->LeaveWait();
}
- delete pUndoDoc; // loeschen wenn nicht benutzt
- delete pUndoMark; // kann immer geloescht werden
+ delete pUndoDoc; // loeschen wenn nicht benutzt
+ delete pUndoMark; // kann immer geloescht werden
}
//----------------------------------------------------------------------------
-// Zielwertsuche
+// Zielwertsuche
void ScViewFunc::Solve( const ScSolveParam& rParam )
{
@@ -1928,12 +1928,12 @@ void ScViewFunc::Solve( const ScSolveParam& rParam )
aTargetValStr = *(rParam.pStrTargetVal);
String aMsgStr;
- String aResStr;
- double nSolveResult;
+ String aResStr;
+ double nSolveResult;
GetFrameWin()->EnterWait();
- BOOL bExact =
+ BOOL bExact =
pDoc->Solver(
rParam.aRefFormulaCell.Col(),
rParam.aRefFormulaCell.Row(),
@@ -1982,7 +1982,7 @@ void ScViewFunc::Solve( const ScSolveParam& rParam )
//----------------------------------------------------------------------------
-// Mehrfachoperation
+// Mehrfachoperation
void ScViewFunc::TabOp( const ScTabOpParam& rParam, BOOL bRecord )
{
@@ -2003,17 +2003,17 @@ void ScViewFunc::TabOp( const ScTabOpParam& rParam, BOOL bRecord )
void ScViewFunc::MakeScenario( const String& rName, const String& rComment,
const Color& rColor, USHORT nFlags )
{
- ScDocShell* pDocSh = GetViewData()->GetDocShell();
- ScMarkData& rMark = GetViewData()->GetMarkData();
- SCTAB nTab = GetViewData()->GetTabNo();
+ ScDocShell* pDocSh = GetViewData()->GetDocShell();
+ ScMarkData& rMark = GetViewData()->GetMarkData();
+ SCTAB nTab = GetViewData()->GetTabNo();
SCTAB nNewTab = pDocSh->MakeScenario( nTab, rName, rComment, rColor, nFlags, rMark );
if (nFlags & SC_SCENARIO_COPYALL)
- SetTabNo( nNewTab, TRUE ); // SC_SCENARIO_COPYALL -> sichtbar
+ SetTabNo( nNewTab, TRUE ); // SC_SCENARIO_COPYALL -> sichtbar
else
{
SfxBindings& rBindings = GetViewData()->GetBindings();
- rBindings.Invalidate( SID_STATUS_DOCPOS ); // Statusbar
+ rBindings.Invalidate( SID_STATUS_DOCPOS ); // Statusbar
rBindings.Invalidate( SID_TABLES_COUNT );
rBindings.Invalidate( SID_SELECT_SCENARIO );
rBindings.Invalidate( FID_TABLE_SHOW );
@@ -2032,7 +2032,7 @@ void ScViewFunc::ExtendScenario()
return;
}
- // Undo: Attribute anwenden
+ // Undo: Attribute anwenden
ScDocument* pDoc = GetViewData()->GetDocument();
ScPatternAttr aPattern( pDoc->GetPool() );
@@ -2046,8 +2046,8 @@ void ScViewFunc::ExtendScenario()
void ScViewFunc::UseScenario( const String& rName )
{
- ScDocShell* pDocSh = GetViewData()->GetDocShell();
- SCTAB nTab = GetViewData()->GetTabNo();
+ ScDocShell* pDocSh = GetViewData()->GetDocShell();
+ SCTAB nTab = GetViewData()->GetTabNo();
DoneBlockMode();
InitOwnBlockMode();
@@ -2056,11 +2056,11 @@ void ScViewFunc::UseScenario( const String& rName )
//----------------------------------------------------------------------------
-// Tabelle einfuegen
+// Tabelle einfuegen
BOOL ScViewFunc::InsertTable( const String& rName, SCTAB nTab, BOOL bRecord )
{
- // Reihenfolge Tabelle/Name ist bei DocFunc umgekehrt
+ // Reihenfolge Tabelle/Name ist bei DocFunc umgekehrt
BOOL bSuccess = GetViewData()->GetDocShell()->GetDocFunc().
InsertTable( nTab, rName, bRecord, FALSE );
if (bSuccess)
@@ -2070,13 +2070,13 @@ BOOL ScViewFunc::InsertTable( const String& rName, SCTAB nTab, BOOL bRecord )
}
//----------------------------------------------------------------------------
-// Tabellen einfuegen
+// Tabellen einfuegen
BOOL ScViewFunc::InsertTables(SvStrings *pNames, SCTAB nTab,
SCTAB nCount, BOOL bRecord )
{
- ScDocShell* pDocSh = GetViewData()->GetDocShell();
- ScDocument* pDoc = pDocSh->GetDocument();
+ ScDocShell* pDocSh = GetViewData()->GetDocShell();
+ ScDocument* pDoc = pDocSh->GetDocument();
if (bRecord && !pDoc->IsUndoEnabled())
bRecord = FALSE;
@@ -2087,7 +2087,7 @@ BOOL ScViewFunc::InsertTables(SvStrings *pNames, SCTAB nTab,
if (bRecord)
{
pNameList= new SvStrings;
- pDoc->BeginDrawUndo(); // InsertTab erzeugt ein SdrUndoNewPage
+ pDoc->BeginDrawUndo(); // InsertTab erzeugt ein SdrUndoNewPage
}
BOOL bFlag=FALSE;
@@ -2129,7 +2129,7 @@ BOOL ScViewFunc::InsertTables(SvStrings *pNames, SCTAB nTab,
pDocSh->GetUndoManager()->AddUndoAction(
new ScUndoInsertTables( pDocSh, nTab, FALSE, pNameList));
- // Views updaten:
+ // Views updaten:
SetTabNo( nTab, TRUE );
pDocSh->PostPaintExtras();
@@ -2156,7 +2156,7 @@ BOOL ScViewFunc::AppendTable( const String& rName, BOOL bRecord )
WaitObject aWait( GetFrameWin() );
if (bRecord)
- pDoc->BeginDrawUndo(); // InsertTab erzeugt ein SdrUndoNewPage
+ pDoc->BeginDrawUndo(); // InsertTab erzeugt ein SdrUndoNewPage
if (pDoc->InsertTab( SC_TAB_APPEND, rName ))
{
@@ -2182,8 +2182,8 @@ BOOL ScViewFunc::AppendTable( const String& rName, BOOL bRecord )
BOOL ScViewFunc::DeleteTable( SCTAB nTab, BOOL bRecord )
{
- ScDocShell* pDocSh = GetViewData()->GetDocShell();
- ScDocument* pDoc = pDocSh->GetDocument();
+ ScDocShell* pDocSh = GetViewData()->GetDocShell();
+ ScDocument* pDoc = pDocSh->GetDocument();
BOOL bSuccess = pDocSh->GetDocFunc().DeleteTable( nTab, bRecord, FALSE );
if (bSuccess)
@@ -2198,11 +2198,11 @@ BOOL ScViewFunc::DeleteTable( SCTAB nTab, BOOL bRecord )
BOOL ScViewFunc::DeleteTables(const SvShorts &TheTabs, BOOL bRecord )
{
- ScDocShell* pDocSh = GetViewData()->GetDocShell();
- ScDocument* pDoc = pDocSh->GetDocument();
+ ScDocShell* pDocSh = GetViewData()->GetDocShell();
+ ScDocument* pDoc = pDocSh->GetDocument();
BOOL bVbaEnabled = pDoc ? pDoc->IsInVBAMode() : FALSE;
- SCTAB nNewTab = TheTabs[0];
- int i;
+ SCTAB nNewTab = TheTabs[0];
+ int i;
WaitObject aWait( GetFrameWin() );
if (bRecord && !pDoc->IsUndoEnabled())
bRecord = FALSE;
@@ -2218,19 +2218,19 @@ BOOL ScViewFunc::DeleteTables(const SvShorts &TheTabs, BOOL bRecord )
if (bRecord)
{
pUndoDoc = new ScDocument( SCDOCMODE_UNDO );
-// pUndoDoc->InitDrawLayer( pDocSh );
+// pUndoDoc->InitDrawLayer( pDocSh );
SCTAB nCount = pDoc->GetTableCount();
-// pUndoDoc->InitUndo( pDoc, 0, nCount-1 ); // incl. Ref.
+// pUndoDoc->InitUndo( pDoc, 0, nCount-1 ); // incl. Ref.
String aOldName;
for(i=0;i<TheTabs.Count();i++)
{
SCTAB nTab = TheTabs[sal::static_int_cast<USHORT>(i)];
if (i==0)
- pUndoDoc->InitUndo( pDoc, nTab,nTab, TRUE,TRUE ); // incl. Spalten/Zeilenflags
+ pUndoDoc->InitUndo( pDoc, nTab,nTab, TRUE,TRUE ); // incl. Spalten/Zeilenflags
else
- pUndoDoc->AddUndoTab( nTab,nTab, TRUE,TRUE ); // incl. Spalten/Zeilenflags
+ pUndoDoc->AddUndoTab( nTab,nTab, TRUE,TRUE ); // incl. Spalten/Zeilenflags
pDoc->CopyToDocument(0,0,nTab, MAXCOL,MAXROW,nTab, IDF_ALL,FALSE, pUndoDoc );
pDoc->GetName( nTab, aOldName );
@@ -2261,13 +2261,13 @@ BOOL ScViewFunc::DeleteTables(const SvShorts &TheTabs, BOOL bRecord )
if ( pDoc->IsTabProtected( nTab ) )
pUndoDoc->SetTabProtection(nTab, pDoc->GetTabProtection(nTab));
- // Drawing-Layer muss sein Undo selbst in der Hand behalten !!!
- // pUndoDoc->TransferDrawPage(pDoc, nTab,nTab);
+ // Drawing-Layer muss sein Undo selbst in der Hand behalten !!!
+ // pUndoDoc->TransferDrawPage(pDoc, nTab,nTab);
}
- pUndoDoc->AddUndoTab( 0, nCount-1 ); // alle Tabs fuer Referenzen
+ pUndoDoc->AddUndoTab( 0, nCount-1 ); // alle Tabs fuer Referenzen
- pDoc->BeginDrawUndo(); // DeleteTab erzeugt ein SdrUndoDelPage
+ pDoc->BeginDrawUndo(); // DeleteTab erzeugt ein SdrUndoDelPage
pUndoData = new ScRefUndoData( pDoc );
}
@@ -2308,7 +2308,7 @@ BOOL ScViewFunc::DeleteTables(const SvShorts &TheTabs, BOOL bRecord )
if (bWasLinked)
{
- pDocSh->UpdateLinks(); // Link-Manager updaten
+ pDocSh->UpdateLinks(); // Link-Manager updaten
GetViewData()->GetBindings().Invalidate(SID_LINKS);
}
@@ -2334,12 +2334,12 @@ BOOL ScViewFunc::DeleteTables(const SvShorts &TheTabs, BOOL bRecord )
BOOL ScViewFunc::RenameTable( const String& rName, SCTAB nTab )
{
- // Reihenfolge Tabelle/Name ist bei DocFunc umgekehrt
+ // Reihenfolge Tabelle/Name ist bei DocFunc umgekehrt
BOOL bSuccess = GetViewData()->GetDocShell()->GetDocFunc().
RenameTable( nTab, rName, TRUE, FALSE );
if (bSuccess)
{
- // Der Tabellenname koennte in einer Formel vorkommen...
+ // Der Tabellenname koennte in einer Formel vorkommen...
GetViewData()->GetViewShell()->UpdateInputHandler();
}
return bSuccess;
@@ -2398,7 +2398,7 @@ void ScViewFunc::InsertTableLink( const String& rFile,
ScDocShell* pSrcSh = aLoader.GetDocShell();
ScDocument* pSrcDoc = pSrcSh->GetDocument();
SCTAB nTab = MAXTAB+1;
- if (!rTabName.Len()) // kein Name angegeben -> erste Tabelle
+ if (!rTabName.Len()) // kein Name angegeben -> erste Tabelle
nTab = 0;
else
{
@@ -2420,7 +2420,7 @@ void ScViewFunc::InsertTableLink( const String& rFile,
//----------------------------------------------------------------------------
-// Tabellen aus anderem Dokument kopieren / linken
+// Tabellen aus anderem Dokument kopieren / linken
void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
SCTAB nCount, const SCTAB* pSrcTabs, BOOL bLink,SCTAB nTab )
@@ -2440,19 +2440,19 @@ void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
pDocSh->MakeDrawLayer();
if (bUndo)
- pDoc->BeginDrawUndo(); // drawing layer must do its own undo actions
+ pDoc->BeginDrawUndo(); // drawing layer must do its own undo actions
SCTAB nInsCount = 0;
SCTAB i;
for( i=0; i<nCount; i++ )
- { // #63304# insert sheets first and update all references
+ { // #63304# insert sheets first and update all references
String aName;
pSrcDoc->GetName( pSrcTabs[i], aName );
pDoc->CreateValidTabName( aName );
if ( !pDoc->InsertTab( nTab+i, aName ) )
{
- bError = TRUE; // total error
- break; // for
+ bError = TRUE; // total error
+ break; // for
}
++nInsCount;
}
@@ -2461,11 +2461,11 @@ void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
SCTAB nSrcTab = pSrcTabs[i];
SCTAB nDestTab1=nTab+i;
ULONG nErrVal = pDocSh->TransferTab( *pSrcShell, nSrcTab, nDestTab1,
- FALSE, FALSE ); // no insert
+ FALSE, FALSE ); // no insert
switch (nErrVal)
{
- case 0: // interner Fehler oder voll Fehler
+ case 0: // interner Fehler oder voll Fehler
bError = TRUE;
break;
case 2:
@@ -2503,7 +2503,7 @@ void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
aFileName, aFilterName, aOptions, aTabStr, nRefresh );
}
- if (!bWasThere) // Link pro Quelldokument nur einmal eintragen
+ if (!bWasThere) // Link pro Quelldokument nur einmal eintragen
{
ScTableLink* pLink = new ScTableLink( pDocSh, aFileName, aFilterName, aOptions, nRefresh );
pLink->SetInCreate( TRUE );
@@ -2545,13 +2545,13 @@ void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
//----------------------------------------------------------------------------
-// Tabelle in anderes Dokument verschieben / kopieren
+// Tabelle in anderes Dokument verschieben / kopieren
void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy )
{
- ScDocument* pDoc = GetViewData()->GetDocument();
+ ScDocument* pDoc = GetViewData()->GetDocument();
ScDocShell* pDocShell = GetViewData()->GetDocShell();
- ScDocument* pDestDoc = NULL;
+ ScDocument* pDestDoc = NULL;
ScDocShell* pDestShell = NULL;
ScTabViewShell* pDestViewSh = NULL;
BOOL bUndo (pDoc->IsUndoEnabled());
@@ -2561,10 +2561,10 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy )
{
nDestTab = 0; // als erstes einfuegen
- // ohne SFX_CALLMODE_RECORD ausfuehren, weil schon im Move-Befehl enthalten:
+ // ohne SFX_CALLMODE_RECORD ausfuehren, weil schon im Move-Befehl enthalten:
String aUrl = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("private:factory/"));
- aUrl.AppendAscii(RTL_CONSTASCII_STRINGPARAM( STRING_SCAPP )); // "scalc"
+ aUrl.AppendAscii(RTL_CONSTASCII_STRINGPARAM( STRING_SCAPP )); // "scalc"
SfxStringItem aItem( SID_FILE_NAME, aUrl );
SfxStringItem aTarget( SID_TARGETNAME, String::CreateFromAscii("_blank") );
@@ -2608,11 +2608,11 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy )
FALSE );
}
- ScMarkData& rMark = GetViewData()->GetMarkData();
- SCTAB nTabCount = pDoc->GetTableCount();
- SCTAB nTabSelCount = rMark.GetSelectCount();
+ ScMarkData& rMark = GetViewData()->GetMarkData();
+ SCTAB nTabCount = pDoc->GetTableCount();
+ SCTAB nTabSelCount = rMark.GetSelectCount();
- SvShorts TheTabs;
+ SvShorts TheTabs;
for(SCTAB i=0;i<nTabCount;i++)
{
@@ -2640,21 +2640,21 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy )
pDestShell->MakeDrawLayer();
if (!bNewDoc && bUndo)
- pDestDoc->BeginDrawUndo(); // drawing layer must do its own undo actions
+ pDestDoc->BeginDrawUndo(); // drawing layer must do its own undo actions
ULONG nErrVal =1;
if(nDestTab==SC_TAB_APPEND)
nDestTab=pDestDoc->GetTableCount();
SCTAB nDestTab1=nDestTab;
for( USHORT j=0; j<TheTabs.Count(); j++, nDestTab1++ )
- { // #63304# insert sheets first and update all references
+ { // #63304# insert sheets first and update all references
String aName;
pDoc->GetName( TheTabs[j], aName );
pDestDoc->CreateValidTabName( aName );
if ( !pDestDoc->InsertTab( nDestTab1, aName ) )
{
- nErrVal = 0; // total error
- break; // for
+ nErrVal = 0; // total error
+ break; // for
}
}
if ( nErrVal > 0 )
@@ -2683,7 +2683,7 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy )
GetFrameWin()->LeaveWait();
switch (nErrVal)
{
- case 0: // interner Fehler oder voll Fehler
+ case 0: // interner Fehler oder voll Fehler
{
ErrorMessage(STR_TABINSERT_ERROR);
return;
@@ -2704,7 +2704,7 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy )
default:
break;
}
- //pDestShell->GetUndoManager()->Clear(); //! Undo implementieren !!!
+ //pDestShell->GetUndoManager()->Clear(); //! Undo implementieren !!!
/*
String sName;
pDestDoc->GetName(nDestTab, sName);
@@ -2721,18 +2721,18 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy )
if (bNewDoc)
{
- // ChartListenerCollection must be updated before DeleteTab
+ // ChartListenerCollection must be updated before DeleteTab
if ( pDestDoc->IsChartListenerCollectionNeedsUpdate() )
pDestDoc->UpdateChartListenerCollection();
pDestDoc->DeleteTab(static_cast<SCTAB>(TheTabs.Count())); // alte erste Tabelle
-//? pDestDoc->SelectTable(0, TRUE); // neue erste Tabelle selektieren
+//? pDestDoc->SelectTable(0, TRUE); // neue erste Tabelle selektieren
if (pDestViewSh)
- pDestViewSh->TabChanged(); // Pages auf dem Drawing-Layer
+ pDestViewSh->TabChanged(); // Pages auf dem Drawing-Layer
pDestShell->PostPaint( 0,0,0, MAXCOL,MAXROW,MAXTAB,
PAINT_GRID | PAINT_TOP | PAINT_LEFT |
PAINT_EXTRAS | PAINT_SIZE );
- // PAINT_SIZE fuer Gliederung
+ // PAINT_SIZE fuer Gliederung
}
else
{
@@ -2746,17 +2746,17 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy )
pDestShell->SetDocumentModified();
SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_TABLES_CHANGED ) );
}
- else // innerhalb des Dokuments
+ else // innerhalb des Dokuments
{
- ScMarkData& rMark = GetViewData()->GetMarkData();
- SCTAB nTabCount = pDoc->GetTableCount();
+ ScMarkData& rMark = GetViewData()->GetMarkData();
+ SCTAB nTabCount = pDoc->GetTableCount();
- SvShorts TheTabs;
- SvShorts TheDestTabs;
- SvStrings TheTabNames;
- String aDestName;
- String *pString;
+ SvShorts TheTabs;
+ SvShorts TheDestTabs;
+ SvStrings TheTabNames;
+ String aDestName;
+ String *pString;
for(SCTAB i=0;i<nTabCount;i++)
{
@@ -2781,14 +2781,14 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy )
}
if (bCopy && bUndo)
- pDoc->BeginDrawUndo(); // drawing layer must do its own undo actions
+ pDoc->BeginDrawUndo(); // drawing layer must do its own undo actions
pDoc->GetName( nDestTab, aDestName);
SCTAB nDestTab1=nDestTab;
SCTAB nMovTab=0;
for(int j=0;j<TheTabNames.Count();j++)
{
- nTabCount = pDoc->GetTableCount();
+ nTabCount = pDoc->GetTableCount();
pString=TheTabNames[sal::static_int_cast<USHORT>(j)];
if(!pDoc->GetTable(*pString,nMovTab))
{
@@ -2798,7 +2798,7 @@ void ScViewFunc::MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy )
{
nDestTab1=nTabCount;
}
- pDocShell->MoveTable( nMovTab, nDestTab1, bCopy, FALSE ); // Undo ist hier
+ pDocShell->MoveTable( nMovTab, nDestTab1, bCopy, FALSE ); // Undo ist hier
if(bCopy && pDoc->IsScenario(nMovTab))
{
@@ -2921,7 +2921,7 @@ void ScViewFunc::HideTable( SCTAB nTab )
pDocSh->GetUndoManager()->AddUndoAction( new ScUndoShowHideTab( pDocSh, nTab, FALSE ) );
}
- // Views updaten:
+ // Views updaten:
pDocSh->Broadcast( ScTablesHint( SC_TAB_HIDDEN, nTab ) );
SetTabNo( nTab, TRUE );
@@ -2945,16 +2945,16 @@ void ScViewFunc::InsertSpecialChar( const String& rStr, const Font& rFont )
return;
}
- const sal_Unicode* pChar = rStr.GetBuffer();
- ScTabViewShell* pViewShell = GetViewData()->GetViewShell();
- SvxFontItem aFontItem( rFont.GetFamily(),
+ const sal_Unicode* pChar = rStr.GetBuffer();
+ ScTabViewShell* pViewShell = GetViewData()->GetViewShell();
+ SvxFontItem aFontItem( rFont.GetFamily(),
rFont.GetName(),
rFont.GetStyleName(),
rFont.GetPitch(),
rFont.GetCharSet(),
ATTR_FONT );
- // if string contains WEAK characters, set all fonts
+ // if string contains WEAK characters, set all fonts
BYTE nScript;
ScDocument* pDoc = GetViewData()->GetDocument();
if ( pDoc->HasStringWeakCharacters( rStr ) )
@@ -2973,44 +2973,44 @@ void ScViewFunc::InsertSpecialChar( const String& rStr, const Font& rFont )
//----------------------------------------------------------------------------
-void ScViewFunc::UpdateLineAttrs( SvxBorderLine& rLine,
+void ScViewFunc::UpdateLineAttrs( SvxBorderLine& rLine,
const SvxBorderLine* pDestLine,
const SvxBorderLine* pSrcLine,
- BOOL bColor )
+ BOOL bColor )
{
if ( pSrcLine && pDestLine )
{
if ( bColor )
{
- rLine.SetColor ( pSrcLine->GetColor() );
- rLine.SetOutWidth ( pDestLine->GetOutWidth() );
- rLine.SetInWidth ( pDestLine->GetInWidth() );
- rLine.SetDistance ( pDestLine->GetDistance() );
- rLine.SetStyle ( pDestLine->GetStyle() );
+ rLine.SetColor ( pSrcLine->GetColor() );
+ rLine.SetOutWidth ( pDestLine->GetOutWidth() );
+ rLine.SetInWidth ( pDestLine->GetInWidth() );
+ rLine.SetDistance ( pDestLine->GetDistance() );
+ rLine.SetStyle ( pDestLine->GetStyle() );
}
else
{
- rLine.SetColor ( pDestLine->GetColor() );
- rLine.SetOutWidth ( pSrcLine->GetOutWidth() );
- rLine.SetInWidth ( pSrcLine->GetInWidth() );
- rLine.SetDistance ( pSrcLine->GetDistance() );
- rLine.SetStyle ( pSrcLine->GetStyle() );
+ rLine.SetColor ( pDestLine->GetColor() );
+ rLine.SetOutWidth ( pSrcLine->GetOutWidth() );
+ rLine.SetInWidth ( pSrcLine->GetInWidth() );
+ rLine.SetDistance ( pSrcLine->GetDistance() );
+ rLine.SetStyle ( pSrcLine->GetStyle() );
}
}
}
#define SET_LINE_ATTRIBUTES(LINE,BOXLINE) \
- pBoxLine = aBoxItem.Get##LINE(); \
- if ( pBoxLine ) \
- { \
- if ( pLine ) \
- { \
- UpdateLineAttrs( aLine, pBoxLine, pLine, bColorOnly ); \
- aBoxItem.SetLine( &aLine, BOXLINE ); \
- } \
- else \
- aBoxItem.SetLine( NULL, BOXLINE ); \
+ pBoxLine = aBoxItem.Get##LINE(); \
+ if ( pBoxLine ) \
+ { \
+ if ( pLine ) \
+ { \
+ UpdateLineAttrs( aLine, pBoxLine, pLine, bColorOnly ); \
+ aBoxItem.SetLine( &aLine, BOXLINE ); \
+ } \
+ else \
+ aBoxItem.SetLine( NULL, BOXLINE ); \
}
@@ -3027,14 +3027,14 @@ void ScViewFunc::SetSelectionFrameLines( const SvxBorderLine* pLine,
return;
}
- ScDocument* pDoc = GetViewData()->GetDocument();
+ ScDocument* pDoc = GetViewData()->GetDocument();
ScMarkData aFuncMark( GetViewData()->GetMarkData() ); // local copy for UnmarkFiltered
ScViewUtil::UnmarkFiltered( aFuncMark, pDoc );
- ScDocShell* pDocSh = GetViewData()->GetDocShell();
- const ScPatternAttr* pSelAttrs = GetSelectionPattern();
+ ScDocShell* pDocSh = GetViewData()->GetDocShell();
+ const ScPatternAttr* pSelAttrs = GetSelectionPattern();
const SfxItemSet& rSelItemSet = pSelAttrs->GetItemSet();
- const SfxPoolItem* pBorderAttr = NULL;
+ const SfxPoolItem* pBorderAttr = NULL;
SfxItemState eItemState = rSelItemSet.GetItemState( ATTR_BORDER, TRUE, &pBorderAttr );
const SfxPoolItem* pTLBRItem = 0;
@@ -3049,18 +3049,18 @@ void ScViewFunc::SetSelectionFrameLines( const SvxBorderLine* pLine,
// none of the lines don't care?
if( (eItemState != SFX_ITEM_DONTCARE) && (eTLBRState != SFX_ITEM_DONTCARE) && (eBLTRState != SFX_ITEM_DONTCARE) )
{
- SfxItemSet* pOldSet = new SfxItemSet(
+ SfxItemSet* pOldSet = new SfxItemSet(
*(pDoc->GetPool()),
ATTR_PATTERN_START,
ATTR_PATTERN_END );
- SfxItemSet* pNewSet = new SfxItemSet(
+ SfxItemSet* pNewSet = new SfxItemSet(
*(pDoc->GetPool()),
ATTR_PATTERN_START,
ATTR_PATTERN_END );
//------------------------------------------------------------
- const SvxBorderLine* pBoxLine = NULL;
- SvxBorderLine aLine;
+ const SvxBorderLine* pBoxLine = NULL;
+ SvxBorderLine aLine;
// hier wird die pBoxLine benutzt:
@@ -3137,10 +3137,10 @@ void ScViewFunc::SetSelectionFrameLines( const SvxBorderLine* pLine,
void ScViewFunc::SetConditionalFormat( const ScConditionalFormat& rNew )
{
ScDocument* pDoc = GetViewData()->GetDocument();
- ULONG nIndex = pDoc->AddCondFormat(rNew); // dafuer gibt's kein Undo
+ ULONG nIndex = pDoc->AddCondFormat(rNew); // dafuer gibt's kein Undo
SfxUInt32Item aItem( ATTR_CONDITIONAL, nIndex );
- ApplyAttr( aItem ); // mit Paint und Undo...
+ ApplyAttr( aItem ); // mit Paint und Undo...
}
@@ -3149,10 +3149,10 @@ void ScViewFunc::SetConditionalFormat( const ScConditionalFormat& rNew )
void ScViewFunc::SetValidation( const ScValidationData& rNew )
{
ScDocument* pDoc = GetViewData()->GetDocument();
- ULONG nIndex = pDoc->AddValidationEntry(rNew); // dafuer gibt's kein Undo
+ ULONG nIndex = pDoc->AddValidationEntry(rNew); // dafuer gibt's kein Undo
SfxUInt32Item aItem( ATTR_VALIDDATA, nIndex );
- ApplyAttr( aItem ); // mit Paint und Undo...
+ ApplyAttr( aItem ); // mit Paint und Undo...
}