[Libreoffice-commits] .: sc/inc sc/source unusedcode.easy vbahelper/inc vbahelper/source xmloff/inc xmloff/source
Ivan Timofeev
ivantimofeev at kemper.freedesktop.org
Sun Feb 5 04:59:46 PST 2012
sc/inc/cellsuno.hxx | 4 --
sc/source/filter/xml/XMLExportDDELinks.cxx | 17 ----------
sc/source/filter/xml/XMLExportDDELinks.hxx | 2 -
sc/source/filter/xml/xmlfilti.cxx | 11 ------
sc/source/filter/xml/xmlfilti.hxx | 2 -
sc/source/ui/unoobj/cellsuno.cxx | 33 --------------------
sc/source/ui/vba/vbacommentshape.cxx | 6 ---
sc/source/ui/vba/vbacommentshape.hxx | 3 -
sc/source/ui/vba/vbawindows.cxx | 5 ---
sc/source/ui/vba/vbawindows.hxx | 1
unusedcode.easy | 16 ---------
vbahelper/inc/vbahelper/vbashape.hxx | 1
vbahelper/inc/vbahelper/vbashapes.hxx | 1
vbahelper/source/vbahelper/vbacommandbarcontrol.cxx | 5 ---
vbahelper/source/vbahelper/vbacommandbarcontrol.hxx | 1
vbahelper/source/vbahelper/vbashape.cxx | 6 ---
vbahelper/source/vbahelper/vbashapes.cxx | 28 ----------------
xmloff/inc/SchXMLExport.hxx | 2 -
xmloff/source/chart/SchXMLExport.cxx | 28 ----------------
xmloff/source/chart/SchXMLPlotAreaContext.cxx | 8 ----
xmloff/source/chart/SchXMLPlotAreaContext.hxx | 2 -
21 files changed, 182 deletions(-)
New commits:
commit 9c06348b32bd799241f23b1c2d75a46cf498d015
Author: Elton Chung <elton at layerjet.com>
Date: Sun Feb 5 14:39:47 2012 +0800
Remove unused code.
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index 8d17087..c2733bd 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 81734b9..e828f74 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 74171a9..e92fa20 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 54b7f62..a680370 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 759f954..952b705 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 7844d9f..139d3d1 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 768b636..1c942d6 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 6943321..76adc99 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 d13a033..e1c9507 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 9b1ac79..f3586d2 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() {}
diff --git a/unusedcode.easy b/unusedcode.easy
index 28a91d7..6800b9e 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -137,9 +137,6 @@ ScAddInDocs::Insert(ScAddInDocs const*, unsigned short, unsigned short)
ScAddInDocs::Insert(ScDocument* const&, unsigned short&)
ScAddInDocs::Insert(ScDocument* const*, unsigned short)
ScAddInDocs::Remove(ScDocument* const&, unsigned short)
-ScCellObj::SetFormulaResultDouble(double)
-ScCellObj::SetFormulaResultString(rtl::OUString const&)
-ScCellObj::SetFormulaWithGrammar(rtl::OUString const&, rtl::OUString const&, formula::FormulaGrammar::Grammar)
ScChangeActionContent::SetNewValue(String const&, ScDocument*)
ScCompressedArray<int, unsigned char>::GetEntryCount() const
ScCompressedArray<int, unsigned short>::CopyFrom(ScCompressedArray<int, unsigned short> const&, int, int, long)
@@ -200,8 +197,6 @@ ScValidationEntries_Impl::Remove(ScValidationData* const&, unsigned short)
ScValidationEntries_Impl::Remove(unsigned short, unsigned short)
ScValueCell::ScValueCell()
ScVbaColorFormat::setColorFormat(short)
-ScVbaCommandBarControl::ScVbaCommandBarControl(com::sun::star::uno::Reference<ooo::vba::XHelperInterface> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, com::sun::star::uno::Reference<com::sun::star::container::XIndexAccess> const&, boost::shared_ptr<VbaCommandBarHelper>, com::sun::star::uno::Reference<com::sun::star::container::XIndexAccess> const&, rtl::OUString const&, int, unsigned char)
-ScVbaCommentShape::ScVbaCommentShape(com::sun::star::uno::Reference<ooo::vba::XHelperInterface> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const&, com::sun::star::uno::Reference<ooo::vba::excel::XComment> const&, com::sun::star::uno::Reference<com::sun::star::drawing::XShapes> const&, com::sun::star::uno::Reference<com::sun::star::frame::XModel> const&, int)
ScVbaFormat<ooo::vba::excel::XRange>::getXServiceInfo()
ScVbaFormat<ooo::vba::excel::XRange>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const&)
ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
@@ -209,18 +204,7 @@ ScVbaFormat<ooo::vba::excel::XStyle>::getXServiceInfo()
ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&)
ScVbaFormat<ooo::vba::excel::XStyle>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const&)
ScVbaLineFormat::calculateArrowheadSize() const
-ScVbaShape::ScVbaShape(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, com::sun::star::uno::Reference<com::sun::star::drawing::XShape> const&, com::sun::star::uno::Reference<com::sun::star::frame::XModel> const&)
-ScVbaShapes::AddShape(rtl::OUString const&, rtl::OUString const&, int, int, int, int)
-ScVbaWindows::ScVbaWindows(com::sun::star::uno::Reference<ooo::vba::XHelperInterface> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, com::sun::star::uno::Reference<com::sun::star::container::XIndexAccess> const&)
-ScVbaWorksheet::ScVbaWorksheet(com::sun::star::uno::Reference<ooo::vba::XHelperInterface> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&)
-ScXMLExportDDELinks::CellsEqual(bool, bool, String const&, double const&, bool, bool, String const&, double const&) const
-ScXMLFilterContext::SetCaseSensitive(bool)
-ScXMLFilterContext::SetUseRegularExpressions(bool)
ScaList::Insert(void*, unsigned int)
-SchXMLExport::SetProgress(int)
-SchXMLExportHelper_Impl::getCellAddress(int, int)
-SchXMLPositonAttributesHelper::getPosition() const
-SchXMLPositonAttributesHelper::getSize() const
ScrollBarBox::ScrollBarBox(Window*, ResId const&)
ScrollableWindow::MakeVisible(Rectangle const&, unsigned char)
ScrollableWindow::ScrollLines(long, long)
diff --git a/vbahelper/inc/vbahelper/vbashape.hxx b/vbahelper/inc/vbahelper/vbashape.hxx
index 693e94a..60f7776 100644
--- a/vbahelper/inc/vbahelper/vbashape.hxx
+++ b/vbahelper/inc/vbahelper/vbashape.hxx
@@ -62,7 +62,6 @@ protected:
virtual css::uno::Sequence<rtl::OUString> getServiceNames();
public:
ScVbaShape( 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< css::drawing::XShapes >& xShapes, const css::uno::Reference< css::frame::XModel >& xModel, sal_Int32 nType ) throw ( css::lang::IllegalArgumentException );
- ScVbaShape( const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::drawing::XShape >& xShape, const css::uno::Reference< css::frame::XModel >& xModel ) throw ( css::lang::IllegalArgumentException );
virtual ~ScVbaShape();
css::uno::Any getRange() { return m_aRange; };
void setRange( css::uno::Any aRange ) { m_aRange = aRange; };
diff --git a/vbahelper/inc/vbahelper/vbashapes.hxx b/vbahelper/inc/vbahelper/vbashapes.hxx
index 86e1ba3..ef35d2c 100644
--- a/vbahelper/inc/vbahelper/vbashapes.hxx
+++ b/vbahelper/inc/vbahelper/vbashapes.hxx
@@ -56,7 +56,6 @@ protected:
css::uno::Any AddEllipse( sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight, css::uno::Any aRange ) throw (css::uno::RuntimeException);
css::uno::Any AddTextboxInWriter( sal_Int32 _nOrientation, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ) throw (css::uno::RuntimeException);
rtl::OUString createName( rtl::OUString sName );
- css::uno::Any AddShape( const rtl::OUString& sService, const rtl::OUString& sName, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ) throw (css::uno::RuntimeException);
//TODO helperapi using a writer document
//css::awt::Point calculateTopLeftMargin( css::uno::Reference< ov::XHelperInterface > xDocument );
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx b/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx
index 54d8f03..563a35b 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrol.cxx
@@ -37,11 +37,6 @@ ScVbaCommandBarControl::ScVbaCommandBarControl( const css::uno::Reference< ov::X
{
}
-ScVbaCommandBarControl::ScVbaCommandBarControl( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xSettings, VbaCommandBarHelperRef pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const rtl::OUString& sResourceUrl, sal_Int32 nPosition, sal_Bool bTemporary ) throw (css::uno::RuntimeException) : CommandBarControl_BASE( xParent, xContext ), pCBarHelper( pHelper ), m_sResourceUrl( sResourceUrl ), m_xCurrentSettings( xSettings ), m_xBarSettings( xBarSettings ), m_nPosition( nPosition ), m_bTemporary( bTemporary )
-{
- m_xCurrentSettings->getByIndex( nPosition ) >>= m_aPropertyValues;
-}
-
void ScVbaCommandBarControl::ApplyChange() throw ( uno::RuntimeException )
{
uno::Reference< container::XIndexContainer > xIndexContainer( m_xCurrentSettings, uno::UNO_QUERY_THROW );
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx b/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx
index 7033c4d..f66c0c0 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx
@@ -56,7 +56,6 @@ private:
public:
ScVbaCommandBarControl( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xSettings, VbaCommandBarHelperRef pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const rtl::OUString& sResourceUrl ) throw (css::uno::RuntimeException);
- ScVbaCommandBarControl( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xSettings, VbaCommandBarHelperRef pHelper, const css::uno::Reference< css::container::XIndexAccess >& xBarSettings, const rtl::OUString& sResourceUrl, sal_Int32 nPosition, sal_Bool bTemporary ) throw (css::uno::RuntimeException);
// Attributes
virtual ::rtl::OUString SAL_CALL getCaption() throw (css::uno::RuntimeException);
diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx
index ca368e4..732d73c 100644
--- a/vbahelper/source/vbahelper/vbashape.cxx
+++ b/vbahelper/source/vbahelper/vbashape.cxx
@@ -63,12 +63,6 @@ ScVbaShape::ScVbaShape( const uno::Reference< XHelperInterface >& xParent, const
addListeners();
}
-ScVbaShape::ScVbaShape( const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< drawing::XShape >& xShape, const uno::Reference< frame::XModel >& xModel ) throw( lang::IllegalArgumentException ) : ScVbaShape_BASE( uno::Reference< XHelperInterface >(), xContext ), m_xShape( xShape ), m_xModel( xModel )
-{
- // add listener
- addListeners();
-}
-
ScVbaShape::~ScVbaShape()
{
// dtor must never ever throw
diff --git a/vbahelper/source/vbahelper/vbashapes.cxx b/vbahelper/source/vbahelper/vbashapes.cxx
index 2a2e0ef..6f4cccc 100644
--- a/vbahelper/source/vbahelper/vbashapes.cxx
+++ b/vbahelper/source/vbahelper/vbashapes.cxx
@@ -416,34 +416,6 @@ ScVbaShapes::AddTextboxInWriter( sal_Int32 /*_nOrientation*/, sal_Int32 _nLeft,
return uno::makeAny( uno::Reference< msforms::XShape > ( pScVbaShape ) );
}
-uno::Any
-ScVbaShapes::AddShape( const rtl::OUString& sService, const rtl::OUString& sName, sal_Int32 _nLeft, sal_Int32 _nTop, sal_Int32 _nWidth, sal_Int32 _nHeight ) throw (uno::RuntimeException)
-{
- sal_Int32 nXPos = Millimeter::getInHundredthsOfOneMillimeter( _nLeft );
- sal_Int32 nYPos = Millimeter::getInHundredthsOfOneMillimeter( _nTop );
- sal_Int32 nWidth = Millimeter::getInHundredthsOfOneMillimeter( _nWidth );
- sal_Int32 nHeight = Millimeter::getInHundredthsOfOneMillimeter( _nHeight );
-
- uno::Reference< drawing::XShape > xShape( createShape( sService ), uno::UNO_QUERY_THROW );
- m_xShapes->add( xShape );
-
- setDefaultShapeProperties(xShape);
- setShape_NameProperty( xShape, sName );
-
- awt::Point aMovePositionIfRange( 0, 0 );
- awt::Point position;
- position.X = nXPos - aMovePositionIfRange.X;
- position.Y = nYPos - aMovePositionIfRange.Y;
- xShape->setPosition(position);
-
- awt::Size size;
- size.Height = nHeight;
- size.Width = nWidth;
- xShape->setSize(size);
-
- ScVbaShape *pScVbaShape = new ScVbaShape( getParent(), mxContext, xShape, m_xShapes, m_xModel, ScVbaShape::getType( xShape ) );
- return uno::makeAny( uno::Reference< msforms::XShape > ( pScVbaShape ) );
-}
void
ScVbaShapes::setDefaultShapeProperties( uno::Reference< drawing::XShape > xShape ) throw (uno::RuntimeException)
{
diff --git a/xmloff/inc/SchXMLExport.hxx b/xmloff/inc/SchXMLExport.hxx
index f5034b0..142667b 100644
--- a/xmloff/inc/SchXMLExport.hxx
+++ b/xmloff/inc/SchXMLExport.hxx
@@ -80,8 +80,6 @@ public:
sal_uInt16 nExportFlags = EXPORT_ALL );
virtual ~SchXMLExport();
- void SetProgress( sal_Int32 nPercentage );
-
UniReference< XMLPropertySetMapper > GetPropertySetMapper() const;
// XServiceInfo ( : SvXMLExport )
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 7d84fc5..f412ab0 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -3533,27 +3533,6 @@ void SchXMLExportHelper_Impl::exportDataPoints(
}
}
-
-void SchXMLExportHelper_Impl::getCellAddress( sal_Int32 nCol, sal_Int32 nRow )
-{
- msStringBuffer.append( (sal_Unicode)'.' );
- if( nCol < 26 )
- msStringBuffer.append( (sal_Unicode)('A' + nCol) );
- else if( nCol < 702 )
- {
- msStringBuffer.append( (sal_Unicode)('A' + nCol / 26 - 1 ));
- msStringBuffer.append( (sal_Unicode)('A' + nCol % 26) );
- }
- else
- {
- msStringBuffer.append( (sal_Unicode)('A' + nCol / 702 - 1 ));
- msStringBuffer.append( (sal_Unicode)('A' + (nCol % 702) / 26 ));
- msStringBuffer.append( (sal_Unicode)('A' + nCol % 26) );
- }
-
- msStringBuffer.append( nRow + (sal_Int32)1 );
-}
-
void SchXMLExportHelper_Impl::addPosition( const awt::Point & rPosition )
{
mrExport.GetMM100UnitConverter().convertMeasureToXML(
@@ -3757,13 +3736,6 @@ void SchXMLExport::_ExportContent()
}
}
-void SchXMLExport::SetProgress( sal_Int32 nPercentage )
-{
- // set progress view
- if( mxStatusIndicator.is())
- mxStatusIndicator->setValue( nPercentage );
-}
-
UniReference< XMLPropertySetMapper > SchXMLExport::GetPropertySetMapper() const
{
return maExportHelper.m_pImpl->GetPropertySetMapper();
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
index 5f8eae4..5df79c9 100644
--- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx
+++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
@@ -749,14 +749,6 @@ bool SchXMLPositonAttributesHelper::isAutomatic() const
{
return m_bAutoSize || m_bAutoPosition;
}
-awt::Point SchXMLPositonAttributesHelper::getPosition() const
-{
- return m_aPosition;
-}
-awt::Size SchXMLPositonAttributesHelper::getSize() const
-{
- return m_aSize;
-}
awt::Rectangle SchXMLPositonAttributesHelper::getRectangle() const
{
return awt::Rectangle( m_aPosition.X, m_aPosition.Y, m_aSize.Width, m_aSize.Height );
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.hxx b/xmloff/source/chart/SchXMLPlotAreaContext.hxx
index 0f71542..92a8b48 100644
--- a/xmloff/source/chart/SchXMLPlotAreaContext.hxx
+++ b/xmloff/source/chart/SchXMLPlotAreaContext.hxx
@@ -86,8 +86,6 @@ public:
private:
bool hasSize() const;
bool hasPosition() const;
- ::com::sun::star::awt::Size getSize() const;
- ::com::sun::star::awt::Point getPosition() const;
SvXMLImport& m_rImport;
More information about the Libreoffice-commits
mailing list