Kaydet (Commit) 10461da7 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Removal of more obsolete stuff...

Change-Id: Idad9121270ae89c504577f4e8d70ca4c4ed2e64b
üst 821521f7
...@@ -120,7 +120,6 @@ ScXMLTableRowCellContext::ScXMLTableRowCellContext( ScXMLImport& rImport, ...@@ -120,7 +120,6 @@ ScXMLTableRowCellContext::ScXMLTableRowCellContext( ScXMLImport& rImport,
bIsMatrix(false), bIsMatrix(false),
bIsCovered(bTempIsCovered), bIsCovered(bTempIsCovered),
bIsEmpty(true), bIsEmpty(true),
bHasTextImport(false),
bIsFirstTextImport(false), bIsFirstTextImport(false),
bSolarMutexLocked(false), bSolarMutexLocked(false),
bFormulaTextResult(false), bFormulaTextResult(false),
...@@ -306,42 +305,6 @@ void ScXMLTableRowCellContext::PushParagraph(const OUString& rPara) ...@@ -306,42 +305,6 @@ void ScXMLTableRowCellContext::PushParagraph(const OUString& rPara)
maParagraphs.push_back(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, SvXMLImportContext *ScXMLTableRowCellContext::CreateChildContext( sal_uInt16 nPrefix,
const ::rtl::OUString& rLName, const ::rtl::OUString& rLName,
const ::com::sun::star::uno::Reference< const ::com::sun::star::uno::Reference<
...@@ -777,7 +740,7 @@ void ScXMLTableRowCellContext::PutTextCell( const ScAddress& rCurrentPos, ...@@ -777,7 +740,7 @@ void ScXMLTableRowCellContext::PutTextCell( const ScAddress& rCurrentPos,
// so ProgressBarIncrement must be called with bEditCell = FALSE. // so ProgressBarIncrement must be called with bEditCell = FALSE.
// Formatted text that is put into the cell by the child context // Formatted text that is put into the cell by the child context
// is handled in AddCellsToTable() (bIsEmpty is true then). // is handled in AddCellsToTable() (bIsEmpty is true then).
if (bDoIncrement || bHasTextImport) if (bDoIncrement)
rXMLImport.ProgressBarIncrement(false); rXMLImport.ProgressBarIncrement(false);
} }
...@@ -901,11 +864,6 @@ void ScXMLTableRowCellContext::AddTextAndValueCells( const ScAddress& rCellPos, ...@@ -901,11 +864,6 @@ void ScXMLTableRowCellContext::AddTextAndValueCells( const ScAddress& rCellPos,
} }
else 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)) if ((i == 0) && (rCellPos.Col() == 0))
{ {
for (sal_Int32 j = 1; j < nRepeatedRows; ++j) for (sal_Int32 j = 1; j < nRepeatedRows; ++j)
...@@ -1144,19 +1102,6 @@ bool ScXMLTableRowCellContext::IsPossibleErrorString() const ...@@ -1144,19 +1102,6 @@ bool ScXMLTableRowCellContext::IsPossibleErrorString() const
void ScXMLTableRowCellContext::EndElement() 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(); HasSpecialCaseFormulaText();
if( bFormulaTextResult && (mbPossibleErrorCell || mbCheckWithCompilerForError) ) if( bFormulaTextResult && (mbPossibleErrorCell || mbCheckWithCompilerForError) )
{ {
......
...@@ -55,7 +55,6 @@ class ScXMLTableRowCellContext : public SvXMLImportContext ...@@ -55,7 +55,6 @@ class ScXMLTableRowCellContext : public SvXMLImportContext
bool bIsMatrix; bool bIsMatrix;
bool bIsCovered; bool bIsCovered;
bool bIsEmpty; bool bIsEmpty;
bool bHasTextImport;
bool bIsFirstTextImport; bool bIsFirstTextImport;
bool bSolarMutexLocked; bool bSolarMutexLocked;
bool bFormulaTextResult; bool bFormulaTextResult;
...@@ -108,7 +107,6 @@ public: ...@@ -108,7 +107,6 @@ public:
::com::sun::star::xml::sax::XAttributeList>& xAttrList ); ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
void PushParagraph(const OUString& rPara); void PushParagraph(const OUString& rPara);
void SetCursorOnTextImport(const rtl::OUString& rOUTempText);
void SetAnnotation( const ScAddress& rPosition ); void SetAnnotation( const ScAddress& rPosition );
void SetDetectiveObj( const ScAddress& rPosition ); void SetDetectiveObj( const ScAddress& rPosition );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment