summaryrefslogtreecommitdiff
path: root/vbahelper/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-04-08 13:12:03 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-04-08 13:13:31 +0200
commit1ea28ebcf0a7719fd2ba18054c5dfbb1da229348 (patch)
treefb565f1423387535374a38a7bf7b55130dca56d5 /vbahelper/source
parent5f80687188db3a29fb0c3a5fe587aeeb3e13dccd (diff)
Dump MarkManager::dumpFieldmarks + extractIntFromAny from vbahelper
Diffstat (limited to 'vbahelper/source')
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx17
1 files changed, 0 insertions, 17 deletions
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx
index a8cfb1a6503e..b91ef85e126d 100644
--- a/vbahelper/source/vbahelper/vbahelper.cxx
+++ b/vbahelper/source/vbahelper/vbahelper.cxx
@@ -476,23 +476,6 @@ void PrintOutHelper( SfxViewShell* pViewShell, const uno::Any& From, const uno::
dispatchExecute( pViewShell, SID_VIEWSHELL1 );
}
-sal_Int32 extractIntFromAny( const uno::Any& rAny ) throw (uno::RuntimeException)
-{
- switch( rAny.getValueType().getTypeClass() )
- {
- case uno::TypeClass_FLOAT:
- return static_cast< sal_Int32 >( rAny.get< float >() );
- case uno::TypeClass_DOUBLE:
- return static_cast< sal_Int32 >( rAny.get< double >() );
- case uno::TypeClass_BYTE:
- case uno::TypeClass_SHORT:
- case uno::TypeClass_LONG:
- return rAny.get< sal_Int32 >();
- default:;
- }
- throw uno::RuntimeException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Invalid type, cannot convert to integer." ) ), 0 );
-}
-
bool extractBoolFromAny( const uno::Any& rAny ) throw (uno::RuntimeException)
{
switch( rAny.getValueType().getTypeClass() )