diff options
author | Santiago Martinez <smvarela@gmail.com> | 2012-03-08 11:14:41 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2012-03-08 11:17:08 +0530 |
commit | fdd3427a584a3f14ecb0d00557417434db04df99 (patch) | |
tree | ca56c8d19e7d3705e4a442e7edccdb2e9e3cc571 /vbahelper/source | |
parent | b43fe402154fae9bf1e2201d9b1a049cbcaf63ef (diff) |
Removed unused code.
Diffstat (limited to 'vbahelper/source')
-rw-r--r-- | vbahelper/source/vbahelper/vbahelper.cxx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx index f99077dbf00f..03525bafbfef 100644 --- a/vbahelper/source/vbahelper/vbahelper.cxx +++ b/vbahelper/source/vbahelper/vbahelper.cxx @@ -97,13 +97,6 @@ namespace vba namespace { const double factor = 2540.0 / 72.0; } -css::uno::Reference< css::uno::XInterface > createVBAUnoAPIService( SfxObjectShell* pShell, const sal_Char* _pAsciiName ) throw (css::uno::RuntimeException) -{ - OSL_PRECOND( pShell, "createVBAUnoAPIService: no shell!" ); - ::rtl::OUString sVarName( ::rtl::OUString::createFromAscii( _pAsciiName ) ); - return getVBAServiceFactory( pShell )->createInstance( sVarName ); -} - // helper method to determine if the view ( calc ) is in print-preview mode bool isInPrintPreview( SfxViewFrame* pView ) { @@ -501,11 +494,6 @@ sal_Int32 extractIntFromAny( const uno::Any& rAny ) throw (uno::RuntimeException throw uno::RuntimeException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Invalid type, cannot convert to integer." ) ), 0 ); } -sal_Int32 extractIntFromAny( const uno::Any& rAny, sal_Int32 nDefault ) throw (uno::RuntimeException) -{ - return rAny.hasValue() ? extractIntFromAny( rAny ) : nDefault; -} - bool extractBoolFromAny( const uno::Any& rAny ) throw (uno::RuntimeException) { switch( rAny.getValueType().getTypeClass() ) @@ -527,11 +515,6 @@ bool extractBoolFromAny( const uno::Any& rAny ) throw (uno::RuntimeException) throw uno::RuntimeException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Invalid type, cannot convert to boolean." ) ), 0 ); } -bool extractBoolFromAny( const uno::Any& rAny, bool bDefault ) throw (uno::RuntimeException) -{ - return rAny.hasValue() ? extractBoolFromAny( rAny ) : bDefault; -} - ::rtl::OUString extractStringFromAny( const uno::Any& rAny, bool bUppercaseBool ) throw (uno::RuntimeException) { switch( rAny.getValueType().getTypeClass() ) @@ -1179,29 +1162,15 @@ Millimeter::Millimeter():m_nMillimeter(0) {} Millimeter::Millimeter(double mm):m_nMillimeter(mm) {} -void Millimeter::set(double mm) { m_nMillimeter = mm; } void Millimeter::setInPoints(double points) { m_nMillimeter = points * factor / 100.0; } -void Millimeter::setInHundredthsOfOneMillimeter(double hmm) -{ - m_nMillimeter = hmm / 100; -} - -double Millimeter::get() -{ - return m_nMillimeter; -} double Millimeter::getInHundredthsOfOneMillimeter() { return m_nMillimeter * 100; } -double Millimeter::getInPoints() -{ - return m_nMillimeter / factor * 100.0; -} sal_Int32 Millimeter::getInHundredthsOfOneMillimeter(double points) { |