diff options
-rw-r--r-- | editeng/source/accessibility/AccessibleStaticTextBase.cxx | 41 | ||||
-rw-r--r-- | editeng/source/editeng/editeng.cxx | 6 | ||||
-rw-r--r-- | editeng/source/editeng/impedit.hxx | 1 | ||||
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 9 | ||||
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 8 | ||||
-rw-r--r-- | editeng/source/editeng/textconv.cxx | 7 | ||||
-rw-r--r-- | editeng/source/editeng/textconv.hxx | 1 | ||||
-rw-r--r-- | editeng/source/outliner/outliner.cxx | 2 | ||||
-rw-r--r-- | editeng/source/rtf/rtfitem.cxx | 1 | ||||
-rw-r--r-- | editeng/source/rtf/svxrtf.cxx | 22 | ||||
-rw-r--r-- | include/editeng/editeng.hxx | 1 | ||||
-rw-r--r-- | include/editeng/outliner.hxx | 2 | ||||
-rw-r--r-- | include/editeng/svxrtf.hxx | 5 | ||||
-rw-r--r-- | include/editeng/unoedsrc.hxx | 3 |
14 files changed, 2 insertions, 107 deletions
diff --git a/editeng/source/accessibility/AccessibleStaticTextBase.cxx b/editeng/source/accessibility/AccessibleStaticTextBase.cxx index abc190339c8b..6a1c21c362c5 100644 --- a/editeng/source/accessibility/AccessibleStaticTextBase.cxx +++ b/editeng/source/accessibility/AccessibleStaticTextBase.cxx @@ -130,13 +130,8 @@ namespace accessibility void SetOffset( const Point& ); - void UpdateChildren(); void Dispose(); -#ifdef DBG_UTIL - void CheckInvariants() const; -#endif - AccessibleEditableTextPara& GetParagraph( sal_Int32 nPara ) const; sal_Int32 GetParagraphCount() const; @@ -232,15 +227,6 @@ namespace accessibility if( mpTextParagraph ) mpTextParagraph->SetEEOffset( rPoint ); - - // in all cases, check visibility afterwards. - UpdateChildren(); - } - - void AccessibleStaticTextBase_Impl::UpdateChildren() - { - - // currently no children } void AccessibleStaticTextBase_Impl::Dispose() @@ -256,13 +242,6 @@ namespace accessibility mpTextParagraph = NULL; } -#ifdef DBG_UTIL - void AccessibleStaticTextBase_Impl::CheckInvariants() const - { - // TODO - } -#endif - AccessibleEditableTextPara& AccessibleStaticTextBase_Impl::GetParagraph( sal_Int32 nPara ) const { @@ -494,11 +473,8 @@ namespace accessibility // precondition: solar mutex locked DBG_TESTSOLARMUTEX(); - mpImpl->CheckInvariants(); - mpImpl->SetEditSource( std::move(pEditSource) ); - mpImpl->CheckInvariants(); #else mpImpl->SetEditSource( std::move(pEditSource) ); #endif @@ -506,15 +482,8 @@ namespace accessibility void AccessibleStaticTextBase::SetEventSource( const uno::Reference< XAccessible >& rInterface ) { -#ifdef DBG_UTIL - mpImpl->CheckInvariants(); -#endif - mpImpl->SetEventSource( rInterface ); -#ifdef DBG_UTIL - mpImpl->CheckInvariants(); -#endif } void AccessibleStaticTextBase::SetOffset( const Point& rPoint ) @@ -523,11 +492,8 @@ namespace accessibility // precondition: solar mutex locked DBG_TESTSOLARMUTEX(); - mpImpl->CheckInvariants(); - mpImpl->SetOffset( rPoint ); - mpImpl->CheckInvariants(); #else mpImpl->SetOffset( rPoint ); #endif @@ -535,15 +501,8 @@ namespace accessibility void AccessibleStaticTextBase::Dispose() { -#ifdef DBG_UTIL - mpImpl->CheckInvariants(); -#endif - mpImpl->Dispose(); -#ifdef DBG_UTIL - mpImpl->CheckInvariants(); -#endif } // XAccessibleContext diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index 2093382f414a..c65c8910d380 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -2462,12 +2462,6 @@ void EditEngine::ParagraphConnected( sal_Int32 /*nLeftParagraph*/, sal_Int32 /*n { } -bool EditEngine::FormattingParagraph( sal_Int32 ) -{ - // return true, if the Attribute was changed ... - return false; -} - void EditEngine::ParaAttribsChanged( sal_Int32 /* nParagraph */ ) { } diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index 093aa105a677..72c35e3db28c 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -629,7 +629,6 @@ private: sal_uInt32 WriteText( SvStream& rOutput, EditSelection aSel ); sal_uInt32 WriteRTF( SvStream& rOutput, EditSelection aSel ); sal_uInt32 WriteXML(SvStream& rOutput, const EditSelection& rSel); - sal_uInt32 WriteHTML( SvStream& rOutput, EditSelection aSel ); sal_uInt32 WriteBin(SvStream& rOutput, const EditSelection& rSel, bool bStoreUnicode = false); void WriteItemAsRTF( const SfxPoolItem& rItem, SvStream& rOutput, sal_Int32 nPara, sal_Int32 nPos, diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 70ca386ecfad..bf4f5afa7fc2 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -380,15 +380,6 @@ void ImpEditEngine::FormatDoc() ParaPortion* pParaPortion = GetParaPortions()[nPara]; if ( pParaPortion->MustRepaint() || ( pParaPortion->IsInvalid() && pParaPortion->IsVisible() ) ) { - if ( pParaPortion->IsInvalid() ) - { - bool bChangedByDerivedClass = GetEditEnginePtr()->FormattingParagraph( nPara ); - if ( bChangedByDerivedClass ) - { - pParaPortion->GetTextPortions().Reset(); - pParaPortion->MarkSelectionInvalid( 0, pParaPortion->GetNode()->Len() ); - } - } // No formatting should be necessary for MustRepaint()! if ( ( pParaPortion->MustRepaint() && !pParaPortion->IsInvalid() ) || CreateLines( nPara, nY ) ) diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index f0aa045ccea3..5c1a50628364 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -213,7 +213,7 @@ void ImpEditEngine::Write(SvStream& rOutput, EETextFormat eFormat, const EditSel else if ( eFormat == EE_FORMAT_XML ) WriteXML( rOutput, rSel ); else if ( eFormat == EE_FORMAT_HTML ) - WriteHTML( rOutput, rSel ); + ; else if ( eFormat == EE_FORMAT_BIN) WriteBin( rOutput, rSel ); else @@ -998,12 +998,6 @@ void ImpEditEngine::WriteItemAsRTF( const SfxPoolItem& rItem, SvStream& rOutput, } } -sal_uInt32 ImpEditEngine::WriteHTML( SvStream&, EditSelection ) -{ - return 0; -} - - EditTextObject* ImpEditEngine::CreateTextObject() { EditSelection aCompleteSelection; diff --git a/editeng/source/editeng/textconv.cxx b/editeng/source/editeng/textconv.cxx index f22478e7d94b..62c9a29ca6d9 100644 --- a/editeng/source/editeng/textconv.cxx +++ b/editeng/source/editeng/textconv.cxx @@ -134,7 +134,6 @@ bool TextConvWrapper::FindConvText_impl() } else { - ConvEnd_impl(); bConvert = ConvNext_impl(); } } @@ -223,11 +222,6 @@ void TextConvWrapper::ConvStart_impl( SvxSpellArea eArea ) } -void TextConvWrapper::ConvEnd_impl() -{ -} - - bool TextConvWrapper::ConvContinue_impl() { // modified version of EditSpellWrapper::SpellContinue @@ -572,7 +566,6 @@ void TextConvWrapper::Convert() m_bStartChk = false; ConvStart_impl( SVX_SPELL_BODY_END ); ConvertDocument(); - ConvEnd_impl(); } diff --git a/editeng/source/editeng/textconv.hxx b/editeng/source/editeng/textconv.hxx index 712e0f9dc1c3..012811c457c8 100644 --- a/editeng/source/editeng/textconv.hxx +++ b/editeng/source/editeng/textconv.hxx @@ -56,7 +56,6 @@ class TextConvWrapper : public editeng::HangulHanjaConversion // from EditSpellWrapper copied and modified void ConvStart_impl( SvxSpellArea eSpell ); // former SpellStart - void ConvEnd_impl(); // former SpellEnd bool ConvContinue_impl(); // former SpellContinue void SelectNewUnit_impl( const sal_Int32 nUnitStart, diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index fe6e6ca84bde..83a0f7ad5086 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -223,7 +223,7 @@ void Outliner::Init( sal_uInt16 nMode ) const bool bWasUndoEnabled(IsUndoEnabled()); EnableUndo(false); - ImplInitDepth( 0, GetMinDepth(), false ); + ImplInitDepth( 0, -1, false ); GetUndoManager().Clear(); EnableUndo(bWasUndoEnabled); } diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx index 6083cf16d706..36ab6059bdb6 100644 --- a/editeng/source/rtf/rtfitem.cxx +++ b/editeng/source/rtf/rtfitem.cxx @@ -222,7 +222,6 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet ) { case RTF_PARD: RTFPardPlain( true, &pSet ); - ResetPard(); nStyleNo = 0; bPardTokenRead = true; break; diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index 1d3f79428f9e..552c52a77b27 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -85,18 +85,6 @@ SvxRTFParser::SvxRTFParser( SfxItemPool& rPool, SvStream& rIn, pDfltColor = new Color; } -void SvxRTFParser::EnterEnvironment() -{ -} - -void SvxRTFParser::LeaveEnvironment() -{ -} - -void SvxRTFParser::ResetPard() -{ -} - SvxRTFParser::~SvxRTFParser() { if( !aColorTbl.empty() ) @@ -224,13 +212,11 @@ INSINGLECHAR: case '{': if (bNewGroup) // Nesting! _GetAttrSet(); - EnterEnvironment(); bNewGroup = true; break; case '}': if( !bNewGroup ) // Empty Group ?? AttrGroupEnd(); - LeaveEnvironment(); bNewGroup = false; break; case RTF_INFO: @@ -1230,11 +1216,6 @@ void SvxRTFItemStackType::MoveFullNode(const SvxNodeIdx &rOldNode, } } -bool SvxRTFParser::UncompressableStackEntry(const SvxRTFItemStackType &) const -{ - return false; -} - void SvxRTFItemStackType::Compress( const SvxRTFParser& rParser ) { ENSURE_OR_RETURN_VOID(pChildList, "Compress: no ChildList" ); @@ -1270,9 +1251,6 @@ void SvxRTFItemStackType::Compress( const SvxRTFParser& rParser ) return; } - if (rParser.UncompressableStackEntry(*pTmp)) - return; - if( n ) { // Search for all which are set over the whole area diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index 89b5ce33fccb..b9bbc91a698c 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -486,7 +486,6 @@ public: const Color& rOverlineColor, const Color& rTextLineColor); virtual OUString GetUndoComment( sal_uInt16 nUndoId ) const; - bool FormattingParagraph( sal_Int32 nPara ); virtual bool SpellNextDocument(); virtual void FieldClicked( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos ); virtual void FieldSelected( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos ); diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index e1623ec12e7a..09c4012dad4f 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -719,8 +719,6 @@ public: void SetBackgroundColor( const Color& rColor ); Color GetBackgroundColor() const; - sal_Int16 GetMinDepth() const { return -1; } - void SetMaxDepth( sal_Int16 nDepth, bool bCheckParas = false ); sal_Int16 GetMaxDepth() const { return nMaxDepth; } diff --git a/include/editeng/svxrtf.hxx b/include/editeng/svxrtf.hxx index b33cf16a4f7d..cf9732f7c67d 100644 --- a/include/editeng/svxrtf.hxx +++ b/include/editeng/svxrtf.hxx @@ -240,12 +240,8 @@ class EDITENG_DLLPUBLIC SvxRTFParser : public SvRTFParser RTF_CharTypeDef eType, SfxItemSet& rSet, SfxPoolItem& rItem ); protected: - void EnterEnvironment(); - void LeaveEnvironment(); - void ResetPard(); virtual void InsertPara() = 0; - OUString& DelCharAtEnd( OUString& rStr, const sal_Unicode cDel ); // is called for each token that is recognized in CallParser @@ -341,7 +337,6 @@ public: // get RTF default ItemSets. Must be used by pard/plain tokens or in // reset of Style-Items const SfxItemSet& GetRTFDefaults(); - bool UncompressableStackEntry(const SvxRTFItemStackType &rSet) const; }; // The stack for the attributes: diff --git a/include/editeng/unoedsrc.hxx b/include/editeng/unoedsrc.hxx index 431053fdad44..7c94aa2b002b 100644 --- a/include/editeng/unoedsrc.hxx +++ b/include/editeng/unoedsrc.hxx @@ -536,9 +536,6 @@ public: */ virtual bool Paste() = 0; - bool IsWrongSpelledWordAtPos( sal_Int32, sal_Int32 ) { return false; }; - bool IsShapeParaFocusable( ) { return true; }; - bool BreakParaWrongList(sal_Int32, sal_Int32&, sal_Int32&, sal_Int32){ return false; }; }; #endif |