summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Power <npower@openoffice.org>2009-09-23 13:05:45 +0000
committerNoel Power <npower@openoffice.org>2009-09-23 13:05:45 +0000
commiteb5d803c3bc424026047636654188bdebfa45938 (patch)
tree7690f02fb82ae876a1e4ca8e45b8388d76c86a50 /sfx2
parentb0465391ff56c5a87b5db2147eff358ebf8d73ed (diff)
trim unwanted patches that crept in while importing stuff from ooo-build
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objxtor.cxx27
1 files changed, 0 insertions, 27 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index 5b1c6bdd3106..660856f654ba 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -136,33 +136,6 @@ DBG_NAME(SfxObjectShell)
extern svtools::AsynchronLink* pPendingCloser;
static WeakReference< XInterface > s_xCurrentComponent;
-void lcl_UpdateAppBasicDocVars( const Reference< XInterface >& _rxComponent, bool bClear = false )
-{
- BasicManager* pAppMgr = SFX_APP()->GetBasicManager();
- if ( pAppMgr )
- {
- uno::Reference< beans::XPropertySet > xProps( _rxComponent, uno::UNO_QUERY );
- if ( xProps.is() )
- {
- try
- {
- beans::PropertyValue aProp;
- xProps->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ThisVBADocObj") ) ) >>= aProp;
- rtl::OString sTmp( rtl::OUStringToOString( aProp.Name, RTL_TEXTENCODING_UTF8 ) );
- const char* pAscii = sTmp.getStr();
- if ( bClear )
- pAppMgr->SetGlobalUNOConstant( pAscii, uno::makeAny( uno::Reference< uno::XInterface >() ) );
- else
- pAppMgr->SetGlobalUNOConstant( pAscii, aProp.Value );
-
- }
- catch( uno::Exception& e )
- {
- }
- }
- }
-}
-
//=========================================================================