You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/11/29 13:52:24 UTC
svn commit: r1546553 - in /openoffice/trunk/main:
accessibility/source/extended/ accessibility/source/standard/
chart2/source/controller/dialogs/ cui/source/dialogs/ editeng/inc/editeng/
editeng/source/accessibility/ editeng/source/editeng/ editeng/sou...
Author: hdu
Date: Fri Nov 29 12:52:23 2013
New Revision: 1546553
URL: http://svn.apache.org/r1546553
Log:
#i123768# remove pre-IA2 code remains that has been commented out
The pre-IA2 code is available in the repository and
the commented out code made the methods less readable.
Modified:
openoffice/trunk/main/accessibility/source/extended/accessiblelistboxentry.cxx
openoffice/trunk/main/accessibility/source/extended/textwindowaccessibility.cxx
openoffice/trunk/main/accessibility/source/standard/vclxaccessiblecheckbox.cxx
openoffice/trunk/main/accessibility/source/standard/vclxaccessiblelist.cxx
openoffice/trunk/main/chart2/source/controller/dialogs/tp_DataSource.cxx
openoffice/trunk/main/cui/source/dialogs/cuigrfflt.cxx
openoffice/trunk/main/editeng/inc/editeng/unofored.hxx
openoffice/trunk/main/editeng/inc/editeng/unoforou.hxx
openoffice/trunk/main/editeng/inc/editeng/unotext.hxx
openoffice/trunk/main/editeng/source/accessibility/AccessibleEditableTextPara.cxx
openoffice/trunk/main/editeng/source/accessibility/AccessibleStaticTextBase.cxx
openoffice/trunk/main/editeng/source/editeng/impedit.hxx
openoffice/trunk/main/editeng/source/editeng/impedit3.cxx
openoffice/trunk/main/editeng/source/uno/unoedprx.cxx
openoffice/trunk/main/formula/source/ui/dlg/formdlgs.src
openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleCellBase.cxx
openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleDataPilotControl.cxx
openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleDocument.cxx
openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleTableBase.cxx
openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleText.cxx
openoffice/trunk/main/sc/source/ui/inc/AccessibleDocument.hxx
openoffice/trunk/main/sc/source/ui/navipi/content.cxx
openoffice/trunk/main/sc/source/ui/view/gridwin.cxx
openoffice/trunk/main/sc/source/ui/view/gridwin5.cxx
openoffice/trunk/main/sc/source/ui/view/output.cxx
openoffice/trunk/main/sc/source/ui/view/preview.cxx
openoffice/trunk/main/sc/source/ui/view/viewfun2.cxx
openoffice/trunk/main/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
openoffice/trunk/main/sd/source/ui/accessibility/AccessibleOutlineEditSource.cxx
openoffice/trunk/main/sd/source/ui/accessibility/AccessiblePresentationShape.cxx
openoffice/trunk/main/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx
openoffice/trunk/main/sd/source/ui/func/fuediglu.cxx
openoffice/trunk/main/sd/source/ui/view/sdwindow.cxx
openoffice/trunk/main/sfx2/source/view/viewfrm.cxx
openoffice/trunk/main/svtools/source/brwbox/brwbox3.cxx
openoffice/trunk/main/svtools/source/brwbox/editbrowsebox.cxx
openoffice/trunk/main/svtools/source/contnr/svtreebx.cxx
openoffice/trunk/main/svtools/source/control/valueacc.cxx
openoffice/trunk/main/svtools/source/control/valueset.cxx
openoffice/trunk/main/svx/source/accessibility/AccessibleGraphicShape.cxx
openoffice/trunk/main/svx/source/accessibility/AccessibleShape.cxx
openoffice/trunk/main/svx/source/accessibility/AccessibleTextHelper.cxx
openoffice/trunk/main/svx/source/accessibility/ChildrenManagerImpl.cxx
openoffice/trunk/main/svx/source/accessibility/charmapacc.cxx
openoffice/trunk/main/svx/source/accessibility/svxrectctaccessiblecontext.cxx
Modified: openoffice/trunk/main/accessibility/source/extended/accessiblelistboxentry.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/accessibility/source/extended/accessiblelistboxentry.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/accessibility/source/extended/accessiblelistboxentry.cxx (original)
+++ openoffice/trunk/main/accessibility/source/extended/accessiblelistboxentry.cxx Fri Nov 29 12:52:23 2013
@@ -908,10 +908,7 @@ namespace accessibility
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
-// SvLBoxEntry* pParent = getListBox()->GetEntryFromPath( m_aEntryPath );
-// SvLBoxEntry* pEntry = getListBox()->GetEntry( pParent, nChildIndex );
-
- SvLBoxEntry* pEntry =GetRealChild(nChildIndex);
+ SvLBoxEntry* pEntry = GetRealChild(nChildIndex);
if ( !pEntry )
throw IndexOutOfBoundsException();
Modified: openoffice/trunk/main/accessibility/source/extended/textwindowaccessibility.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/accessibility/source/extended/textwindowaccessibility.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/accessibility/source/extended/textwindowaccessibility.cxx (original)
+++ openoffice/trunk/main/accessibility/source/extended/textwindowaccessibility.cxx Fri Nov 29 12:52:23 2013
@@ -1533,20 +1533,7 @@ Document::retrieveParagraphRelationSet(
void Document::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
- switch ( rVclWindowEvent.GetId() )
- {
- case VCLEVENT_WINDOW_GETFOCUS:
- case VCLEVENT_WINDOW_LOSEFOCUS:
- {
- // #107179# if our parent is a compound control (e.g. MultiLineEdit),
- // suppress the window focus events here
- //if ( !m_bCompoundControlChild )
- VCLXAccessibleComponent::ProcessWindowEvent( rVclWindowEvent );
- }
- break;
- default:
- VCLXAccessibleComponent::ProcessWindowEvent( rVclWindowEvent );
- }
+ VCLXAccessibleComponent::ProcessWindowEvent( rVclWindowEvent );
}
// virtual
Modified: openoffice/trunk/main/accessibility/source/standard/vclxaccessiblecheckbox.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/accessibility/source/standard/vclxaccessiblecheckbox.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/accessibility/source/standard/vclxaccessiblecheckbox.cxx (original)
+++ openoffice/trunk/main/accessibility/source/standard/vclxaccessiblecheckbox.cxx Fri Nov 29 12:52:23 2013
@@ -238,7 +238,6 @@ sal_Bool VCLXAccessibleCheckBox::doAcces
if ( nIndex < 0 || nIndex >= getAccessibleActionCount() )
throw IndexOutOfBoundsException();
- // return ::rtl::OUString( TK_RES_STRING( RID_STR_ACC_ACTION_CLICK ) );
if(IsChecked())
return ::rtl::OUString( TK_RES_STRING( RID_STR_ACC_ACTION_UNCHECK ) );
else
Modified: openoffice/trunk/main/accessibility/source/standard/vclxaccessiblelist.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/accessibility/source/standard/vclxaccessiblelist.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/accessibility/source/standard/vclxaccessiblelist.cxx (original)
+++ openoffice/trunk/main/accessibility/source/standard/vclxaccessiblelist.cxx Fri Nov 29 12:52:23 2013
@@ -426,12 +426,7 @@ void VCLXAccessibleList::ProcessWindowEv
case VCLEVENT_COMBOBOX_SCROLLED:
UpdateEntryRange_Impl();
break;
- /*
- case VCLEVENT_LISTBOX_SELECT:
- if ( !m_bDisableProcessEvent )
- UpdateSelection_Impl();
- break;
- */
+
// The selection events VCLEVENT_COMBOBOX_SELECT and
// VCLEVENT_COMBOBOX_DESELECT are not handled here because here we
// have no access to the edit field. Its text is necessary to
@@ -561,15 +556,7 @@ Reference<XAccessible> VCLXAccessibleLis
{
xChild = m_aAccessibleChildren[nPos];
// check if position is empty and can be used else we have to adjust all entries behind this
- if ( xChild.is() )
- {
- /*
- ListItems::iterator aIter = m_aAccessibleChildren.begin() + nPos;
- ::std::mem_fun_t<bool, VCLXAccessibleListItem> aTemp(&VCLXAccessibleListItem::IncrementIndexInParent);
- adjustEntriesIndexInParent( aIter, aTemp);
- */
- }
- else
+ if ( !xChild.is() )
{
xChild = new VCLXAccessibleListItem(m_pListBoxHelper, i, this);
m_aAccessibleChildren[nPos] = xChild;
@@ -602,26 +589,6 @@ Reference<XAccessible> VCLXAccessibleLis
void VCLXAccessibleList::HandleChangedItemList (bool bItemInserted, sal_Int32 nIndex)
{
- /*
- if ( !bItemInserted )
- {
- if ( nIndex == -1 ) // special handling here
- {
- clearItems();
- }
- else
- {
- if ( nIndex >= 0 && static_cast<sal_uInt16>(nIndex) < m_aAccessibleChildren.size() )
- {
- ListItems::iterator aIter = m_aAccessibleChildren.erase(m_aAccessibleChildren.begin()+nIndex);
- ::std::mem_fun_t<bool, VCLXAccessibleListItem> aTemp(&VCLXAccessibleListItem::DecrementIndexInParent);
- adjustEntriesIndexInParent( aIter, aTemp );
- }
- }
- }
- else
- getAccessibleChild(nIndex);
- */
clearItems();
NotifyAccessibleEvent (
AccessibleEventId::INVALIDATE_ALL_CHILDREN,
@@ -1070,11 +1037,8 @@ awt::Rectangle VCLXAccessibleList::implG
if ( pBox )
{
Size aSize = pBox->GetSubEdit()->GetSizePixel();
- //aBounds.X += aSize.Height();
- //aBounds.Y += aSize.Width();
aBounds.Y += aSize.Height();
aBounds.Height -= aSize.Height();
- //aBounds.Width -= aSize.Width();
}
}
}
@@ -1102,8 +1066,6 @@ awt::Point VCLXAccessibleList::getLocati
ComboBox* pBox = static_cast<ComboBox*>(GetWindow());
if ( pBox )
{
- //aPos.X += pBox->GetSubEdit()->GetSizePixel().Height();
- //aPos.Y += pBox->GetSubEdit()->GetSizePixel().Width();
aPos.Y += pBox->GetSubEdit()->GetSizePixel().Height();
}
}
Modified: openoffice/trunk/main/chart2/source/controller/dialogs/tp_DataSource.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/chart2/source/controller/dialogs/tp_DataSource.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/chart2/source/controller/dialogs/tp_DataSource.cxx (original)
+++ openoffice/trunk/main/chart2/source/controller/dialogs/tp_DataSource.cxx Fri Nov 29 12:52:23 2013
@@ -69,10 +69,6 @@ const OUString lcl_aLabelRole( RTL_CONST
String lcl_GetRoleLBEntry(
const OUString & rRole, const OUString & rRange )
{
- //String aEntry( rRole );
- //aEntry += '\t';
- //aEntry += String(
- // ::chart::DialogModel::ConvertRoleFromInternalToUI( rRole ));
String aEntry(::chart::DialogModel::ConvertRoleFromInternalToUI( rRole ));
aEntry += '\t';
aEntry += String( rRange );
Modified: openoffice/trunk/main/cui/source/dialogs/cuigrfflt.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/cui/source/dialogs/cuigrfflt.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/cui/source/dialogs/cuigrfflt.cxx (original)
+++ openoffice/trunk/main/cui/source/dialogs/cuigrfflt.cxx Fri Nov 29 12:52:23 2013
@@ -534,8 +534,6 @@ GraphicFilterSolarize::GraphicFilterSola
maCbxInvert.Check( bInvert );
maCbxInvert.SetToggleHdl( GetModifyHdl() );
-
- // maMtrThreshold.GrabFocus();
}
// -----------------------------------------------------------------------------
@@ -594,8 +592,6 @@ GraphicFilterSepia::GraphicFilterSepia(
maMtrSepia.SetValue( nSepiaPercent );
maMtrSepia.SetModifyHdl( GetModifyHdl() );
-
- // maMtrSepia.GrabFocus();
}
// -----------------------------------------------------------------------------
@@ -646,8 +642,6 @@ GraphicFilterPoster::GraphicFilterPoster
maNumPoster.SetLast( rGraphic.GetBitmapEx().GetBitCount() );
maNumPoster.SetValue( nPosterCount );
maNumPoster.SetModifyHdl( GetModifyHdl() );
-
- // maNumPoster.GrabFocus();
}
// -----------------------------------------------------------------------------
Modified: openoffice/trunk/main/editeng/inc/editeng/unofored.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/editeng/inc/editeng/unofored.hxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/editeng/inc/editeng/unofored.hxx (original)
+++ openoffice/trunk/main/editeng/inc/editeng/unofored.hxx Fri Nov 29 12:52:23 2013
@@ -72,7 +72,6 @@ public:
virtual OutputDevice* GetRefDevice() const;
virtual sal_Bool GetIndexAtPoint( const Point&, sal_uInt16& nPara, sal_uInt16& nIndex ) const;
virtual sal_Bool GetWordIndices( sal_uInt16 nPara, sal_uInt16 nIndex, sal_uInt16& nStart, sal_uInt16& nEnd ) const;
-// virtual sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_uInt16 nPara, sal_uInt16 nIndex ) const;
virtual sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_uInt16 nPara, sal_uInt16 nIndex, sal_Bool bInCell = sal_False ) const;
virtual sal_uInt16 GetLineCount( sal_uInt16 nPara ) const;
virtual sal_uInt16 GetLineLen( sal_uInt16 nPara, sal_uInt16 nLine ) const;
Modified: openoffice/trunk/main/editeng/inc/editeng/unoforou.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/editeng/inc/editeng/unoforou.hxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/editeng/inc/editeng/unoforou.hxx (original)
+++ openoffice/trunk/main/editeng/inc/editeng/unoforou.hxx Fri Nov 29 12:52:23 2013
@@ -93,7 +93,6 @@ public:
virtual OutputDevice* GetRefDevice() const;
virtual sal_Bool GetIndexAtPoint( const Point&, sal_uInt16& nPara, sal_uInt16& nIndex ) const;
virtual sal_Bool GetWordIndices( sal_uInt16 nPara, sal_uInt16 nIndex, sal_uInt16& nStart, sal_uInt16& nEnd ) const;
-// virtual sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_uInt16 nPara, sal_uInt16 nIndex ) const;
virtual sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_uInt16 nPara, sal_uInt16 nIndex, sal_Bool bInCell = sal_False ) const;
virtual sal_uInt16 GetLineCount( sal_uInt16 nPara ) const;
virtual sal_uInt16 GetLineLen( sal_uInt16 nPara, sal_uInt16 nLine ) const;
Modified: openoffice/trunk/main/editeng/inc/editeng/unotext.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/editeng/inc/editeng/unotext.hxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/editeng/inc/editeng/unotext.hxx (original)
+++ openoffice/trunk/main/editeng/inc/editeng/unotext.hxx Fri Nov 29 12:52:23 2013
@@ -218,7 +218,6 @@ public:
virtual OutputDevice* GetRefDevice() const;
virtual sal_Bool GetIndexAtPoint( const Point&, sal_uInt16& nPara, sal_uInt16& nIndex ) const;
virtual sal_Bool GetWordIndices( sal_uInt16 nPara, sal_uInt16 nIndex, sal_uInt16& nStart, sal_uInt16& nEnd ) const;
-// virtual sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_uInt16 nPara, sal_uInt16 nIndex ) const;
virtual sal_Bool GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_uInt16 nPara, sal_uInt16 nIndex, sal_Bool bInCell = sal_False ) const;
virtual sal_uInt16 GetLineCount( sal_uInt16 nPara ) const;
virtual sal_uInt16 GetLineLen( sal_uInt16 nPara, sal_uInt16 nLine ) const;
Modified: openoffice/trunk/main/editeng/source/accessibility/AccessibleEditableTextPara.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/editeng/source/accessibility/AccessibleEditableTextPara.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/editeng/source/accessibility/AccessibleEditableTextPara.cxx (original)
+++ openoffice/trunk/main/editeng/source/accessibility/AccessibleEditableTextPara.cxx Fri Nov 29 12:52:23 2013
@@ -815,7 +815,6 @@ namespace accessibility
// must provide XAccesibleText by hand, since it comes publicly inherited by XAccessibleEditableText
if ( rType == ::getCppuType((uno::Reference< XAccessibleText > *)0) )
{
- // uno::Reference< XAccessibleText > aAccText = this;
uno::Reference< XAccessibleText > aAccText = static_cast< XAccessibleEditableText * >(this);
aRet <<= aAccText;
}
@@ -2509,7 +2508,6 @@ namespace accessibility
if( aBulletInfo.nParagraph != EE_PARA_NOT_FOUND && aBulletInfo.bVisible )
nBulletLen = aBulletInfo.aText.Len();
ESelection aSelection = MakeSelection (nStartIndex + nBulletLen, nEndIndex + nBulletLen);
- //if( !rCacheTF.IsEditable( MakeSelection(nStartIndex, nEndIndex) ) )
if( !rCacheTF.IsEditable( aSelection ) )
return sal_False; // non-editable area selected
Modified: openoffice/trunk/main/editeng/source/accessibility/AccessibleStaticTextBase.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/editeng/source/accessibility/AccessibleStaticTextBase.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/editeng/source/accessibility/AccessibleStaticTextBase.cxx (original)
+++ openoffice/trunk/main/editeng/source/accessibility/AccessibleStaticTextBase.cxx Fri Nov 29 12:52:23 2013
@@ -892,7 +892,6 @@ sal_Unicode cNewLine(0x0a);
{
//we don't return the string directly now for that we have to do some further process for "\n"
aRes = mpImpl->GetParagraph( aStartIndex.nPara ).getTextRange( aStartIndex.nIndex, aEndIndex.nIndex );
- //return mpImpl->GetParagraph( aStartIndex.nPara ).getTextRange( aStartIndex.nIndex, aEndIndex.nIndex );
}
else
{
Modified: openoffice/trunk/main/editeng/source/editeng/impedit.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/editeng/source/editeng/impedit.hxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/editeng/source/editeng/impedit.hxx (original)
+++ openoffice/trunk/main/editeng/source/editeng/impedit.hxx Fri Nov 29 12:52:23 2013
@@ -480,7 +480,6 @@ private:
sal_Bool bInSelection;
sal_Bool bIsInUndo;
sal_Bool bUpdate;
- // IAccessible2 migration fix
sal_Bool bUpdateForAcc;
sal_Bool bUndoEnabled;
sal_Bool bOwnerOfRefDev;
@@ -715,7 +714,6 @@ public:
void SetUpdateMode( sal_Bool bUp, EditView* pCurView = 0, sal_Bool bForceUpdate = sal_False );
sal_Bool GetUpdateMode() const { return bUpdate; }
- // IAccessible2 migration fix
void SetUpdateModeForAcc( sal_Bool bUp);
sal_Bool GetUpdateModeForAcc();
Modified: openoffice/trunk/main/editeng/source/editeng/impedit3.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/editeng/source/editeng/impedit3.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/editeng/source/editeng/impedit3.cxx (original)
+++ openoffice/trunk/main/editeng/source/editeng/impedit3.cxx Fri Nov 29 12:52:23 2013
@@ -368,8 +368,6 @@ void ImpEditEngine::FormatFullDoc()
void ImpEditEngine::FormatDoc()
{
- // IAccessible2 migration fix
- //if ( !GetUpdateMode() || IsFormatting() )
if ( !GetUpdateMode() || IsFormatting() || !GetUpdateModeForAcc())
return;
@@ -3862,16 +3860,16 @@ EditPaM ImpEditEngine::ConnectContents(
DBG_ASSERT( IsInUndo(), "ConnectContent nur fuer Undo()!" );
return ImpConnectParagraphs( pLeftNode, pRightNode, bBackward );
}
-//IAccessible2 migration fix
+
void ImpEditEngine::SetUpdateModeForAcc( sal_Bool bUp)
{
bUpdateForAcc = bUp;
}
+
sal_Bool ImpEditEngine::GetUpdateModeForAcc()
{
return bUpdateForAcc;
}
-//End
void ImpEditEngine::SetUpdateMode( sal_Bool bUp, EditView* pCurView, sal_Bool bForceUpdate )
{
Modified: openoffice/trunk/main/editeng/source/uno/unoedprx.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/editeng/source/uno/unoedprx.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/editeng/source/uno/unoedprx.cxx (original)
+++ openoffice/trunk/main/editeng/source/uno/unoedprx.cxx Fri Nov 29 12:52:23 2013
@@ -508,22 +508,6 @@ String SvxAccessibleTextAdapter::GetText
EBulletInfo aBulletInfo1 = GetBulletInfo( static_cast< sal_uInt16 >(aStartIndex.GetParagraph()) );
EBulletInfo aBulletInfo2 = GetBulletInfo( static_cast< sal_uInt16 >(aEndIndex.GetParagraph()) );
- // MT: This was done in OOo, commented out in IA2 CWS...
- /*
- if( aStartIndex.InBullet() )
- {
- // prepend leading bullet
- String sBullet = aBulletInfo1.aText;
-
- DBG_ASSERT(aStartIndex.GetBulletOffset() >= 0 &&
- aStartIndex.GetBulletOffset() <= USHRT_MAX,
- "SvxAccessibleTextIndex::GetText: index value overflow");
-
- sBullet.Erase(0, static_cast< sal_uInt16 > (aStartIndex.GetBulletOffset()) );
-
- sBullet += sStr;
- sStr = sBullet;
- }*/
if( aEndIndex.InBullet() )
{
// append trailing bullet
Modified: openoffice/trunk/main/formula/source/ui/dlg/formdlgs.src
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/formula/source/ui/dlg/formdlgs.src?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/formula/source/ui/dlg/formdlgs.src (original)
+++ openoffice/trunk/main/formula/source/ui/dlg/formdlgs.src Fri Nov 29 12:52:23 2013
@@ -225,7 +225,6 @@ ModalDialog RID_FORMULADLG_FORMULA_MODAL
Right = TRUE ;
Text [ en-US ] = "Function result" ;
};
- //Window WND_RESULT
FixedText WND_RESULT
{
Border = TRUE ;
Modified: openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleCellBase.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleCellBase.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleCellBase.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleCellBase.cxx Fri Nov 29 12:52:23 2013
@@ -230,7 +230,6 @@ sal_Int32
ScAccessibleCellBase::createAccessibleName(void)
throw (uno::RuntimeException)
{
- //String sName( ScResId(STR_ACC_CELL_NAME) );
String sAddress;
// Document not needed, because only the cell address, but not the tablename is needed
// always us OOO notation
@@ -239,8 +238,6 @@ sal_Int32
/* #i65103# ZoomText merges cell address and contents, e.g. if value 2 is
contained in cell A1, ZT reads "cell A twelve" instead of "cell A1 - 2".
Simple solution: Append a space character to the cell address. */
- //sName.Append( ' ' );
- //return rtl::OUString(sName);
return rtl::OUString(sAddress);
}
@@ -254,7 +251,6 @@ uno::Any SAL_CALL
IsObjectValid();
uno::Any aAny;
if (mpDoc)
- //aAny <<= mpDoc->GetValue(maCellAddress);
{
String valStr;
mpDoc->GetString(maCellAddress.Col(),maCellAddress.Row(),maCellAddress.Tab(), valStr);
Modified: openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleDataPilotControl.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleDataPilotControl.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleDataPilotControl.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleDataPilotControl.cxx Fri Nov 29 12:52:23 2013
@@ -543,7 +543,6 @@ ScAccessibleDataPilotButton::ScAccessibl
ScPivotFieldWindow* pFieldWindow,
sal_Int32 nIndex)
//change role frome PUSH_BUTTON to BUTTON_MENU
- //: ScAccessibleContextBase(rxParent, AccessibleRole::PUSH_BUTTON),
: ScAccessibleContextBase(rxParent, AccessibleRole::BUTTON_MENU),
mpFieldWindow(pFieldWindow),
mnIndex(nIndex)
Modified: openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleDocument.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleDocument.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleDocument.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleDocument.cxx Fri Nov 29 12:52:23 2013
@@ -1625,10 +1625,8 @@ void ScAccessibleDocument::Notify( SfxBr
mpTempAccEdit = NULL;
RemoveChild(mxTempAcc, sal_True);
- //if (mpAccessibleSpreadsheet)
if (mpAccessibleSpreadsheet && mpViewShell->IsActive())
mpAccessibleSpreadsheet->GotFocus();
- //else
else if( mpViewShell->IsActive())
CommitFocusGained();
}
Modified: openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleSpreadsheet.cxx Fri Nov 29 12:52:23 2013
@@ -283,8 +283,6 @@ ScAccessibleSpreadsheet::~ScAccessibleSp
{
if (mpMarkedRanges)
delete mpMarkedRanges;
- //if (mpSortedMarkedCells)
- // delete mpSortedMarkedCells;
if (mpViewShell)
mpViewShell->RemoveAccessibilityObject(*this);
}
@@ -351,8 +349,6 @@ void ScAccessibleSpreadsheet::CompleteSe
}
if (mpMarkedRanges)
DELETEZ(mpMarkedRanges);
- //if (mpSortedMarkedCells)
- // DELETEZ(mpSortedMarkedCells);
mbHasSelection = bNewState;
AccessibleEventObject aEvent;
@@ -381,11 +377,9 @@ void ScAccessibleSpreadsheet::LostFocus(
void ScAccessibleSpreadsheet::GotFocus()
{
- //CommitFocusGained();
AccessibleEventObject aEvent;
aEvent.EventId = AccessibleEventId::ACTIVE_DESCENDANT_CHANGED;
aEvent.Source = uno::Reference< XAccessibleContext >(this);
- //uno::Reference< XAccessible > xNew = mpAccCell;
uno::Reference< XAccessible > xNew;
if (IsFormulaMode())
{
@@ -447,68 +441,6 @@ void ScAccessibleSpreadsheet::Notify( Sf
if (rHint.ISA( SfxSimpleHint ) )
{
const SfxSimpleHint& rRef = (const SfxSimpleHint&)rHint;
- // only notify if child exist, otherwise it is not necessary
- //if ((rRef.GetId() == SC_HINT_ACC_CURSORCHANGED))
- //{
- // if (mpViewShell)
- // {
- // ScAddress aNewCell = mpViewShell->GetViewData()->GetCurPos();
- // sal_Bool bNewMarked(mpViewShell->GetViewData()->GetMarkData().GetTableSelect(aNewCell.Tab()) &&
- // (mpViewShell->GetViewData()->GetMarkData().IsMarked() ||
- // mpViewShell->GetViewData()->GetMarkData().IsMultiMarked()));
- // sal_Bool bNewCellSelected(isAccessibleSelected(aNewCell.Row(), aNewCell.Col()));
- // if ((bNewMarked != mbHasSelection) ||
- // (!bNewCellSelected && bNewMarked) ||
- // (bNewCellSelected && mbHasSelection))
- // {
- // if (mpMarkedRanges)
- // DELETEZ(mpMarkedRanges);
- // if (mpSortedMarkedCells)
- // DELETEZ(mpSortedMarkedCells);
- // AccessibleEventObject aEvent;
- // aEvent.EventId = AccessibleEventId::SELECTION_CHANGED;
- // aEvent.Source = uno::Reference< XAccessibleContext >(this);
-
- // mbHasSelection = bNewMarked;
-
- // CommitChange(aEvent);
- // }
-
- // // active descendant changed event (new cell selected)
- // bool bFireActiveDescChanged = (aNewCell != maActiveCell) &&
- // (aNewCell.Tab() == maActiveCell.Tab()) && IsFocused();
-
- // /* Remember old active cell and set new active cell.
- // #i82409# always update the class members mpAccCell and
- // maActiveCell, even if the sheet is not focused, e.g. when
- // using the name box in the toolbar. */
- // uno::Reference< XAccessible > xOld = mpAccCell;
- // mpAccCell->release();
- // mpAccCell = GetAccessibleCellAt(aNewCell.Row(), aNewCell.Col());
- // mpAccCell->acquire();
- // mpAccCell->Init();
- // uno::Reference< XAccessible > xNew = mpAccCell;
- // maActiveCell = aNewCell;
-
- // // #i14108# fire event only if sheet is focused
- // if( bFireActiveDescChanged )
- // {
- // AccessibleEventObject aEvent;
- // aEvent.EventId = AccessibleEventId::ACTIVE_DESCENDANT_CHANGED;
- // aEvent.Source = uno::Reference< XAccessibleContext >(this);
- // aEvent.OldValue <<= xOld;
- // aEvent.NewValue <<= xNew;
- // CommitChange(aEvent);
- // }
- // }
- //}
- //else if ((rRef.GetId() == SC_HINT_DATACHANGED))
- //{
- // if (!mbDelIns)
- // CommitTableModelChange(maRange.aStart.Row(), maRange.aStart.Col(), maRange.aEnd.Row(), maRange.aEnd.Col(), AccessibleTableModelChangeType::UPDATE);
- // else
- // mbDelIns = sal_False;
- //}
if ((rRef.GetId() == SC_HINT_ACC_CURSORCHANGED))
{
if (mpViewShell)
@@ -1391,50 +1323,6 @@ void ScAccessibleSpreadsheet::SelectCell
mpViewShell->SelectionChanged();
}
-//void ScAccessibleSpreadsheet::CreateSortedMarkedCells()
-//{
-// mpSortedMarkedCells = new std::vector<ScMyAddress>();
-// mpSortedMarkedCells->reserve(mpMarkedRanges->GetCellCount());
-// ScRange* pRange = mpMarkedRanges->First();
-// while (pRange)
-// {
-// if (pRange->aStart.Tab() != pRange->aEnd.Tab())
-// {
-// if ((maActiveCell.Tab() >= pRange->aStart.Tab()) ||
-// maActiveCell.Tab() <= pRange->aEnd.Tab())
-// {
-// ScRange aRange(*pRange);
-// aRange.aStart.SetTab(maActiveCell.Tab());
-// aRange.aEnd.SetTab(maActiveCell.Tab());
-// AddMarkedRange(aRange);
-// }
-// else
-// {
-// DBG_ERROR("Range of wrong table");
-// }
-// }
-// else if(pRange->aStart.Tab() == maActiveCell.Tab())
-// AddMarkedRange(*pRange);
-// else
-// {
-// DBG_ERROR("Range of wrong table");
-// }
-// pRange = mpMarkedRanges->Next();
-// }
-// std::sort(mpSortedMarkedCells->begin(), mpSortedMarkedCells->end());
-//}
-
-/*void ScAccessibleSpreadsheet::AddMarkedRange(const ScRange& rRange)
-{
- for (SCROW nRow = rRange.aStart.Row(); nRow <= rRange.aEnd.Row(); ++nRow)
- {
- for (SCCOL nCol = rRange.aStart.Col(); nCol <= rRange.aEnd.Col(); ++nCol)
- {
- ScMyAddress aCell(nCol, nRow, maActiveCell.Tab());
- mpSortedMarkedCells->push_back(aCell);
- }
- }
-}*/
//===== XServiceInfo ====================================================
@@ -1483,20 +1371,6 @@ void SAL_CALL ScAccessibleSpreadsheet::a
ScUnoGuard aGuard;
IsObjectValid();
ScAccessibleTableBase::addEventListener(xListener);
-
-/* if (!mbIsFocusSend)
- {
- mbIsFocusSend = sal_True;
- CommitFocusGained();
-
- AccessibleEventObject aEvent;
- aEvent.EventId = AccessibleEventId::ACTIVE_DESCENDANT_CHANGED;
- aEvent.Source = uno::Reference< XAccessibleContext >(this);
- aEvent.NewValue <<= getAccessibleCellAt(maActiveCell.Row(), maActiveCell.Col());
-
- CommitChange(aEvent);
- }
-*/
}
//==== internal =========================================================
Modified: openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleTableBase.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleTableBase.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleTableBase.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleTableBase.cxx Fri Nov 29 12:52:23 2013
@@ -170,12 +170,6 @@ sal_Int32 SAL_CALL ScAccessibleTableBase
ExtendMerge( static_cast<SCCOL>(nColumn), static_cast<SCROW>(nRow), nRow, nEndCol, nEndRow, sal_False, sal_False );
if (nEndRow > nRow)
nCount = nEndRow - nRow + 1;
- // if (mpDoc->ExtendMerge(static_cast<SCCOL>(nColumn), static_cast<SCROW>(nRow),
- // nEndCol, nEndRow, maRange.aStart.Tab()))
- //{
- // if (nEndRow > nRow)
- // nCount = nEndRow - nRow + 1;
- //}
}
return nCount;
@@ -203,12 +197,6 @@ sal_Int32 SAL_CALL ScAccessibleTableBase
ExtendMerge( static_cast<SCCOL>(nColumn), static_cast<SCROW>(nRow), nRow, nEndCol, nEndRow, sal_False, sal_False );
if (nEndCol > nColumn)
nCount = nEndCol - nColumn + 1;
- // if (mpDoc->ExtendMerge(static_cast<SCCOL>(nColumn), static_cast<SCROW>(nRow),
- // nEndCol, nEndRow, maRange.aStart.Tab()))
- //{
- // if (nEndCol > nColumn)
- // nCount = nEndCol - nColumn + 1;
- //}
}
return nCount;
Modified: openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleText.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleText.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleText.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/Accessibility/AccessibleText.cxx Fri Nov 29 12:52:23 2013
@@ -1058,7 +1058,6 @@ ScDocShell* ScAccessibleCellTextData::Ge
// ============================================================================
-//ScAccessibleEditObjectTextData::ScAccessibleEditObjectTextData(EditView* pEditView, Window* pWin)
ScAccessibleEditObjectTextData::ScAccessibleEditObjectTextData(EditView* pEditView, Window* pWin, sal_Bool isClone)
:
mpViewForwarder(NULL),
@@ -1070,7 +1069,6 @@ ScAccessibleEditObjectTextData::ScAccess
{
// Solution: If the object is cloned, do NOT add notify hdl.
mbIsCloned = isClone;
- //if (mpEditEngine)
if (mpEditEngine && !mbIsCloned)
mpEditEngine->SetNotifyHdl( LINK(this, ScAccessibleEditObjectTextData, NotifyHdl) );
}
@@ -1078,7 +1076,6 @@ ScAccessibleEditObjectTextData::ScAccess
ScAccessibleEditObjectTextData::~ScAccessibleEditObjectTextData()
{
// Solution: If the object is cloned, do NOT set notify hdl.
- //if (mpEditEngine)
if (mpEditEngine && !mbIsCloned)
mpEditEngine->SetNotifyHdl(Link());
if (mpViewForwarder)
@@ -1123,7 +1120,6 @@ SvxTextForwarder* ScAccessibleEditObject
if (!mpEditEngine)
mpEditEngine = mpEditView->GetEditEngine();
// Solution: If the object is cloned, do NOT add notify hdl.
- //if (mpEditEngine && !mpEditEngine->GetNotifyHdl().IsSet())
if (mpEditEngine && !mpEditEngine->GetNotifyHdl().IsSet()&&!mbIsCloned)
mpEditEngine->SetNotifyHdl( LINK(this, ScAccessibleEditObjectTextData, NotifyHdl) );
if(!mpForwarder)
Modified: openoffice/trunk/main/sc/source/ui/inc/AccessibleDocument.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/inc/AccessibleDocument.hxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/inc/AccessibleDocument.hxx (original)
+++ openoffice/trunk/main/sc/source/ui/inc/AccessibleDocument.hxx Fri Nov 29 12:52:23 2013
@@ -29,7 +29,6 @@
#include "viewdata.hxx"
#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
#include <com/sun/star/view/XSelectionChangeListener.hpp>
-//#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase3.hxx>
#include <com/sun/star/accessibility/XAccessibleExtendedAttributes.hpp>
#include <com/sun/star/accessibility/XAccessibleGetAccFlowTo.hpp>
Modified: openoffice/trunk/main/sc/source/ui/navipi/content.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/navipi/content.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/navipi/content.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/navipi/content.cxx Fri Nov 29 12:52:23 2013
@@ -988,7 +988,6 @@ void ScContentTree::GetDrawNames( sal_uI
String aName = ScDrawLayer::GetVisibleName( pObject );
if (aName.Len())
{
- //InsertContent( nType, aName );
if( bisInNavigatoeDlg )
{
if (nType >= SC_CONTENT_COUNT)
Modified: openoffice/trunk/main/sc/source/ui/view/gridwin.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/view/gridwin.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/view/gridwin.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/view/gridwin.cxx Fri Nov 29 12:52:23 2013
@@ -3106,7 +3106,6 @@ void __EXPORT ScGridWindow::KeyInput(con
if( !rKeyCode.GetModifier() && (rKeyCode.GetCode() == KEY_F2) )
{
SC_MOD()->EndReference();
- //return;
}
else if( pViewData->GetViewShell()->MoveCursorKeyInput( rKEvt ) )
{
@@ -3114,7 +3113,6 @@ void __EXPORT ScGridWindow::KeyInput(con
pViewData->GetRefStartX(), pViewData->GetRefStartY(), pViewData->GetRefStartZ(),
pViewData->GetRefEndX(), pViewData->GetRefEndY(), pViewData->GetRefEndZ() );
SC_MOD()->SetReference( aRef, pViewData->GetDocument() );
- //return;
}
pViewData->GetViewShell()->SelectionChanged();
return ;
Modified: openoffice/trunk/main/sc/source/ui/view/gridwin5.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/view/gridwin5.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/view/gridwin5.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/view/gridwin5.cxx Fri Nov 29 12:52:23 2013
@@ -432,12 +432,10 @@ com::sun::star::uno::Reference< ::com::s
ScAccessibleDocument* pAccessibleDocument =
new ScAccessibleDocument(GetAccessibleParentWindow()->GetAccessible(),
pViewData->GetViewShell(), eWhich);
- //com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessible > xAccessible = pAccessibleDocument;
xAcc = pAccessibleDocument;
SetAccessible(xAcc);
pAccessibleDocument->Init();
- //return xAccessible;
return xAcc;
}
// MT: Removed Windows::SwitchView() introduced with IA2 CWS.
Modified: openoffice/trunk/main/sc/source/ui/view/output.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/view/output.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/view/output.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/view/output.cxx Fri Nov 29 12:52:23 2013
@@ -77,29 +77,6 @@ static ColorData nAuthorColor[ SC_AUTHOR
COL_GREEN, COL_RED, COL_BLUE,
COL_BROWN, COL_MAGENTA, COL_CYAN };
-// Hilfsklasse, fuer die Farbzuordnung,
-// um nicht mehrfach hintereinander denselben User aus der Liste zu suchen
-
-//Move this class declare to Chgtrack.hxx
-/*
-class ScActionColorChanger
-{
-private:
- const ScAppOptions& rOpt;
- const ScStrCollection& rUsers;
- String aLastUserName;
- sal_uInt16 nLastUserIndex;
- ColorData nColor;
-
-public:
- ScActionColorChanger( const ScChangeTrack& rTrack );
- ~ScActionColorChanger() {}
-
- void Update( const ScChangeAction& rAction );
- ColorData GetColor() const { return nColor; }
-};
-*/
-
//------------------------------------------------------------------
ScActionColorChanger::ScActionColorChanger( const ScChangeTrack& rTrack ) :
Modified: openoffice/trunk/main/sc/source/ui/view/preview.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/view/preview.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/view/preview.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/view/preview.cxx Fri Nov 29 12:52:23 2013
@@ -1481,11 +1481,9 @@ com::sun::star::uno::Reference<com::sun:
}
ScAccessibleDocumentPagePreview* pAccessible =
new ScAccessibleDocumentPagePreview( GetAccessibleParentWindow()->GetAccessible(), pViewShell );
- //com::sun::star::uno::Reference < com::sun::star::accessibility::XAccessible > xAccessible = pAccessible;
xAcc = pAccessible;
SetAccessible(xAcc);
pAccessible->Init();
- //return xAccessible;
return xAcc;
}
// MT: Removed Windows::SwitchView() introduced with IA2 CWS.
Modified: openoffice/trunk/main/sc/source/ui/view/viewfun2.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/ui/view/viewfun2.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/ui/view/viewfun2.cxx (original)
+++ openoffice/trunk/main/sc/source/ui/view/viewfun2.cxx Fri Nov 29 12:52:23 2013
@@ -1616,7 +1616,6 @@ void ScViewFunc::AutoFormat( sal_uInt16
//----------------------------------------------------------------------------
// Suchen & Ersetzen
-//void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
sal_Bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
sal_Bool bAddUndo, sal_Bool bIsApi )
{
@@ -1670,7 +1669,6 @@ sal_Bool ScViewFunc::SearchAndReplace( c
if ( pOldSelectedTables )
delete [] pOldSelectedTables;
ErrorMessage(STR_PROTECTIONERR);
- //return;
return sal_False;
}
}
Modified: openoffice/trunk/main/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx (original)
+++ openoffice/trunk/main/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx Fri Nov 29 12:52:23 2013
@@ -871,7 +871,6 @@ void AccessibleDrawDocumentView::Activat
{
if (mpChildrenManager != NULL)
{
- //mpChildrenManager->UpdateSelection();
sal_Bool bChange = sal_False;
// When none of the children has the focus then claim it for the
// view.
Modified: openoffice/trunk/main/sd/source/ui/accessibility/AccessibleOutlineEditSource.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sd/source/ui/accessibility/AccessibleOutlineEditSource.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sd/source/ui/accessibility/AccessibleOutlineEditSource.cxx (original)
+++ openoffice/trunk/main/sd/source/ui/accessibility/AccessibleOutlineEditSource.cxx Fri Nov 29 12:52:23 2013
@@ -48,8 +48,6 @@ namespace accessibility
mViewForwarder( rOutlView )
{
// register as listener - need to broadcast state change messages
- // Moved to ::GetTextForwarder()
- //rOutliner.SetNotifyHdl( LINK(this, AccessibleOutlineEditSource, NotifyHdl) );
StartListening(rOutliner);
}
@@ -62,7 +60,6 @@ namespace accessibility
SvxEditSource* AccessibleOutlineEditSource::Clone() const
{
- /*return NULL;*/
return new AccessibleOutlineEditSource(*mpOutliner, mrView, *mpOutlinerView, mrWindow);
}
Modified: openoffice/trunk/main/sd/source/ui/accessibility/AccessiblePresentationShape.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sd/source/ui/accessibility/AccessiblePresentationShape.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sd/source/ui/accessibility/AccessiblePresentationShape.cxx (original)
+++ openoffice/trunk/main/sd/source/ui/accessibility/AccessiblePresentationShape.cxx Fri Nov 29 12:52:23 2013
@@ -81,47 +81,36 @@ AccessiblePresentationShape::~Accessible
switch (nShapeType)
{
case PRESENTATION_TITLE:
- //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressTitle"));
sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_TITLE_N)));
break;
case PRESENTATION_OUTLINER:
- //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressOutliner"));
sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_OUTLINER_N)));
break;
case PRESENTATION_SUBTITLE:
- //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressSubtitle"));
sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_SUBTITLE_N)));
break;
case PRESENTATION_PAGE:
- //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressPage"));
sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_PAGE_N)));
break;
case PRESENTATION_NOTES:
- //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressNotes"));
sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_NOTES_N)));
break;
case PRESENTATION_HANDOUT:
- //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressHandout"));
sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_HANDOUT_N)));
break;
case PRESENTATION_HEADER:
- //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressHeader"));
sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_HEADER_N)) );
break;
case PRESENTATION_FOOTER:
- //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressFooter"));
sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_FOOTER_N)) );
break;
case PRESENTATION_DATETIME:
- //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressDateAndTime"));
sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_DATE_N)) );
break;
case PRESENTATION_PAGENUMBER:
- //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("ImpressPageNumber"));
sName = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_NUMBER_N)) );
break;
default:
- //sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("UnknownAccessibleImpressShape"));
sName = ::rtl::OUString (String(SdResId(SID_SD_A11Y_P_UNKNOWN_N)));
uno::Reference<drawing::XShapeDescriptor> xDescriptor (mxShape, uno::UNO_QUERY);
if (xDescriptor.is())
@@ -146,12 +135,10 @@ AccessiblePresentationShape::~Accessible
switch (nShapeType)
{
case PRESENTATION_TITLE:
- //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationTitleShape"));
sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_TITLE_D)) );
aDG.Initialize (sDescription);
break;
case PRESENTATION_OUTLINER:
- //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationOutlinerShape"));
sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_OUTLINER_D)) );
aDG.Initialize (sDescription); //PresentationOutlinerShape
break;
@@ -176,27 +163,22 @@ AccessiblePresentationShape::~Accessible
aDG.Initialize (sDescription); //PresentationHandoutShape
break;
case PRESENTATION_HEADER:
- //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationHeaderShape"));
sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_HEADER_D)) );
aDG.Initialize (sDescription); //PresentationHeaderShape
break;
case PRESENTATION_FOOTER:
- //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationFooterShape"));
sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_FOOTER_D)) );
aDG.Initialize (sDescription); //PresentationFooterShape
break;
case PRESENTATION_DATETIME:
- //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationDateAndTimeShape"));
sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_DATE_D)) );
aDG.Initialize (sDescription); //PresentationDateShape
break;
case PRESENTATION_PAGENUMBER:
- //aDG.Initialize (::rtl::OUString::createFromAscii ("PresentationPageNumberShape"));
sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_NUMBER_D)) );
aDG.Initialize (sDescription); //PresentationNumberShape
break;
default:
- //aDG.Initialize (::rtl::OUString::createFromAscii ("Unknown accessible presentation shape"));
sDescription = ::rtl::OUString ( String(SdResId(SID_SD_A11Y_P_UNKNOWN_D)) );
aDG.Initialize (sDescription); //Unknown accessible presentation shape
uno::Reference<drawing::XShapeDescriptor> xDescriptor (mxShape, uno::UNO_QUERY);
Modified: openoffice/trunk/main/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx (original)
+++ openoffice/trunk/main/sd/source/ui/accessibility/AccessibleSlideSorterObject.cxx Fri Nov 29 12:52:23 2013
@@ -200,7 +200,6 @@ sal_Int16 SAL_CALL AccessibleSlideSorter
{
ThrowIfDisposed();
//set Role = Shape
- //static sal_Int16 nRole = AccessibleRole::LIST_ITEM;
static sal_Int16 nRole = AccessibleRole::SHAPE;
return nRole;
}
Modified: openoffice/trunk/main/sd/source/ui/func/fuediglu.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sd/source/ui/func/fuediglu.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sd/source/ui/func/fuediglu.cxx (original)
+++ openoffice/trunk/main/sd/source/ui/func/fuediglu.cxx Fri Nov 29 12:52:23 2013
@@ -327,7 +327,6 @@ sal_Bool FuEditGluePoints::KeyInput(cons
//Solution: Add Shift+UP/DOWN/LEFT/RIGHT key to move the position of insert point,
//and SHIFT+ENTER key to decide the postion and draw the new insert point
- //sal_Bool bReturn = FuDraw::KeyInput(rKEvt);
sal_Bool bReturn = sal_False;
Modified: openoffice/trunk/main/sd/source/ui/view/sdwindow.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sd/source/ui/view/sdwindow.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sd/source/ui/view/sdwindow.cxx (original)
+++ openoffice/trunk/main/sd/source/ui/view/sdwindow.cxx Fri Nov 29 12:52:23 2013
@@ -1173,7 +1173,6 @@ void Window::DropScroll(const Point& rMo
return xAcc;
}
if (mpViewShell != NULL)
- //return mpViewShell->CreateAccessibleDocumentView (this);
{
xAcc = mpViewShell->CreateAccessibleDocumentView (this);
SetAccessible(xAcc);
Modified: openoffice/trunk/main/sfx2/source/view/viewfrm.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sfx2/source/view/viewfrm.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/sfx2/source/view/viewfrm.cxx (original)
+++ openoffice/trunk/main/sfx2/source/view/viewfrm.cxx Fri Nov 29 12:52:23 2013
@@ -3390,8 +3390,6 @@ void SfxViewFrame::ChildWindowExecute( S
ToggleChildWindow( nSID );
GetBindings().Invalidate( nSID );
- // Move to the before show()
- //GetDispatcher()->Update_Impl( sal_True );
// ggf. recorden
if ( nSID == SID_HYPERLINK_DIALOG || nSID == SID_SEARCH_DLG )
Modified: openoffice/trunk/main/svtools/source/brwbox/brwbox3.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svtools/source/brwbox/brwbox3.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/svtools/source/brwbox/brwbox3.cxx (original)
+++ openoffice/trunk/main/svtools/source/brwbox/brwbox3.cxx Fri Nov 29 12:52:23 2013
@@ -256,7 +256,6 @@ OUString BrowseBox::GetAccessibleObjectN
sal_Int32 rowId = _nPosition + 1;
aRetText = OUString::valueOf( rowId );
}
- //aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "RowHeaderCell" ) );
#if OSL_DEBUG_LEVEL > 1
aRetText += OUString( RTL_CONSTASCII_USTRINGPARAM( " [" ) );
aRetText += OUString::valueOf(sal_Int32(GetCurRow()));
@@ -266,7 +265,6 @@ OUString BrowseBox::GetAccessibleObjectN
#endif
break;
case ::svt::BBTYPE_COLUMNHEADERCELL:
- //aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "ColumnHeaderCell" ) );
aRetText = OUString( GetColumnDescription( sal_Int16( _nPosition ) ) );
#if OSL_DEBUG_LEVEL > 1
aRetText += OUString( RTL_CONSTASCII_USTRINGPARAM( " [" ) );
Modified: openoffice/trunk/main/svtools/source/brwbox/editbrowsebox.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svtools/source/brwbox/editbrowsebox.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/svtools/source/brwbox/editbrowsebox.cxx (original)
+++ openoffice/trunk/main/svtools/source/brwbox/editbrowsebox.cxx Fri Nov 29 12:52:23 2013
@@ -1072,7 +1072,6 @@ namespace svt
{
commitTableEvent(
ACTIVE_DESCENDANT_CHANGED,
- //makeAny( CreateAccessibleCell( nRow, GetColumnPos( nCol ) ) ),
makeAny( CreateAccessibleCell( nRow, GetColumnPos( nCol -1) ) ),
Any()
);
Modified: openoffice/trunk/main/svtools/source/contnr/svtreebx.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svtools/source/contnr/svtreebx.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/svtools/source/contnr/svtreebx.cxx (original)
+++ openoffice/trunk/main/svtools/source/contnr/svtreebx.cxx Fri Nov 29 12:52:23 2013
@@ -907,7 +907,6 @@ void SvTreeListBox::GetFocus()
pEntry = pImp->pCursor;
}
if ( pEntry )
- //pImp->CallEventListeners( VCLEVENT_LISTBOX_SELECT, pEntry );
pImp->CallEventListeners( VCLEVENT_LISTBOX_TREEFOCUS, pEntry );
}
@@ -2763,13 +2762,6 @@ void SvTreeListBox::FillAccessibleEntryS
rStateSet.AddState( AccessibleStateType::EXPANDABLE );
if ( IsExpanded( pEntry ) )
rStateSet.AddState( (sal_Int16)AccessibleStateType::EXPANDED );
- /*
- else
- {
- // MT: COLLAPSE == EXPANDABLE & !EXPANDED
- rStateSet.AddState( (sal_Int16)AccessibleStateType::COLLAPSE );
- }
- */
}
if ( GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED )
Modified: openoffice/trunk/main/svtools/source/control/valueacc.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svtools/source/control/valueacc.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/svtools/source/control/valueacc.cxx (original)
+++ openoffice/trunk/main/svtools/source/control/valueacc.cxx Fri Nov 29 12:52:23 2013
@@ -788,7 +788,6 @@ ValueSetItem* ValueSetAcc::getItem (sal_
nIndex -= 1;
}
if (pItem == NULL)
- //pItem = mpParent->ImplGetVisibleItem (static_cast<sal_uInt16>(nIndex));
pItem = mpParent->ImplGetItem (static_cast<sal_uInt16>(nIndex));
return pItem;
@@ -973,7 +972,6 @@ sal_Int32 SAL_CALL ValueItemAcc::getAcce
// just in case the number of children changes in the mean time.
try
{
- //pItem = mpParent->mrParent.ImplGetVisibleItem (i);
pItem = mpParent->mrParent.ImplGetItem(i);
}
catch (lang::IndexOutOfBoundsException aException)
Modified: openoffice/trunk/main/svtools/source/control/valueset.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svtools/source/control/valueset.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/svtools/source/control/valueset.cxx (original)
+++ openoffice/trunk/main/svtools/source/control/valueset.cxx Fri Nov 29 12:52:23 2013
@@ -1220,7 +1220,6 @@ sal_uInt16 ValueSet::ImplGetVisibleItemC
ValueSetItem* pItem = mpImpl->mpItemList->GetObject( n );
//IAccessible2 implementation - also count empty rectangles as visible...
- // if( pItem->meType != VALUESETITEM_SPACE && !pItem->maRect.IsEmpty() )
if( pItem->meType != VALUESETITEM_SPACE )
nRet++;
}
Modified: openoffice/trunk/main/svx/source/accessibility/AccessibleGraphicShape.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/accessibility/AccessibleGraphicShape.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/svx/source/accessibility/AccessibleGraphicShape.cxx (original)
+++ openoffice/trunk/main/svx/source/accessibility/AccessibleGraphicShape.cxx Fri Nov 29 12:52:23 2013
@@ -209,7 +209,6 @@ uno::Sequence<uno::Type> SAL_CALL
throw (::com::sun::star::uno::RuntimeException)
{
//Solution: Don't use the same information for accessible name and accessible description.
- //return CreateAccessibleName ();
::rtl::OUString sDesc;
if(m_pShape)
sDesc = m_pShape->GetTitle();
@@ -225,7 +224,6 @@ sal_Int16 SAL_CALL AccessibleGraphicShap
if( m_pShape->GetModel()->GetImageMapForObject(m_pShape) != NULL )
return AccessibleRole::IMAGE_MAP;
else
- //return AccessibleRole::SHAPE;
return AccessibleShape::getAccessibleRole();
return nAccessibleRole;
}
Modified: openoffice/trunk/main/svx/source/accessibility/AccessibleShape.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/accessibility/AccessibleShape.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/svx/source/accessibility/AccessibleShape.cxx (original)
+++ openoffice/trunk/main/svx/source/accessibility/AccessibleShape.cxx Fri Nov 29 12:52:23 2013
@@ -474,7 +474,6 @@ uno::Reference<XAccessibleStateSet> SAL_
if (rBHelper.bDisposed || mpText == NULL)
// Return a minimal state set that only contains the DEFUNC state.
- //xStateSet = AccessibleContextBase::getAccessibleStateSet ();
{
xStateSet = AccessibleContextBase::getAccessibleStateSet ();
::utl::AccessibleStateSetHelper* pStateSet =
Modified: openoffice/trunk/main/svx/source/accessibility/AccessibleTextHelper.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/accessibility/AccessibleTextHelper.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/svx/source/accessibility/AccessibleTextHelper.cxx (original)
+++ openoffice/trunk/main/svx/source/accessibility/AccessibleTextHelper.cxx Fri Nov 29 12:52:23 2013
@@ -917,10 +917,7 @@ namespace accessibility
// convert to screen coordinates
aParaBB = ::accessibility::AccessibleEditableTextPara::LogicToPixel( aTmpBB, rCacheTF.GetMapMode(), rCacheVF );
- /*
- if( aParaBB.IsOver( aViewArea ) )
- {
- */
+
// at least partially visible
if( bFirstChild )
{
@@ -941,21 +938,6 @@ namespace accessibility
mxFrontEnd, GetEditSource(), nCurrPara ).first ),
AccessibleEventId::CHILD );
}
- /*
- }
- else
- {
- // not or no longer visible
- if( maParaManager.IsReferencable( nCurrPara ) )
- {
- if( bBroadcastEvents )
- LostPropertyEvent( uno::makeAny( maParaManager.GetChild( nCurrPara ).first.get().getRef() ),
- AccessibleEventId::CHILD );
-
- // clear reference
- maParaManager.Release( nCurrPara );
- }
- }*/
}
}
catch( const uno::Exception& )
Modified: openoffice/trunk/main/svx/source/accessibility/ChildrenManagerImpl.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/accessibility/ChildrenManagerImpl.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/svx/source/accessibility/ChildrenManagerImpl.cxx (original)
+++ openoffice/trunk/main/svx/source/accessibility/ChildrenManagerImpl.cxx Fri Nov 29 12:52:23 2013
@@ -998,7 +998,6 @@ void ChildrenManagerImpl::UpdateSelectio
// Set or reset the SELECTED state.
if (bShapeIsSelected)
- //pAccessibleShape->SetState (AccessibleStateType::SELECTED);
{
if (pAccessibleShape->SetState (AccessibleStateType::SELECTED))
{
@@ -1014,7 +1013,6 @@ void ChildrenManagerImpl::UpdateSelectio
}
}
else
- //pAccessibleShape->ResetState (AccessibleStateType::SELECTED);
{
if(pAccessibleShape->ResetState (AccessibleStateType::SELECTED))
{
@@ -1054,7 +1052,6 @@ void ChildrenManagerImpl::UpdateSelectio
{
if (pCurrentlyFocusedShape != NULL)
pCurrentlyFocusedShape->ResetState (AccessibleStateType::FOCUSED);
- //if (pNewFocusedShape != NULL)
if (pNewFocusedShape != NULL && bShapeActive)
pNewFocusedShape->SetState (AccessibleStateType::FOCUSED);
}
Modified: openoffice/trunk/main/svx/source/accessibility/charmapacc.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/accessibility/charmapacc.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/svx/source/accessibility/charmapacc.cxx (original)
+++ openoffice/trunk/main/svx/source/accessibility/charmapacc.cxx Fri Nov 29 12:52:23 2013
@@ -166,24 +166,6 @@ Reference< XAccessible > SAL_CALL SvxSho
// -----------------------------------------------------------------------------
::com::sun::star::awt::Rectangle SAL_CALL SvxShowCharSetVirtualAcc::implGetBounds( ) throw (RuntimeException)
{
-/* const Point aOutPos( mpParent->GetPosPixel() );
- Size aOutSize( mpParent->GetOutputSizePixel() );
- if ( mpParent->getScrollBar()->IsVisible() )
- {
- const Size aScrollBar = mpParent->getScrollBar()->GetOutputSizePixel();
- aOutSize.Width() -= aScrollBar.Width();
- aOutSize.Height() -= aScrollBar.Height();
- }
-
- awt::Rectangle aRet;
-
- aRet.X = aOutPos.X();
- aRet.Y = aOutPos.Y();
- aRet.Width = aOutSize.Width();
- aRet.Height = aOutSize.Height();
-
- return aRet;
-*/
::com::sun::star::awt::Rectangle aBounds ( 0, 0, 0, 0 );
Window* pWindow = mpParent;
if ( pWindow )
@@ -711,7 +693,6 @@ uno::Reference< accessibility::XAccessib
sal_Int16 SAL_CALL SvxShowCharSetItemAcc::getAccessibleRole()
throw (uno::RuntimeException)
{
- //return accessibility::AccessibleRole::LABEL;
return accessibility::AccessibleRole::TABLE_CELL;
}
@@ -727,20 +708,11 @@ sal_Int16 SAL_CALL SvxShowCharSetItemAcc
sal_Unicode c = mpParent->maText.GetChar(0);
char buf[16] = "0x0000";
sal_Unicode c_Shifted = c;
-/*
- for( int i = 0; i < 4; ++i )
- {
- char h = (char)(c_Shifted & 0x0F);
- buf[5-i] = (h > 9) ? (h - 10 + 'A') : (h + '0');
- c_Shifted >>= 4;
- }
-*/
int tmp_len = 4;
if(c_Shifted>0xFFFF) tmp_len = 8;
for( int i = 0; i < tmp_len; ++i )
{
char h = c_Shifted & 0x0F;
- //buf[9-i] = (h > 9) ? (h - 10 + 'A') : (h + '0');
buf[tmp_len+1-i] = (h > 9) ? (h - 10 + 'A') : (h + '0');
c_Shifted >>= 4;
}
Modified: openoffice/trunk/main/svx/source/accessibility/svxrectctaccessiblecontext.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/accessibility/svxrectctaccessiblecontext.cxx?rev=1546553&r1=1546552&r2=1546553&view=diff
==============================================================================
--- openoffice/trunk/main/svx/source/accessibility/svxrectctaccessiblecontext.cxx (original)
+++ openoffice/trunk/main/svx/source/accessibility/svxrectctaccessiblecontext.cxx Fri Nov 29 12:52:23 2013
@@ -367,7 +367,6 @@ sal_Int16 SAL_CALL SvxRectCtlAccessibleC
::rtl::OUString SAL_CALL SvxRectCtlAccessibleContext::getAccessibleDescription( void ) throw( RuntimeException )
{
::osl::MutexGuard aGuard( m_aMutex );
- //return msDescription;
return msDescription +::rtl::OUString::createFromAscii(" Please use arrow key to selection.");
}
@@ -382,7 +381,6 @@ sal_Int16 SAL_CALL SvxRectCtlAccessibleC
*/
Reference< XAccessibleRelationSet > SAL_CALL SvxRectCtlAccessibleContext::getAccessibleRelationSet( void ) throw( RuntimeException )
{
- //return Reference< XAccessibleRelationSet >();
utl::AccessibleRelationSetHelper* pRelationSetHelper = new utl::AccessibleRelationSetHelper;
uno::Reference< accessibility::XAccessibleRelationSet > xSet = pRelationSetHelper;
Window* pWindow = mpRepr;