diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-07 22:36:07 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-11 22:33:31 -0500 |
commit | 10461da782ae403563d5b47e3853ddb819f72dde (patch) | |
tree | cc79e7381d67f7034d6dbe1fb62bac2f53ac7341 | |
parent | 821521f757569c96ded6004bb2cb0d003481b55b (diff) |
Removal of more obsolete stuff...
Change-Id: Idad9121270ae89c504577f4e8d70ca4c4ed2e64b
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 57 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlcelli.hxx | 2 |
2 files changed, 1 insertions, 58 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index 4659c2aa0780..179c992d18a0 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -120,7 +120,6 @@ ScXMLTableRowCellContext::ScXMLTableRowCellContext( ScXMLImport& rImport, bIsMatrix(false), bIsCovered(bTempIsCovered), bIsEmpty(true), - bHasTextImport(false), bIsFirstTextImport(false), bSolarMutexLocked(false), bFormulaTextResult(false), @@ -306,42 +305,6 @@ void ScXMLTableRowCellContext::PushParagraph(const OUString& rPara) maParagraphs.push_back(rPara); } -void ScXMLTableRowCellContext::SetCursorOnTextImport(const rtl::OUString& rOUTempText) -{ - ScAddress aCellPos = rXMLImport.GetTables().GetCurrentCellPos(); - if (cellExists(aCellPos)) - { - sal_Int32 nCol = static_cast<sal_Int32>( aCellPos.Col() ); - sal_Int32 nRow = static_cast<sal_Int32>( aCellPos.Row() ); - uno::Reference<table::XCellRange> xCellRange(rXMLImport.GetTables().GetCurrentXCellRange()); - if (xCellRange.is()) - { - com::sun::star::uno::Reference<com::sun::star::table::XCell> xBaseCell( xCellRange->getCellByPosition(nCol, nRow) ); - if (xBaseCell.is()) - { - com::sun::star::uno::Reference<com::sun::star::document::XActionLockable> xLockable(xBaseCell, uno::UNO_QUERY); - if (xLockable.is()) - xLockable->addActionLock(); - uno::Reference<text::XText> xText(xBaseCell, uno::UNO_QUERY); - if (xText.is()) - { - uno::Reference<text::XTextCursor> xTextCursor(xText->createTextCursor()); - if (xTextCursor.is()) - { - xTextCursor->setString(rOUTempText); - xTextCursor->gotoEnd(false); - rXMLImport.GetTextImport()->SetCursor(xTextCursor); - } - } - } - } - } - else - { - OSL_FAIL("this method should only be called for a existing cell"); - } -} - SvXMLImportContext *ScXMLTableRowCellContext::CreateChildContext( sal_uInt16 nPrefix, const ::rtl::OUString& rLName, const ::com::sun::star::uno::Reference< @@ -777,7 +740,7 @@ void ScXMLTableRowCellContext::PutTextCell( const ScAddress& rCurrentPos, // so ProgressBarIncrement must be called with bEditCell = FALSE. // Formatted text that is put into the cell by the child context // is handled in AddCellsToTable() (bIsEmpty is true then). - if (bDoIncrement || bHasTextImport) + if (bDoIncrement) rXMLImport.ProgressBarIncrement(false); } @@ -901,11 +864,6 @@ void ScXMLTableRowCellContext::AddTextAndValueCells( const ScAddress& rCellPos, } else { - // #i56027# If the child context put formatted text into the cell, - // bIsEmpty is true and ProgressBarIncrement has to be called - // with bEditCell = TRUE. - if (bHasTextImport) - rXMLImport.ProgressBarIncrement(true); if ((i == 0) && (rCellPos.Col() == 0)) { for (sal_Int32 j = 1; j < nRepeatedRows; ++j) @@ -1144,19 +1102,6 @@ bool ScXMLTableRowCellContext::IsPossibleErrorString() const void ScXMLTableRowCellContext::EndElement() { - if( bHasTextImport && rXMLImport.GetRemoveLastChar() ) - { - UniReference< XMLTextImportHelper > aTextImport = rXMLImport.GetTextImport(); - if( aTextImport->GetCursor().is() ) - { - if( aTextImport->GetCursor()->goLeft(1, true) ) - { - aTextImport->GetText()->insertString( - aTextImport->GetCursorAsRange(), rtl::OUString(), true ); - } - aTextImport->ResetCursor(); - } - } HasSpecialCaseFormulaText(); if( bFormulaTextResult && (mbPossibleErrorCell || mbCheckWithCompilerForError) ) { diff --git a/sc/source/filter/xml/xmlcelli.hxx b/sc/source/filter/xml/xmlcelli.hxx index cd0ce080f6d2..b71537ec3fcf 100644 --- a/sc/source/filter/xml/xmlcelli.hxx +++ b/sc/source/filter/xml/xmlcelli.hxx @@ -55,7 +55,6 @@ class ScXMLTableRowCellContext : public SvXMLImportContext bool bIsMatrix; bool bIsCovered; bool bIsEmpty; - bool bHasTextImport; bool bIsFirstTextImport; bool bSolarMutexLocked; bool bFormulaTextResult; @@ -108,7 +107,6 @@ public: ::com::sun::star::xml::sax::XAttributeList>& xAttrList ); void PushParagraph(const OUString& rPara); - void SetCursorOnTextImport(const rtl::OUString& rOUTempText); void SetAnnotation( const ScAddress& rPosition ); void SetDetectiveObj( const ScAddress& rPosition ); |