remove unused code in ScColumn
Specifically: ScColumn::DeleteCellNote(int) ScColumn::MoveListeners(SvtBroadcaster&, int) ScColumn::SetRawString(sc::ColumnBlockPosition&, int, rtl::OUString const&, bool) Change-Id: I34ec659bce7ae18cc3e9d0e27fcd138bc64201b0
This commit is contained in:
@@ -303,7 +303,6 @@ public:
|
|||||||
|
|
||||||
void SetRawString( SCROW nRow, const OUString& rStr, bool bBroadcast = true );
|
void SetRawString( SCROW nRow, const OUString& rStr, bool bBroadcast = true );
|
||||||
void SetRawString( SCROW nRow, const svl::SharedString& rStr, bool bBroadcast = true );
|
void SetRawString( SCROW nRow, const svl::SharedString& rStr, bool bBroadcast = true );
|
||||||
void SetRawString( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const OUString& rStr, bool bBroadcast = true );
|
|
||||||
void SetRawString( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const svl::SharedString& rStr, bool bBroadcast = true );
|
void SetRawString( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const svl::SharedString& rStr, bool bBroadcast = true );
|
||||||
void SetValue( SCROW nRow, double fVal );
|
void SetValue( SCROW nRow, double fVal );
|
||||||
void SetValues( SCROW nRow, const std::vector<double>& rVals );
|
void SetValues( SCROW nRow, const std::vector<double>& rVals );
|
||||||
@@ -458,7 +457,6 @@ public:
|
|||||||
void EndListening( SvtListener& rLst, SCROW nRow );
|
void EndListening( SvtListener& rLst, SCROW nRow );
|
||||||
void StartListening( sc::StartListeningContext& rCxt, SCROW nRow, SvtListener& rListener );
|
void StartListening( sc::StartListeningContext& rCxt, SCROW nRow, SvtListener& rListener );
|
||||||
void EndListening( sc::EndListeningContext& rCxt, SCROW nRow, SvtListener& rListener );
|
void EndListening( sc::EndListeningContext& rCxt, SCROW nRow, SvtListener& rListener );
|
||||||
void MoveListeners( SvtBroadcaster& rSource, SCROW nDestRow );
|
|
||||||
void StartAllListeners();
|
void StartAllListeners();
|
||||||
void StartNeededListeners(); // only for cells where NeedsListening()==true
|
void StartNeededListeners(); // only for cells where NeedsListening()==true
|
||||||
void SetDirtyIfPostponed();
|
void SetDirtyIfPostponed();
|
||||||
@@ -512,7 +510,6 @@ public:
|
|||||||
ScPostIt* GetCellNote( SCROW nRow );
|
ScPostIt* GetCellNote( SCROW nRow );
|
||||||
const ScPostIt* GetCellNote( SCROW nRow ) const;
|
const ScPostIt* GetCellNote( SCROW nRow ) const;
|
||||||
void DeleteCellNotes( sc::ColumnBlockPosition& rBlockPos, SCROW nRow1, SCROW nRow2 );
|
void DeleteCellNotes( sc::ColumnBlockPosition& rBlockPos, SCROW nRow1, SCROW nRow2 );
|
||||||
void DeleteCellNote( SCROW nRow );
|
|
||||||
bool HasCellNotes() const;
|
bool HasCellNotes() const;
|
||||||
void SetCellNote( SCROW nRow, ScPostIt* pNote);
|
void SetCellNote( SCROW nRow, ScPostIt* pNote);
|
||||||
bool IsNotesEmptyBlock(SCROW nStartRow, SCROW nEndRow) const;
|
bool IsNotesEmptyBlock(SCROW nStartRow, SCROW nEndRow) const;
|
||||||
|
@@ -1859,10 +1859,7 @@ void ScColumn::SetCellNote(SCROW nRow, ScPostIt* pNote)
|
|||||||
//pNote->UpdateCaptionPos(ScAddress(nCol, nRow, nTab)); // TODO notes usefull ? slow import with many notes
|
//pNote->UpdateCaptionPos(ScAddress(nCol, nRow, nTab)); // TODO notes usefull ? slow import with many notes
|
||||||
maCellNotes.set(nRow, pNote);
|
maCellNotes.set(nRow, pNote);
|
||||||
}
|
}
|
||||||
void ScColumn::DeleteCellNote(SCROW nRow)
|
|
||||||
{
|
|
||||||
maCellNotes.set_empty(nRow, nRow);
|
|
||||||
}
|
|
||||||
void ScColumn::DeleteCellNotes( sc::ColumnBlockPosition& rBlockPos, SCROW nRow1, SCROW nRow2 )
|
void ScColumn::DeleteCellNotes( sc::ColumnBlockPosition& rBlockPos, SCROW nRow1, SCROW nRow2 )
|
||||||
{
|
{
|
||||||
rBlockPos.miCellNotePos =
|
rBlockPos.miCellNotePos =
|
||||||
@@ -2946,31 +2943,6 @@ void ScColumn::StartListening( SvtListener& rLst, SCROW nRow )
|
|||||||
startListening(maBroadcasters, aPos.first, aPos.second, nRow, rLst);
|
startListening(maBroadcasters, aPos.first, aPos.second, nRow, rLst);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScColumn::MoveListeners( SvtBroadcaster& rSource, SCROW nDestRow )
|
|
||||||
{
|
|
||||||
// Move listeners from the source position to the destination position.
|
|
||||||
if (!rSource.HasListeners())
|
|
||||||
// No listeners to relocate. Bail out.
|
|
||||||
return;
|
|
||||||
|
|
||||||
// See if the destination position already has a broadcaster, if not, create one.
|
|
||||||
SvtBroadcaster* pBC = GetBroadcaster(nDestRow);
|
|
||||||
if (!pBC)
|
|
||||||
{
|
|
||||||
pBC = new SvtBroadcaster;
|
|
||||||
maBroadcasters.set(nDestRow, pBC);
|
|
||||||
}
|
|
||||||
|
|
||||||
SvtBroadcaster::ListenersType& rListeners = rSource.GetAllListeners();
|
|
||||||
SvtBroadcaster::ListenersType::iterator it = rListeners.begin(), itEnd = rListeners.end();
|
|
||||||
for (; it != itEnd; ++it)
|
|
||||||
{
|
|
||||||
SvtListener& rLst = **it;
|
|
||||||
rLst.StartListening(*pBC);
|
|
||||||
rLst.EndListening(rSource);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void ScColumn::EndListening( SvtListener& rLst, SCROW nRow )
|
void ScColumn::EndListening( SvtListener& rLst, SCROW nRow )
|
||||||
{
|
{
|
||||||
SvtBroadcaster* pBC = GetBroadcaster(nRow);
|
SvtBroadcaster* pBC = GetBroadcaster(nRow);
|
||||||
|
@@ -2249,16 +2249,6 @@ void ScColumn::SetRawString( SCROW nRow, const svl::SharedString& rStr, bool bBr
|
|||||||
BroadcastNewCell(nRow);
|
BroadcastNewCell(nRow);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScColumn::SetRawString(
|
|
||||||
sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const OUString& rStr, bool bBroadcast )
|
|
||||||
{
|
|
||||||
svl::SharedString aSS = pDocument->GetSharedStringPool().intern(rStr);
|
|
||||||
if (!aSS.getData())
|
|
||||||
return;
|
|
||||||
|
|
||||||
SetRawString(rBlockPos, nRow, aSS, bBroadcast);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ScColumn::SetRawString(
|
void ScColumn::SetRawString(
|
||||||
sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const svl::SharedString& rStr, bool bBroadcast )
|
sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const svl::SharedString& rStr, bool bBroadcast )
|
||||||
{
|
{
|
||||||
|
@@ -68,9 +68,6 @@ ScCellValue::hasString() const
|
|||||||
ScCellValue::set(ScFormulaCell const&)
|
ScCellValue::set(ScFormulaCell const&)
|
||||||
ScCollection::IndexOf(ScDataObject*) const
|
ScCollection::IndexOf(ScDataObject*) const
|
||||||
ScColorScaleEntry::UpdateMoveTab(short, short, short)
|
ScColorScaleEntry::UpdateMoveTab(short, short, short)
|
||||||
ScColumn::DeleteCellNote(int)
|
|
||||||
ScColumn::MoveListeners(SvtBroadcaster&, int)
|
|
||||||
ScColumn::SetRawString(sc::ColumnBlockPosition&, int, rtl::OUString const&, bool)
|
|
||||||
ScDocument::CreateFormatTable() const
|
ScDocument::CreateFormatTable() const
|
||||||
ScExtIButton::GetSelected() const
|
ScExtIButton::GetSelected() const
|
||||||
ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
|
ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
|
||||||
|
Reference in New Issue
Block a user