Kaydet (Commit) 69cfcd75 authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS odbmacros2 (1.27.2); FILE MERGED

2008/02/04 13:15:28 fs 1.27.2.4: RESYNC: (1.27-1.28); FILE MERGED
2007/12/19 14:51:24 fs 1.27.2.3: #i49133# BasicManager::Insert/set/ResetGlobalUNOConstant superseded by SetGlobalUNOConstant
2007/12/18 21:15:35 fs 1.27.2.2: #i49133# m_xThisDocument is superfluous, it is always the same as SfxObjectShell's WorkingDocument (which has just been renamed to CurrentComponent)
2007/12/12 14:42:09 fs 1.27.2.1: #i49133# use SfxObjectShell::GetWorkingDocument as ThisComponent, not SfxObjectShell::Current
üst 97a50ab4
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: appdata.cxx,v $ * $RCSfile: appdata.cxx,v $
* *
* $Revision: 1.28 $ * $Revision: 1.29 $
* *
* last change: $Author: obo $ $Date: 2008-01-04 15:09:12 $ * last change: $Author: kz $ $Date: 2008-03-06 19:49:18 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -96,6 +96,7 @@ using ::basic::BasicManagerRepository; ...@@ -96,6 +96,7 @@ using ::basic::BasicManagerRepository;
using ::basic::BasicManagerCreationListener; using ::basic::BasicManagerCreationListener;
using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Reference;
using ::com::sun::star::frame::XModel; using ::com::sun::star::frame::XModel;
using ::com::sun::star::uno::XInterface;
class SfxBasicManagerCreationListener : public ::basic::BasicManagerCreationListener class SfxBasicManagerCreationListener : public ::basic::BasicManagerCreationListener
{ {
...@@ -135,7 +136,6 @@ SfxAppData_Impl::SfxAppData_Impl( SfxApplication* pApp ) : ...@@ -135,7 +136,6 @@ SfxAppData_Impl::SfxAppData_Impl( SfxApplication* pApp ) :
pSaveOptions( 0 ), pSaveOptions( 0 ),
pUndoOptions( 0 ), pUndoOptions( 0 ),
pHelpOptions( 0 ), pHelpOptions( 0 ),
m_xThisDocument( ),
pProgress(0), pProgress(0),
pTemplateCommon( 0 ), pTemplateCommon( 0 ),
nDocModalMode(0), nDocModalMode(0),
...@@ -212,10 +212,6 @@ void SfxAppData_Impl::OnApplicationBasicManagerCreated( BasicManager& _rBasicMan ...@@ -212,10 +212,6 @@ void SfxAppData_Impl::OnApplicationBasicManagerCreated( BasicManager& _rBasicMan
// global constants, additionally to the ones already added by createApplicationBasicManager: // global constants, additionally to the ones already added by createApplicationBasicManager:
// ThisComponent // ThisComponent
Reference< XModel > xCurrentDoc; Reference< XInterface > xCurrentComponent = SfxObjectShell::GetCurrentComponent();
SfxObjectShell* pDoc = SfxObjectShell::Current(); _rBasicManager.SetGlobalUNOConstant( "ThisComponent", makeAny( xCurrentComponent ) );
if ( pDoc )
xCurrentDoc = pDoc->GetModel();
_rBasicManager.InsertGlobalUNOConstant( "ThisComponent", makeAny( xCurrentDoc ) );
m_xThisDocument = xCurrentDoc;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment