summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-03 11:08:31 +0100
committerMichael Meeks <michael.meeks@suse.com>2013-03-04 11:34:07 +0000
commit5b04c9063cc9dd77dc55c361df081812af38cdbd (patch)
tree827cd9405e68df853362ac6a021c4619bf4a6bc3 /editeng
parentbf48090e0a81c6490ee938eabaef4e791df85229 (diff)
remove unused and commented out code
This code gets never called. Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
Diffstat (limited to 'editeng')
-rw-r--r--editeng/inc/editeng/splwrap.hxx1
-rw-r--r--editeng/inc/editeng/unoedprx.hxx1
-rw-r--r--editeng/source/editeng/edtspell.cxx24
-rw-r--r--editeng/source/editeng/edtspell.hxx2
-rw-r--r--editeng/source/items/frmitems.cxx1
-rw-r--r--editeng/source/misc/splwrap.cxx9
-rw-r--r--editeng/source/uno/unoedprx.cxx9
7 files changed, 0 insertions, 47 deletions
diff --git a/editeng/inc/editeng/splwrap.hxx b/editeng/inc/editeng/splwrap.hxx
index 9126cae8e6b1..c3a559c8470c 100644
--- a/editeng/inc/editeng/splwrap.hxx
+++ b/editeng/inc/editeng/splwrap.hxx
@@ -138,7 +138,6 @@ protected:
virtual void ScrollArea(); // Set ScrollArea
// Replace word
virtual void ChangeWord( const String& rNewWord, const sal_uInt16 nLang );
- virtual String GetThesWord();
// Wort via Thesaurus ersetzen
virtual void ChangeThesWord( const String& rNewWord );
virtual void SetLanguage( const sal_uInt16 nLang ); // Change Language
diff --git a/editeng/inc/editeng/unoedprx.hxx b/editeng/inc/editeng/unoedprx.hxx
index 83ed5090c5fd..c6e067a6a633 100644
--- a/editeng/inc/editeng/unoedprx.hxx
+++ b/editeng/inc/editeng/unoedprx.hxx
@@ -42,7 +42,6 @@ public:
virtual void RemoveAttribs( const ESelection& rSelection, sal_Bool bRemoveParaAttribs, sal_uInt16 nWhich );
virtual void GetPortions( sal_uInt16 nPara, std::vector<sal_uInt16>& rList ) const;
- virtual sal_Int32 CalcLogicalIndex( sal_uInt16 nPara, sal_uInt16 nEEIndex );
virtual sal_uInt16 CalcEditEngineIndex( sal_uInt16 nPara, sal_Int32 nLogicalIndex );
virtual sal_uInt16 GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const;
diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx
index 4e44fe7772eb..8856564a1a06 100644
--- a/editeng/source/editeng/edtspell.cxx
+++ b/editeng/source/editeng/edtspell.cxx
@@ -680,30 +680,6 @@ sal_Bool EdtAutoCorrDoc::SetINetAttr( sal_uInt16 nStt, sal_uInt16 nEnd,
return sal_True;
}
-sal_Bool EdtAutoCorrDoc::HasSymbolChars( sal_uInt16 nStt, sal_uInt16 nEnd )
-{
- sal_uInt16 nScriptType = mpEditEngine->GetScriptType( EditPaM( pCurNode, nStt ) );
- sal_uInt16 nScriptFontInfoItemId = GetScriptItemId( EE_CHAR_FONTINFO, nScriptType );
-
- const CharAttribList::AttribsType& rAttribs = pCurNode->GetCharAttribs().GetAttribs();
- CharAttribList::AttribsType::const_iterator it = rAttribs.begin(), itEnd = rAttribs.end();
- for (; it != itEnd; ++it)
- {
- const EditCharAttrib& rAttr = *it;
- if (rAttr.GetStart() >= nEnd)
- return false;
-
- if (rAttr.Which() == nScriptFontInfoItemId &&
- static_cast<const SvxFontItem*>(rAttr.GetItem())->GetCharSet() == RTL_TEXTENCODING_SYMBOL)
- {
- // check if the Attribtuteis within range...
- if (rAttr.GetEnd() >= nStt)
- return true;
- }
- }
- return false;
-}
-
const String* EdtAutoCorrDoc::GetPrevPara( sal_Bool )
{
// Return previous paragraph, so that it can be determined,
diff --git a/editeng/source/editeng/edtspell.hxx b/editeng/source/editeng/edtspell.hxx
index 63ffb8085dda..699a6dff358e 100644
--- a/editeng/source/editeng/edtspell.hxx
+++ b/editeng/source/editeng/edtspell.hxx
@@ -150,8 +150,6 @@ public:
virtual sal_Bool SetAttr( sal_uInt16 nStt, sal_uInt16 nEnd, sal_uInt16 nSlotId, SfxPoolItem& );
virtual sal_Bool SetINetAttr( sal_uInt16 nStt, sal_uInt16 nEnd, const String& rURL );
- virtual sal_Bool HasSymbolChars( sal_uInt16 nStt, sal_uInt16 nEnd );
-
virtual const String* GetPrevPara( sal_Bool bAtNormalPos );
virtual sal_Bool ChgAutoCorrWord( sal_uInt16& rSttPos, sal_uInt16 nEndPos,
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index e728d1968885..698a235bedea 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -49,7 +49,6 @@
#include <tools/urlobj.hxx>
#include <comphelper/types.hxx>
#include <svl/memberid.hrc>
-#include <svtools/wallitem.hxx>
#include <svl/cntwall.hxx>
#include <svtools/borderhelper.hxx>
#include <rtl/ustring.hxx>
diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx
index 26edd7e69872..aefd764892cc 100644
--- a/editeng/source/misc/splwrap.cxx
+++ b/editeng/source/misc/splwrap.cxx
@@ -306,15 +306,6 @@ void SvxSpellWrapper::ChangeWord( const String&, const sal_uInt16 )
// -----------------------------------------------------------------------
-String SvxSpellWrapper::GetThesWord()
-{
- // What word should be looked up?
- return String();
-}
-
-// -----------------------------------------------------------------------
-
-
void SvxSpellWrapper::ChangeThesWord( const String& )
{
// replace word due to Thesaurus.
diff --git a/editeng/source/uno/unoedprx.cxx b/editeng/source/uno/unoedprx.cxx
index 1eb478837072..a91b8f3cbebf 100644
--- a/editeng/source/uno/unoedprx.cxx
+++ b/editeng/source/uno/unoedprx.cxx
@@ -677,15 +677,6 @@ void SvxAccessibleTextAdapter::FieldClicked( const SvxFieldItem& rField, sal_uIn
mrTextForwarder->FieldClicked( rField, nPara, nPos );
}
-sal_Int32 SvxAccessibleTextAdapter::CalcLogicalIndex( sal_uInt16 nPara, sal_uInt16 nEEIndex )
-{
- DBG_ASSERT(mrTextForwarder, "SvxAccessibleTextAdapter: no forwarder");
-
- SvxAccessibleTextIndex aIndex;
- aIndex.SetEEIndex(nPara, nEEIndex, *mrTextForwarder);
- return aIndex.GetIndex();
-}
-
sal_uInt16 SvxAccessibleTextAdapter::CalcEditEngineIndex( sal_uInt16 nPara, sal_Int32 nLogicalIndex )
{
DBG_ASSERT(mrTextForwarder, "SvxAccessibleTextAdapter: no forwarder");