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.cxx98
1 files changed, 0 insertions, 98 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 22bdc79ca58c..a6d5420212b0 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -101,8 +101,6 @@ void VBA_DeleteModule( ScDocShell& rDocSh, const OUString& sModuleName );
// STATIC DATA ---------------------------------------------------------------
-
-
bool ScViewFunc::AdjustBlockHeight( bool bPaint, ScMarkData* pMarkData )
{
ScDocShell* pDocSh = GetViewData()->GetDocShell();
@@ -163,8 +161,6 @@ bool ScViewFunc::AdjustBlockHeight( bool bPaint, ScMarkData* pMarkData )
}
-
-
bool ScViewFunc::AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, bool bPaint )
{
ScDocShell* pDocSh = GetViewData()->GetDocShell();
@@ -203,8 +199,6 @@ bool ScViewFunc::AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, bool bPaint )
}
-
-
enum ScAutoSum
{
ScAutoSumNone = 0,
@@ -236,8 +230,6 @@ static ScAutoSum lcl_IsAutoSumData( ScDocument* pDoc, SCCOL nCol, SCROW nRow,
}
-
-
#define SC_AUTOSUM_MAXCOUNT 20
static ScAutoSum lcl_SeekAutoSumData( ScDocument* pDoc, SCCOL& nCol, SCROW& nRow,
@@ -271,8 +263,6 @@ static ScAutoSum lcl_SeekAutoSumData( ScDocument* pDoc, SCCOL& nCol, SCROW& nRow
#undef SC_AUTOSUM_MAXCOUNT
-
-
static bool lcl_FindNextSumEntryInColumn( ScDocument* pDoc, SCCOL nCol, SCROW& nRow,
SCTAB nTab, SCCOLROW& nExtend, SCROW nMinRow )
{
@@ -290,8 +280,6 @@ static bool lcl_FindNextSumEntryInColumn( ScDocument* pDoc, SCCOL nCol, SCROW& n
return false;
}
-
-
static bool lcl_FindNextSumEntryInRow( ScDocument* pDoc, SCCOL& nCol, SCROW nRow,
SCTAB nTab, SCCOLROW& nExtend, SCROW nMinCol )
{
@@ -309,8 +297,6 @@ static bool lcl_FindNextSumEntryInRow( ScDocument* pDoc, SCCOL& nCol, SCROW nRow
return false;
}
-
-
static bool lcl_GetAutoSumForColumnRange( ScDocument* pDoc, ScRangeList& rRangeList, const ScRange& rRange )
{
const ScAddress aStart = rRange.aStart;
@@ -353,8 +339,6 @@ static bool lcl_GetAutoSumForColumnRange( ScDocument* pDoc, ScRangeList& rRangeL
return true;
}
-
-
static bool lcl_GetAutoSumForRowRange( ScDocument* pDoc, ScRangeList& rRangeList, const ScRange& rRange )
{
const ScAddress aStart = rRange.aStart;
@@ -397,8 +381,6 @@ static bool lcl_GetAutoSumForRowRange( ScDocument* pDoc, ScRangeList& rRangeList
return true;
}
-
-
bool ScViewFunc::GetAutoSumArea( ScRangeList& rRangeList )
{
ScDocument* pDoc = GetViewData()->GetDocument();
@@ -503,16 +485,12 @@ bool ScViewFunc::GetAutoSumArea( ScRangeList& rRangeList )
return false;
}
-
-
void ScViewFunc::EnterAutoSum(const ScRangeList& rRangeList, bool bSubTotal, const ScAddress& rAddr)
{
OUString aFormula = GetAutoSumFormula( rRangeList, bSubTotal, rAddr );
EnterBlock( aFormula, NULL );
}
-
-
bool ScViewFunc::AutoSum( const ScRange& rRange, bool bSubTotal, bool bSetCursor, bool bContinue )
{
ScDocument* pDoc = GetViewData()->GetDocument();
@@ -712,8 +690,6 @@ bool ScViewFunc::AutoSum( const ScRange& rRange, bool bSubTotal, bool bSetCursor
return true;
}
-
-
OUString ScViewFunc::GetAutoSumFormula( const ScRangeList& rRangeList, bool bSubTotal, const ScAddress& rAddr )
{
ScViewData* pViewData = GetViewData();
@@ -757,8 +733,6 @@ OUString ScViewFunc::GetAutoSumFormula( const ScRangeList& rRangeList, bool bSub
return aBuf.makeStringAndClear();
}
-
-
void ScViewFunc::EnterBlock( const OUString& rString, const EditTextObject* pData )
{
// test for multi selection
@@ -845,8 +819,6 @@ void ScViewFunc::EnterBlock( const OUString& rString, const EditTextObject* pDat
delete pInsDoc;
}
-
-
// manual page break
void ScViewFunc::InsertPageBreak( bool bColumn, bool bRecord, const ScAddress* pPos,
@@ -867,8 +839,6 @@ void ScViewFunc::InsertPageBreak( bool bColumn, bool bRecord, const ScAddress* p
}
-
-
void ScViewFunc::DeletePageBreak( bool bColumn, bool bRecord, const ScAddress* pPos,
bool bSetModified )
{
@@ -886,8 +856,6 @@ void ScViewFunc::DeletePageBreak( bool bColumn, bool bRecord, const ScAddress* p
UpdatePageBreakData( true ); // for PageBreak-Mode
}
-
-
void ScViewFunc::RemoveManualBreaks()
{
ScDocShell* pDocSh = GetViewData()->GetDocShell();
@@ -912,8 +880,6 @@ void ScViewFunc::RemoveManualBreaks()
pDocSh->PostPaint( 0,0,nTab, MAXCOL,MAXROW,nTab, PAINT_GRID );
}
-
-
void ScViewFunc::SetPrintZoom(sal_uInt16 nScale, sal_uInt16 nPages)
{
ScDocShell* pDocSh = GetViewData()->GetDocShell();
@@ -929,8 +895,6 @@ void ScViewFunc::AdjustPrintZoom()
GetViewData()->GetDocShell()->AdjustPrintZoom( aRange );
}
-
-
void ScViewFunc::SetPrintRanges( bool bEntireSheet, const OUString* pPrint,
const OUString* pRepCol, const OUString* pRepRow,
bool bAddPrint )
@@ -1059,8 +1023,6 @@ bool ScViewFunc::TestMergeCells() // pre-test (for menu)
}
-
-
bool ScViewFunc::MergeCells( bool bApi, bool& rDoContents, bool bRecord, bool bCenter )
{
// Editable- and Being-Nested- test must be at the beginning (in DocFunc too),
@@ -1156,8 +1118,6 @@ bool ScViewFunc::MergeCells( bool bApi, bool& rDoContents, bool bRecord, bool bC
}
-
-
bool ScViewFunc::TestRemoveMerge()
{
bool bMerged = false;
@@ -1172,8 +1132,6 @@ bool ScViewFunc::TestRemoveMerge()
}
-
-
static bool lcl_extendMergeRange(ScCellMergeOption& rOption, const ScRange& rRange)
{
bool bExtended = false;
@@ -1248,8 +1206,6 @@ bool ScViewFunc::RemoveMerge( bool bRecord )
return true; //! bOk ??
}
-
-
void ScViewFunc::FillSimple( FillDir eDir, bool bRecord )
{
ScRange aRange;
@@ -1268,8 +1224,6 @@ void ScViewFunc::FillSimple( FillDir eDir, bool bRecord )
ErrorMessage(STR_NOMULTISELECT);
}
-
-
void ScViewFunc::FillSeries( FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd,
double fStart, double fStep, double fMax, bool bRecord )
{
@@ -1293,8 +1247,6 @@ void ScViewFunc::FillSeries( FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd,
ErrorMessage(STR_NOMULTISELECT);
}
-
-
void ScViewFunc::FillAuto( FillDir eDir, SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow, sal_uLong nCount, bool bRecord )
{
@@ -1338,8 +1290,6 @@ void ScViewFunc::FillAuto( FillDir eDir, SCCOL nStartCol, SCROW nStartRow,
}
}
-
-
void ScViewFunc::FillTab( sal_uInt16 nFlags, sal_uInt16 nFunction, bool bSkipEmpty, bool bAsLink )
{
//! allow source sheet to be protected
@@ -1407,8 +1357,6 @@ void ScViewFunc::FillTab( sal_uInt16 nFlags, sal_uInt16 nFunction, bool bSkipEmp
pDocSh->PostDataChanged();
}
-
-
/** Downward fill of selected cell(s) by double-clicking cross-hair cursor
Extends a current selection down to the last non-empty cell of an adjacent
@@ -1482,8 +1430,6 @@ void ScViewFunc::FillCrossDblClick()
}
}
-
-
void ScViewFunc::TransliterateText( sal_Int32 nType )
{
ScMarkData aFuncMark = GetViewData()->GetMarkData();
@@ -1528,8 +1474,6 @@ ScAutoFormatData* ScViewFunc::CreateAutoFormatData()
}
-
-
void ScViewFunc::AutoFormat( sal_uInt16 nFormatNo, bool bRecord )
{
ScRange aRange;
@@ -1546,8 +1490,6 @@ void ScViewFunc::AutoFormat( sal_uInt16 nFormatNo, bool bRecord )
ErrorMessage(STR_NOMULTISELECT);
}
-
-
// Suchen & Ersetzen
bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
@@ -1764,8 +1706,6 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
return bFound;
}
-
-
// Zielwertsuche
void ScViewFunc::Solve( const ScSolveParam& rParam )
@@ -1840,8 +1780,6 @@ void ScViewFunc::Solve( const ScSolveParam& rParam )
}
}
-
-
// multi operation
void ScViewFunc::TabOp( const ScTabOpParam& rParam, bool bRecord )
@@ -1858,8 +1796,6 @@ void ScViewFunc::TabOp( const ScTabOpParam& rParam, bool bRecord )
}
-
-
void ScViewFunc::MakeScenario( const OUString& rName, const OUString& rComment,
const Color& rColor, sal_uInt16 nFlags )
{
@@ -1882,8 +1818,6 @@ void ScViewFunc::MakeScenario( const OUString& rName, const OUString& rComment,
}
-
-
void ScViewFunc::ExtendScenario()
{
ScEditableTester aTester( this );
@@ -1903,8 +1837,6 @@ void ScViewFunc::ExtendScenario()
}
-
-
void ScViewFunc::UseScenario( const OUString& rName )
{
ScDocShell* pDocSh = GetViewData()->GetDocShell();
@@ -1915,8 +1847,6 @@ void ScViewFunc::UseScenario( const OUString& rName )
pDocSh->UseScenario( nTab, rName );
}
-
-
// Insert table
bool ScViewFunc::InsertTable( const OUString& rName, SCTAB nTab, bool bRecord )
@@ -1981,8 +1911,6 @@ bool ScViewFunc::InsertTables(std::vector<OUString>& aNames, SCTAB nTab,
}
-
-
bool ScViewFunc::AppendTable( const OUString& rName, bool bRecord )
{
ScDocShell* pDocSh = GetViewData()->GetDocShell();
@@ -2015,8 +1943,6 @@ bool ScViewFunc::AppendTable( const OUString& rName, bool bRecord )
}
-
-
bool ScViewFunc::DeleteTable( SCTAB nTab, bool bRecord )
{
ScDocShell* pDocSh = GetViewData()->GetDocShell();
@@ -2207,8 +2133,6 @@ bool ScViewFunc::DeleteTables(const vector<SCTAB> &TheTabs, bool bRecord )
}
-
-
bool ScViewFunc::RenameTable( const OUString& rName, SCTAB nTab )
{
// order Table/Name is inverted for DocFunc
@@ -2223,8 +2147,6 @@ bool ScViewFunc::RenameTable( const OUString& rName, SCTAB nTab )
}
-
-
bool ScViewFunc::SetTabBgColor( const Color& rColor, SCTAB nTab )
{
bool bSuccess = GetViewData()->GetDocShell()->GetDocFunc().SetTabBgColor( nTab, rColor, true, false );
@@ -2245,8 +2167,6 @@ bool ScViewFunc::SetTabBgColor( ScUndoTabColorInfo::List& rUndoSetTabBgColorInfo
return bSuccess;
}
-
-
void ScViewFunc::InsertAreaLink( const OUString& rFile,
const OUString& rFilter, const OUString& rOptions,
const OUString& rSource, sal_uLong nRefresh )
@@ -2261,8 +2181,6 @@ void ScViewFunc::InsertAreaLink( const OUString& rFile,
}
-
-
void ScViewFunc::InsertTableLink( const OUString& rFile,
const OUString& rFilter, const OUString& rOptions,
const OUString& rTabName )
@@ -2296,8 +2214,6 @@ void ScViewFunc::InsertTableLink( const OUString& rFile,
}
}
-
-
// Copy/link tables from another document
void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
@@ -2420,8 +2336,6 @@ void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
ErrorMessage(STR_NAMECONFLICT);
}
-
-
// Move/Copy table to another document
void ScViewFunc::MoveTable(
@@ -2777,8 +2691,6 @@ void ScViewFunc::MoveTable(
}
-
-
void ScViewFunc::ShowTable( const std::vector<OUString>& rNames )
{
ScDocShell* pDocSh = GetViewData()->GetDocShell();
@@ -2817,8 +2729,6 @@ void ScViewFunc::ShowTable( const std::vector<OUString>& rNames )
}
-
-
void ScViewFunc::HideTable( const ScMarkData& rMark )
{
ScDocShell* pDocSh = GetViewData()->GetDocShell();
@@ -2868,8 +2778,6 @@ void ScViewFunc::HideTable( const ScMarkData& rMark )
}
-
-
void ScViewFunc::InsertSpecialChar( const OUString& rStr, const Font& rFont )
{
ScEditableTester aTester( this );
@@ -2905,8 +2813,6 @@ void ScViewFunc::InsertSpecialChar( const OUString& rStr, const Font& rFont )
}
-
-
void ScViewFunc::UpdateLineAttrs( SvxBorderLine& rLine,
const SvxBorderLine* pDestLine,
const SvxBorderLine* pSrcLine,
@@ -2944,8 +2850,6 @@ void ScViewFunc::UpdateLineAttrs( SvxBorderLine& rLine,
}
-
-
void ScViewFunc::SetSelectionFrameLines( const SvxBorderLine* pLine,
bool bColorOnly )
{
@@ -3061,8 +2965,6 @@ void ScViewFunc::SetSelectionFrameLines( const SvxBorderLine* pLine,
#undef SET_LINE_ATTRIBUTES
-
-
void ScViewFunc::SetValidation( const ScValidationData& rNew )
{
ScDocument* pDoc = GetViewData()->GetDocument();