summaryrefslogtreecommitdiff
path: root/sc/source/ui/Accessibility
diff options
context:
space:
mode:
authorJustin Malcolm <malcolm.justin@gmail.com>2010-09-28 22:45:09 -0400
committerKohei Yoshida <kyoshida@novell.com>2010-09-28 22:45:09 -0400
commit4c2fcdee1949996c6f63d1f0645e5cb2edf8e00d (patch)
tree09149b91a47819d5a0626a600833b7ac819db626 /sc/source/ui/Accessibility
parentc062dad9b1d937a975354ceee75b7f16b756c2d2 (diff)
This gets rid of a great number of the comments
There are a great number of places in calc where code is commented out with lines staring in "//UNUSED". Since 'git' is being used, there is no reason to keep old code like this in comments.
Diffstat (limited to 'sc/source/ui/Accessibility')
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx54
-rw-r--r--sc/source/ui/Accessibility/AccessibleText.cxx26
2 files changed, 0 insertions, 80 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
index 894e57d3802e..c3caf93b007d 100644
--- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
@@ -735,7 +735,6 @@ private:
::accessibility::AccessibleShape* GetAccShape(const ScShapeChild& rShape) const;
::accessibility::AccessibleShape* GetAccShape(const ScShapeChildVec& rShapes, sal_Int32 nIndex) const;
void FillShapes(const Rectangle& aPixelPaintRect, const MapMode& aMapMode, sal_uInt8 nRangeId);
-//UNUSED2008-05 sal_Bool FindShape(ScShapeChildVec& rShapes, const uno::Reference <drawing::XShape>& xShape, ScShapeChildVec::iterator& rItr) const;
// void AddShape(const uno::Reference<drawing::XShape>& xShape, SdrLayerID aLayerID);
// void RemoveShape(const uno::Reference<drawing::XShape>& xShape, SdrLayerID aLayerID);
@@ -1201,21 +1200,6 @@ void ScShapeChilds::FillShapes(const Rectangle& aPixelPaintRect, const MapMode&
}
}
-//UNUSED2008-05 sal_Bool ScShapeChilds::FindShape(ScShapeChildVec& rShapes, const uno::Reference <drawing::XShape>& xShape, ScShapeChildVec::iterator& rItr) const
-//UNUSED2008-05 {
-//UNUSED2008-05 sal_Bool bResult(sal_False);
-//UNUSED2008-05 ScShapeChild aShape;
-//UNUSED2008-05 aShape.mxShape = xShape;
-//UNUSED2008-05 rItr = std::lower_bound(rShapes.begin(), rShapes.end(), aShape, ScShapeChildLess());
-//UNUSED2008-05 if (rItr->mxShape.get() == xShape.get())
-//UNUSED2008-05 bResult = sal_True; // if the shape is found
-//UNUSED2008-05
-//UNUSED2008-05 /*#ifdef DBG_UTIL // test whether it finds truly the correct shape (perhaps it is not really sorted)
-//UNUSED2008-05 ScShapeChildVec::iterator aDebugItr = std::find(rShapes.begin(), rShapes.end(), aShape);
-//UNUSED2008-05 DBG_ASSERT(rItr == aDebugItr, "wrong Shape found");
-//UNUSED2008-05 #endif*/
-//UNUSED2008-05 return bResult;
-//UNUSED2008-05 }
/*void ScShapeChilds::AddShape(const uno::Reference<drawing::XShape>& xShape, SdrLayerID aLayerID)
{
@@ -1902,41 +1886,3 @@ ScShapeChilds* ScAccessibleDocumentPagePreview::GetShapeChilds()
return mpShapeChilds;
}
-
-//UNUSED2009-05 uno::Reference < XAccessible > ScAccessibleDocumentPagePreview::GetCurrentAccessibleTable()
-//UNUSED2009-05 {
-//UNUSED2009-05 if (!mpTable)
-//UNUSED2009-05 {
-//UNUSED2009-05 if ( mpViewShell )
-//UNUSED2009-05 {
-//UNUSED2009-05 const ScPreviewLocationData& rData = mpViewShell->GetLocationData();
-//UNUSED2009-05 ScPagePreviewCountData aCount( rData, mpViewShell->GetWindow(), GetNotesChilds(), GetShapeChilds() );
-//UNUSED2009-05 //! order is background shapes, header, table or notes, footer, foreground shapes, controls
-//UNUSED2009-05 sal_Int32 nIndex (aCount.nBackShapes + aCount.nHeaders);
-//UNUSED2009-05
-//UNUSED2009-05 mpTable = new ScAccessiblePreviewTable( this, mpViewShell, nIndex );
-//UNUSED2009-05 mpTable->acquire();
-//UNUSED2009-05 mpTable->Init();
-//UNUSED2009-05 }
-//UNUSED2009-05 }
-//UNUSED2009-05 return mpTable;
-//UNUSED2009-05 }
-
-//UNUSED2009-05 void ScAccessibleDocumentPagePreview::ChildCountChanged()
-//UNUSED2009-05 {
-//UNUSED2009-05 if (mpViewShell)
-//UNUSED2009-05 {
-//UNUSED2009-05 const ScPreviewLocationData& rData = mpViewShell->GetLocationData();
-//UNUSED2009-05 ScPagePreviewCountData aCount( rData, mpViewShell->GetWindow(), GetNotesChilds(), GetShapeChilds() );
-//UNUSED2009-05 //! order is background shapes, header, table or notes, footer, foreground shapes, controls
-//UNUSED2009-05 if(mpHeader)
-//UNUSED2009-05 mpHeader->SetCurrentIndexInParent(aCount.nBackShapes);
-//UNUSED2009-05 if (mpTable)
-//UNUSED2009-05 mpTable->SetCurrentIndexInParent(aCount.nBackShapes + aCount.nHeaders);
-//UNUSED2009-05 if (mpFooter)
-//UNUSED2009-05 mpFooter->SetCurrentIndexInParent(aCount.nBackShapes + aCount.nHeaders + aCount.nTables + aCount.nNoteParagraphs);
-//UNUSED2009-05
-//UNUSED2009-05 if (mpNotesChilds)
-//UNUSED2009-05 mpNotesChilds->SetOffset(aCount.nBackShapes + aCount.nHeaders);
-//UNUSED2009-05 }
-//UNUSED2009-05 }
diff --git a/sc/source/ui/Accessibility/AccessibleText.cxx b/sc/source/ui/Accessibility/AccessibleText.cxx
index 4073e23f837f..94ea082a862c 100644
--- a/sc/source/ui/Accessibility/AccessibleText.cxx
+++ b/sc/source/ui/Accessibility/AccessibleText.cxx
@@ -1407,19 +1407,6 @@ SvxViewForwarder* ScAccessiblePreviewCellTextData::GetViewForwarder()
return mpViewForwarder;
}
-//UNUSED2008-05 IMPL_LINK(ScAccessiblePreviewCellTextData, NotifyHdl, EENotify*, aNotify)
-//UNUSED2008-05 {
-//UNUSED2008-05 if( aNotify )
-//UNUSED2008-05 {
-//UNUSED2008-05 ::std::auto_ptr< SfxHint > aHint = SvxEditSourceHelper::EENotification2Hint( aNotify);
-//UNUSED2008-05
-//UNUSED2008-05 if( aHint.get() )
-//UNUSED2008-05 GetBroadcaster().Broadcast( *aHint.get() );
-//UNUSED2008-05 }
-//UNUSED2008-05
-//UNUSED2008-05 return 0;
-//UNUSED2008-05 }
-
ScDocShell* ScAccessiblePreviewCellTextData::GetDocShell(ScPreviewShell* pViewShell)
{
ScDocShell* pDocSh = NULL;
@@ -1535,19 +1522,6 @@ SvxViewForwarder* ScAccessiblePreviewHeaderCellTextData::GetViewForwarder()
return mpViewForwarder;
}
-//UNUSED2008-05 IMPL_LINK(ScAccessiblePreviewHeaderCellTextData, NotifyHdl, EENotify*, aNotify)
-//UNUSED2008-05 {
-//UNUSED2008-05 if( aNotify )
-//UNUSED2008-05 {
-//UNUSED2008-05 ::std::auto_ptr< SfxHint > aHint = SvxEditSourceHelper::EENotification2Hint( aNotify);
-//UNUSED2008-05
-//UNUSED2008-05 if( aHint.get() )
-//UNUSED2008-05 GetBroadcaster().Broadcast( *aHint.get() );
-//UNUSED2008-05 }
-//UNUSED2008-05
-//UNUSED2008-05 return 0;
-//UNUSED2008-05 }
-
ScDocShell* ScAccessiblePreviewHeaderCellTextData::GetDocShell(ScPreviewShell* pViewShell)
{
ScDocShell* pDocSh = NULL;