summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorJacopo Nespolo <j.nespolo@gmail.com>2010-10-01 12:23:16 +0100
committerNoel Power <noel.power@novell.com>2010-10-01 12:23:16 +0100
commiteedd208284e201e25b983a2371f8666d392c904f (patch)
tree705a231dd872aa481021f2c7b134fee37e246407 /accessibility
parent8526951e75795a6ae0e659231708bb40687c0f5b (diff)
Removing dead code and cleaning up some comments
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/standard/vclxaccessiblebox.cxx2
-rw-r--r--accessibility/source/standard/vclxaccessiblelist.cxx7
-rw-r--r--accessibility/source/standard/vclxaccessibletoolboxitem.cxx14
3 files changed, 3 insertions, 20 deletions
diff --git a/accessibility/source/standard/vclxaccessiblebox.cxx b/accessibility/source/standard/vclxaccessiblebox.cxx
index 784588938bb8..b9352b5647ed 100644
--- a/accessibility/source/standard/vclxaccessiblebox.cxx
+++ b/accessibility/source/standard/vclxaccessiblebox.cxx
@@ -149,7 +149,7 @@ void VCLXAccessibleBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEven
{
// Selection is handled by VCLXAccessibleList which operates on
// the same VCL object as this box does. In case of the
- // combobox, however, we have to help the list with providing
+ // combobox, however, we have to help by providing the list with
// the text of the currently selected item.
VCLXAccessibleList* pList = static_cast<VCLXAccessibleList*>(m_xList.get());
if (pList != NULL && m_xText.is())
diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx
index 6d287a02f0e9..8c880b1c427e 100644
--- a/accessibility/source/standard/vclxaccessiblelist.cxx
+++ b/accessibility/source/standard/vclxaccessiblelist.cxx
@@ -71,7 +71,7 @@ VCLXAccessibleList::VCLXAccessibleList (VCLXWindow* pVCLWindow, BoxType aBoxType
m_bVisible ( true ),
m_xParent ( _xParent )
{
- // Because combo boxes and list boxes have the no common interface for
+ // Because combo boxes and list boxes don't have a common interface for
// methods with identical signature we have to write down twice the
// same code.
switch (m_aBoxType)
@@ -125,10 +125,6 @@ void SAL_CALL VCLXAccessibleList::disposing (void)
void VCLXAccessibleList::clearItems()
{
-// ListItems::iterator aEnd = m_aAccessibleChildren.end();
-// for (ListItems::iterator aIter = m_aAccessibleChildren.begin(); aIter != aEnd; ++aIter)
-// ::comphelper::disposeComponent(*aIter);
-
// Clear the list itself and delete all the rest.
ListItems().swap(m_aAccessibleChildren); // clear and minimize
}
@@ -790,7 +786,6 @@ void SAL_CALL VCLXAccessibleList::deselectAccessibleChild( sal_Int32 nSelectedCh
UpdateSelection_Impl();
}
// -----------------------------------------------------------------------------
-// accessibility::XAccessibleComponent
awt::Rectangle VCLXAccessibleList::implGetBounds() throw (uno::RuntimeException)
{
awt::Rectangle aBounds ( 0, 0, 0, 0 );
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
index 7580d1a3ae2c..b0b64f060240 100644
--- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
+++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
@@ -137,17 +137,6 @@ VCLXAccessibleToolBoxItem::~VCLXAccessibleToolBoxItem()
if ( m_pToolBox && m_nItemId > 0 && ( _bAsName || m_pToolBox->GetButtonType() != BUTTON_SYMBOL ) )
{
sRet = m_pToolBox->GetItemText( m_nItemId );
-//OJ #108243# we only read the name of the toolboxitem
-//
-// Window* pItemWindow = m_pToolBox->GetItemWindow( m_nItemId );
-// if ( pItemWindow && pItemWindow->GetAccessible().is() &&
-// pItemWindow->GetAccessible()->getAccessibleContext().is() )
-// {
-// ::rtl::OUString sWinText = pItemWindow->GetAccessible()->getAccessibleContext()->getAccessibleName();
-// if ( ( sRet.getLength() > 0 ) && ( sWinText.getLength() > 0 ) )
-// sRet += String( RTL_CONSTASCII_USTRINGPARAM( " " ) );
-// sRet += sWinText;
-// }
}
return sRet;
}
@@ -270,11 +259,10 @@ void VCLXAccessibleToolBoxItem::implGetSelection( sal_Int32& nStartIndex, sal_In
IMPLEMENT_FORWARD_REFCOUNT( VCLXAccessibleToolBoxItem, AccessibleTextHelper_BASE )
Any SAL_CALL VCLXAccessibleToolBoxItem::queryInterface( const Type& _rType ) throw (RuntimeException)
{
- // --> PB 2004-09-03 #i33611# - toolbox buttons without text don't support XAccessibleText
+ // #i33611# - toolbox buttons without text don't support XAccessibleText
if ( _rType == ::getCppuType( ( const Reference< XAccessibleText >* ) 0 )
&& ( !m_pToolBox || m_pToolBox->GetButtonType() == BUTTON_SYMBOL ) )
return Any();
- // <--
::com::sun::star::uno::Any aReturn = AccessibleTextHelper_BASE::queryInterface( _rType );
if ( !aReturn.hasValue() )