summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/basobj2.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-05-19 07:01:37 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-05-19 07:01:37 +0000
commitfa57ea63d378b827f051871c0134e48392b406b8 (patch)
tree2b26ce4b42341bf9a2e2777449d43af393690863 /basctl/source/basicide/basobj2.cxx
parent83f5fda04156c2ba456370e3875ef4f0f110970b (diff)
INTEGRATION: CWS scriptingf4 (1.24.16); FILE MERGED
2004/03/30 17:24:07 dfoster 1.24.16.2: RESYNC: (1.24-1.25); FILE MERGED 2004/03/24 13:11:57 dfoster 1.24.16.1: #i26923# Implmentation of the Script Organizer spec.
Diffstat (limited to 'basctl/source/basicide/basobj2.cxx')
-rw-r--r--basctl/source/basicide/basobj2.cxx17
1 files changed, 12 insertions, 5 deletions
diff --git a/basctl/source/basicide/basobj2.cxx b/basctl/source/basicide/basobj2.cxx
index 6a371fef7..b6b3a1755 100644
--- a/basctl/source/basicide/basobj2.cxx
+++ b/basctl/source/basicide/basobj2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: basobj2.cxx,v $
*
- * $Revision: 1.25 $
+ * $Revision: 1.26 $
*
- * last change: $Author: obo $ $Date: 2004-03-19 13:24:09 $
+ * last change: $Author: rt $ $Date: 2004-05-19 08:01:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -102,6 +102,11 @@ extern "C" {
return pScriptURL;
}
+ void basicide_macro_organizer( INT16 nTabId )
+ {
+ OSL_TRACE("in basicide_macro_organizer");
+ BasicIDE::Organize( nTabId );
+ }
}
//----------------------------------------------------------------------------
@@ -116,7 +121,7 @@ SfxMacro* BasicIDE::CreateMacro()
MacroChooser* pChooser = new MacroChooser( pParent, TRUE );
Window* pOldModalDialogParent = Application::GetDefDialogParent();
Application::SetDefDialogParent( pChooser );
-// pChooser->SetMode( MACROCHOOSER_RECORDING );
+ //pChooser->SetMode( MACROCHOOSER_RECORDING );
short nRetValue = pChooser->Execute();
Application::SetDefDialogParent( pOldModalDialogParent );
@@ -130,10 +135,11 @@ SfxMacro* BasicIDE::CreateMacro()
//----------------------------------------------------------------------------
-void BasicIDE::Organize()
+void BasicIDE::Organize( INT16 tabId )
{
+ BasicIDEDLL::Init();
Window* pParent = Application::GetDefDialogParent();
- OrganizeDialog* pDlg = new OrganizeDialog( pParent );
+ OrganizeDialog* pDlg = new OrganizeDialog( pParent, tabId );
if ( IDE_DLL()->GetShell() )
{
IDEBaseWindow* pWin = IDE_DLL()->GetShell()->GetCurWindow();
@@ -631,6 +637,7 @@ void BasicIDE::UpdateModule( SfxObjectShell* pShell, const String& rLibName, con
MacroChooser* pChooser = new MacroChooser( NULL, TRUE );
if ( bChooseOnly || !SvtModuleOptions().IsBasicIDE() )
pChooser->SetMode( MACROCHOOSER_CHOOSEONLY );
+
if ( !bChooseOnly && !bExecute )
// Hack!