summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-03 15:01:11 +0200
committerNoel Grandin <noel@peralex.com>2014-03-05 09:17:44 +0200
commit6f0dfc462e3bcb9368f93862457673ad0cd3dc45 (patch)
tree0be581c932993b9e791fdcc4c92f4a99966971a7
parent4ec1f764ae662684cdcd394d2799bc09ade88c91 (diff)
remove unused code in accessibility::Document
accessibility::Document::justifySelection(TextPaM&, TextPaM&) accessibility::Document::notifySelectionChange(int, int) Change-Id: I3a5c79ada69c1530ebbbf386bf271f3a83843815
-rw-r--r--accessibility/inc/accessibility/extended/textwindowaccessibility.hxx3
-rw-r--r--accessibility/source/extended/textwindowaccessibility.cxx38
-rw-r--r--unusedcode.easy2
3 files changed, 0 insertions, 43 deletions
diff --git a/accessibility/inc/accessibility/extended/textwindowaccessibility.hxx b/accessibility/inc/accessibility/extended/textwindowaccessibility.hxx
index 0635e4fb7f0e..cdb2b3bc8490 100644
--- a/accessibility/inc/accessibility/extended/textwindowaccessibility.hxx
+++ b/accessibility/inc/accessibility/extended/textwindowaccessibility.hxx
@@ -623,12 +623,9 @@ private:
void handleSelectionChangeNotification();
- void notifySelectionChange( sal_Int32 nFirst, sal_Int32 nLast );
::sal_Int32 getSelectionType(::sal_Int32 nNewFirstPara, ::sal_Int32 nNewFirstPos, ::sal_Int32 nNewLastPara, ::sal_Int32 nNewLastPos);
void sendEvent(::sal_Int32 start, ::sal_Int32 end, ::sal_Int16 nEventId);
- void justifySelection( TextPaM& rTextStart, TextPaM& rTextEnd );
-
void disposeParagraphs();
static css::uno::Any mapFontColor(::Color const & rColor);
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx
index 235fa458531c..5ef179b15dc0 100644
--- a/accessibility/source/extended/textwindowaccessibility.cxx
+++ b/accessibility/source/extended/textwindowaccessibility.cxx
@@ -2502,44 +2502,6 @@ void Document::handleSelectionChangeNotification()
m_nSelectionLastPos = nNewLastPos;
}
-void Document::notifySelectionChange( sal_Int32 nFirst, sal_Int32 nLast )
-{
- nFirst = std::max( nFirst, sal_Int32( 0 ) );
- nLast = std::min( nLast, sal_Int32( m_xParagraphs->size() ) );
- Paragraphs::iterator iFirst(m_xParagraphs->begin() + nFirst);
- Paragraphs::iterator iLast(m_xParagraphs->begin() + nLast);
- if ( iFirst < m_aVisibleBegin )
- iFirst = m_aVisibleBegin;
- if ( iLast > m_aVisibleEnd )
- iLast = m_aVisibleEnd;
- if ( iFirst < iLast )
- {
- for ( Paragraphs::iterator i = iFirst; i != iLast; ++i )
- {
- ::rtl::Reference< ParagraphImpl > xParagraph( getParagraph( i ) );
- if ( xParagraph.is() )
- {
- xParagraph->notifyEvent(
- css::accessibility::AccessibleEventId::SELECTION_CHANGED,
- css::uno::Any(), css::uno::Any() );
- xParagraph->notifyEvent(
- css::accessibility::AccessibleEventId::TEXT_SELECTION_CHANGED,
- css::uno::Any(), css::uno::Any() );
- }
- }
- }
-}
-
-void Document::justifySelection( TextPaM& rTextStart, TextPaM& rTextEnd )
-{
- if ( rTextStart > rTextEnd )
- {
- TextPaM aTextPaM( rTextStart );
- rTextStart = rTextEnd;
- rTextEnd = aTextPaM;
- }
-}
-
void Document::disposeParagraphs()
{
for (Paragraphs::iterator aIt(m_xParagraphs->begin());
diff --git a/unusedcode.easy b/unusedcode.easy
index 1a2901789408..daa4acca6a2d 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -98,8 +98,6 @@ VclMultiLineEdit::IsRightToLeft() const
VclMultiLineEdit::SetTextSelectable(bool)
accessibility::AccessibleParaManager::Release(int)
accessibility::AccessibleShape::AccessibleShape(com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const&, com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible> const&, accessibility::AccessibleShapeTreeInfo const&, int)
-accessibility::Document::justifySelection(TextPaM&, TextPaM&)
-accessibility::Document::notifySelectionChange(int, int)
apitest::CellProperties::testRotateReference()
apitest::CellProperties::testVertJustify()
apitest::DataPilotField::testAutoShowInfo()