summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-05 14:39:47 +0800
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-02-05 16:40:03 +0400
commit9c06348b32bd799241f23b1c2d75a46cf498d015 (patch)
treeeaedb04eb775ee20712d41387ca28409bc2d9885 /sc
parentdf58753d51c41253f26104d146a73ba74c42e33e (diff)
Remove unused code.
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/cellsuno.hxx4
-rw-r--r--sc/source/filter/xml/XMLExportDDELinks.cxx17
-rw-r--r--sc/source/filter/xml/XMLExportDDELinks.hxx2
-rw-r--r--sc/source/filter/xml/xmlfilti.cxx11
-rw-r--r--sc/source/filter/xml/xmlfilti.hxx2
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx33
-rw-r--r--sc/source/ui/vba/vbacommentshape.cxx6
-rw-r--r--sc/source/ui/vba/vbacommentshape.hxx3
-rw-r--r--sc/source/ui/vba/vbawindows.cxx5
-rw-r--r--sc/source/ui/vba/vbawindows.hxx1
10 files changed, 0 insertions, 84 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index 8d1708715699..c2733bdd9557 100644
--- a/sc/inc/cellsuno.hxx
+++ b/sc/inc/cellsuno.hxx
@@ -869,10 +869,6 @@ public:
// XML import needs to set results at formula cells,
// not meant for any other purpose.
- void SetFormulaResultString( const ::rtl::OUString& rResult );
- void SetFormulaResultDouble( double fResult );
- void SetFormulaWithGrammar( const ::rtl::OUString& rFormula,
- const ::rtl::OUString& rFormulaNmsp, const formula::FormulaGrammar::Grammar );
const ScAddress& GetPosition() const { return aCellPos; }
void InputEnglishString( const ::rtl::OUString& rText );
diff --git a/sc/source/filter/xml/XMLExportDDELinks.cxx b/sc/source/filter/xml/XMLExportDDELinks.cxx
index 81734b92b5fb..e828f74dee1e 100644
--- a/sc/source/filter/xml/XMLExportDDELinks.cxx
+++ b/sc/source/filter/xml/XMLExportDDELinks.cxx
@@ -54,23 +54,6 @@ ScXMLExportDDELinks::~ScXMLExportDDELinks()
{
}
-bool ScXMLExportDDELinks::CellsEqual(const bool bPrevEmpty, const bool bPrevString, const String& sPrevValue, const double& fPrevValue,
- const bool bEmpty, const bool bString, const String& sValue, const double& fValue) const
-{
- if (bEmpty == bPrevEmpty)
- if (bEmpty)
- return true;
- else if (bString == bPrevString)
- if (bString)
- return (sPrevValue == sValue);
- else
- return (fPrevValue == fValue);
- else
- return false;
- else
- return false;
-}
-
void ScXMLExportDDELinks::WriteCell(const ScMatrixValue& aVal, sal_Int32 nRepeat)
{
bool bString = ScMatrix::IsNonValueType(aVal.nType);
diff --git a/sc/source/filter/xml/XMLExportDDELinks.hxx b/sc/source/filter/xml/XMLExportDDELinks.hxx
index 74171a97cafb..e92fa2065d5f 100644
--- a/sc/source/filter/xml/XMLExportDDELinks.hxx
+++ b/sc/source/filter/xml/XMLExportDDELinks.hxx
@@ -39,8 +39,6 @@ class ScXMLExportDDELinks
{
ScXMLExport& rExport;
- bool CellsEqual(const bool bPrevEmpty, const bool bPrevString, const String& sPrevValue, const double& fPrevValue,
- const bool bEmpty, const bool bString, const String& sValue, const double& fValue) const;
void WriteCell(const ScMatrixValue& aVal, sal_Int32 nRepeat);
void WriteTable(const sal_Int32 nPos);
public:
diff --git a/sc/source/filter/xml/xmlfilti.cxx b/sc/source/filter/xml/xmlfilti.cxx
index 54b7f6280c5f..a6803705b802 100644
--- a/sc/source/filter/xml/xmlfilti.cxx
+++ b/sc/source/filter/xml/xmlfilti.cxx
@@ -167,17 +167,6 @@ void ScXMLFilterContext::EndElement()
pDatabaseRangeContext->SetFilterConditionSourceRangeAddress(aConditionSourceRangeAddress);
}
-void ScXMLFilterContext::SetCaseSensitive(bool b)
-{
- mrQueryParam.bCaseSens = b;
-}
-
-void ScXMLFilterContext::SetUseRegularExpressions(bool b)
-{
- if (!bUseRegularExpressions)
- bUseRegularExpressions = b;
-}
-
void ScXMLFilterContext::OpenConnection(bool b)
{
maConnStack.push_back(ConnStackItem(b));
diff --git a/sc/source/filter/xml/xmlfilti.hxx b/sc/source/filter/xml/xmlfilti.hxx
index 759f95468a00..952b705ebdc1 100644
--- a/sc/source/filter/xml/xmlfilti.hxx
+++ b/sc/source/filter/xml/xmlfilti.hxx
@@ -88,8 +88,6 @@ public:
virtual void EndElement();
- void SetCaseSensitive(const bool b);
- void SetUseRegularExpressions(bool b);
void OpenConnection(bool b);
void CloseConnection();
bool GetConnection();
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 7844d9fdba3d..139d3d17900f 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -6234,39 +6234,6 @@ void ScCellObj::SetValue_Impl(double fValue)
// only for XML import
-void ScCellObj::SetFormulaResultString( const ::rtl::OUString& rResult )
-{
- ScDocShell* pDocSh = GetDocShell();
- if ( pDocSh )
- {
- ScBaseCell* pCell = pDocSh->GetDocument()->GetCell( aCellPos );
- if ( pCell && pCell->GetCellType() == CELLTYPE_FORMULA )
- ((ScFormulaCell*)pCell)->SetHybridString( rResult );
- }
-}
-
-void ScCellObj::SetFormulaResultDouble( double fResult )
-{
- ScDocShell* pDocSh = GetDocShell();
- if ( pDocSh )
- {
- ScBaseCell* pCell = pDocSh->GetDocument()->GetCell( aCellPos );
- if ( pCell && pCell->GetCellType() == CELLTYPE_FORMULA )
- ((ScFormulaCell*)pCell)->SetHybridDouble( fResult );
- }
-}
-
-void ScCellObj::SetFormulaWithGrammar( const ::rtl::OUString& rFormula,
- const ::rtl::OUString& rFormulaNmsp, const formula::FormulaGrammar::Grammar eGrammar )
-{
- ScDocShell* pDocSh = GetDocShell();
- if ( pDocSh )
- {
- ScDocFunc aFunc(*pDocSh);
- aFunc.SetCellText( aCellPos, rFormula, sal_True, sal_True, sal_True, rFormulaNmsp, eGrammar);
- }
-}
-
void ScCellObj::InputEnglishString( const ::rtl::OUString& rText )
{
// This is like a mixture of setFormula and property FormulaLocal:
diff --git a/sc/source/ui/vba/vbacommentshape.cxx b/sc/source/ui/vba/vbacommentshape.cxx
index 768b63636ad2..1c942d6471fc 100644
--- a/sc/source/ui/vba/vbacommentshape.cxx
+++ b/sc/source/ui/vba/vbacommentshape.cxx
@@ -32,12 +32,6 @@
using namespace com::sun::star;
using namespace ooo::vba;
-ScVbaCommentShape::ScVbaCommentShape( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< drawing::XShape >& xShape, const uno::Reference< excel::XComment >& xComment,
- const uno::Reference< drawing::XShapes >& xShapes, const uno::Reference< frame::XModel >& xModel, sal_Int32 nType ) : ScVbaShape( xParent, xContext, xShape, xShapes, xModel, nType )
-{
- m_xComment.set( xComment, uno::UNO_QUERY );
-}
-
void SAL_CALL ScVbaCommentShape::Delete() throw (uno::RuntimeException)
{
if ( m_xComment.is() )
diff --git a/sc/source/ui/vba/vbacommentshape.hxx b/sc/source/ui/vba/vbacommentshape.hxx
index 6943321cbaef..76adc99bf234 100644
--- a/sc/source/ui/vba/vbacommentshape.hxx
+++ b/sc/source/ui/vba/vbacommentshape.hxx
@@ -38,9 +38,6 @@ class ScVbaCommentShape : public ScVbaShape
css::uno::Reference< ooo::vba::excel::XComment > m_xComment;
public:
- ScVbaCommentShape( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::drawing::XShape >& xShape,
- const css::uno::Reference< ooo::vba::excel::XComment >& xComment, const css::uno::Reference< css::drawing::XShapes >& xShapes, const css::uno::Reference< css::frame::XModel >& xModel, sal_Int32 nType );
-
// Methods
virtual void SAL_CALL Delete() throw (css::uno::RuntimeException);
};
diff --git a/sc/source/ui/vba/vbawindows.cxx b/sc/source/ui/vba/vbawindows.cxx
index d13a033f0c55..e1c950727b95 100644
--- a/sc/source/ui/vba/vbawindows.cxx
+++ b/sc/source/ui/vba/vbawindows.cxx
@@ -209,11 +209,6 @@ public:
};
-
-ScVbaWindows::ScVbaWindows( const uno::Reference< ov::XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext > & xContext, const uno::Reference< container::XIndexAccess >& xIndexAccess ): ScVbaWindows_BASE( xParent, xContext, xIndexAccess )
-{
-}
-
ScVbaWindows::ScVbaWindows( const uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext ) : ScVbaWindows_BASE( xParent, xContext, uno::Reference< container::XIndexAccess > ( new WindowsAccessImpl( xContext ) ) )
{
}
diff --git a/sc/source/ui/vba/vbawindows.hxx b/sc/source/ui/vba/vbawindows.hxx
index 9b1ac796503a..f3586d23ccd9 100644
--- a/sc/source/ui/vba/vbawindows.hxx
+++ b/sc/source/ui/vba/vbawindows.hxx
@@ -42,7 +42,6 @@ typedef CollTestImplHelper< ov::excel::XWindows > ScVbaWindows_BASE;
class ScVbaWindows : public ScVbaWindows_BASE
{
public:
- ScVbaWindows( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess );
ScVbaWindows( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext );
virtual ~ScVbaWindows() {}