summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Benisch <tbe@openoffice.org>2001-09-25 14:28:34 +0000
committerThomas Benisch <tbe@openoffice.org>2001-09-25 14:28:34 +0000
commit3f264887f38675d62b882e0f9dab83d20005679c (patch)
tree8ed503d0238566356de352bbfe01d32a1ff60f83
parentc5509cb6df096db5deb007088f413c81ce40a2ef (diff)
#92409# remove macro description from BasicIDE MacroChooser
-rw-r--r--basctl/source/basicide/macrodlg.cxx71
-rw-r--r--basctl/source/basicide/macrodlg.hxx20
-rw-r--r--basctl/source/basicide/macrodlg.src10
3 files changed, 55 insertions, 46 deletions
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
index a32d6fdec795..228143d185a0 100644
--- a/basctl/source/basicide/macrodlg.cxx
+++ b/basctl/source/basicide/macrodlg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: macrodlg.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: tbe $ $Date: 2001-09-25 09:14:46 $
+ * last change: $Author: tbe $ $Date: 2001-09-25 15:28:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -107,16 +107,16 @@ MacroChooser::MacroChooser( Window* pParnt, BOOL bScanBasics ) :
aEditButton( this, IDEResId( RID_PB_EDIT ) ),
aNewDelButton( this, IDEResId( RID_PB_DEL ) ),
aOrganizeButton( this, IDEResId( RID_PB_ORG ) ),
- aHelpButton( this, IDEResId( RID_PB_HELP ) ),
- aDescrTxt( this, IDEResId( RID_TXT_DESCRIPTION ) ),
- aDescrEdit( this, IDEResId( RID_ML_DESCRIPTION ) )
+ aHelpButton( this, IDEResId( RID_PB_HELP ) )
+ //aDescrTxt( this, IDEResId( RID_TXT_DESCRIPTION ) ),
+ //aDescrEdit( this, IDEResId( RID_ML_DESCRIPTION ) )
{
FreeResource();
nMode = MACROCHOOSER_ALL;
bNewDelIsDel = TRUE;
bCancelCloseIsCancel = TRUE;
- bAcceptDescription = TRUE;
+ //bAcceptDescription = TRUE;
// Der Sfx fragt den BasicManager nicht, ob modified
// => Speichern anschmeissen, wenn Aenderung, aber kein Sprung in
@@ -143,11 +143,11 @@ MacroChooser::MacroChooser( Window* pParnt, BOOL bScanBasics ) :
aBasicBox.SetMode( BROWSEMODE_MODULES /* | BROWSEMODE_SUBS */ );
aBasicBox.SetWindowBits( WB_HASLINES );
- aDescrEdit.SetGetFocusHdl( LINK( this, MacroChooser, EditGotFocusHdl ) );
- aDescrEdit.SetLoseFocusHdl( LINK( this, MacroChooser, EditLoseFocusHdl ) );
- aDescrEdit.SetModifyHdl( LINK( this, MacroChooser, DescriptionModifyHdl ) );
- aDescrEdit.SetAccHdl( LINK( this, MacroChooser, EditAccHdl ) );
- aDescrEdit.GetAccelerator().InsertItem( 1, KeyCode( KEY_ESCAPE ) );
+ //aDescrEdit.SetGetFocusHdl( LINK( this, MacroChooser, EditGotFocusHdl ) );
+ //aDescrEdit.SetLoseFocusHdl( LINK( this, MacroChooser, EditLoseFocusHdl ) );
+ //aDescrEdit.SetModifyHdl( LINK( this, MacroChooser, DescriptionModifyHdl ) );
+ //aDescrEdit.SetAccHdl( LINK( this, MacroChooser, EditAccHdl ) );
+ //aDescrEdit.GetAccelerator().InsertItem( 1, KeyCode( KEY_ESCAPE ) );
BasicIDEShell* pIDEShell = IDE_DLL()->GetShell();
SfxViewFrame* pViewFrame = pIDEShell ? pIDEShell->GetViewFrame() : NULL;
@@ -211,47 +211,51 @@ void MacroChooser::RestoreMacroDescription()
}
}
+/*
IMPL_LINK_INLINE_START( MacroChooser, EditGotFocusHdl, MultiLineEdit *, pEdit )
{
bAcceptDescription = TRUE;
return 0;
}
IMPL_LINK_INLINE_END( MacroChooser, EditGotFocusHdl, MultiLineEdit *, pEdit )
+*/
+/*
IMPL_LINK( MacroChooser, EditLoseFocusHdl, MultiLineEdit *, pEdit )
{
if ( bAcceptDescription )
{
SbxVariable* pVar = GetMacro();
-/*
- if ( !pVar )
- {
- SvLBoxEntry* pCurEntry = aBasicBox.GetCurEntry();
- BYTE nType = pCurEntry ? ((BasicEntry*)pCurEntry->GetUserData())->GetType() : 0;
- if ( ( nType == OBJTYPE_OBJECT ) || ( nType == OBJTYPE_MODULE ) ||
- ( nType == OBJTYPE_METHOD ) || ( nType == OBJTYPE_LIB ) ||
- ( nType == OBJTYPE_SUBOBJ ) )
- {
- pVar = aBasicBox.FindVariable( pCurEntry );
- }
- }
-*/
+ //if ( !pVar )
+ //{
+ // SvLBoxEntry* pCurEntry = aBasicBox.GetCurEntry();
+ // BYTE nType = pCurEntry ? ((BasicEntry*)pCurEntry->GetUserData())->GetType() : 0;
+ // if ( ( nType == OBJTYPE_OBJECT ) || ( nType == OBJTYPE_MODULE ) ||
+ // ( nType == OBJTYPE_METHOD ) || ( nType == OBJTYPE_LIB ) ||
+ // ( nType == OBJTYPE_SUBOBJ ) )
+ // {
+ // pVar = aBasicBox.FindVariable( pCurEntry );
+ // }
+ //}
+
if ( pVar )
SetInfo( pVar );
}
return 0;
}
+*/
+/*
IMPL_LINK_INLINE_START( MacroChooser, DescriptionModifyHdl, MultiLineEdit *, pEdit )
{
CheckCancelClose();
return 0;
}
IMPL_LINK_INLINE_END( MacroChooser, DescriptionModifyHdl, MultiLineEdit *, pEdit )
+*/
-
-
+/*
IMPL_LINK( MacroChooser, EditAccHdl, Accelerator *, pAcc )
{
if ( pAcc->GetCurKeyCode().GetCode() == KEY_ESCAPE )
@@ -263,6 +267,7 @@ IMPL_LINK( MacroChooser, EditAccHdl, Accelerator *, pAcc )
return 0;
}
+*/
short __EXPORT MacroChooser::Execute()
{
@@ -745,7 +750,7 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton )
SbMethod* pMethod = CreateMacro();
if ( pMethod )
{
- SetInfo( pMethod );
+ //SetInfo( pMethod );
aInfoItem.SetMethod( pMethod->GetName() );
aInfoItem.SetModule( pMethod->GetModule()->GetName() );
aInfoItem.SetLib( pMethod->GetModule()->GetParent()->GetName() );
@@ -831,7 +836,7 @@ void MacroChooser::UpdateFields()
if ( pMacroEntry )
aMacroNameEdit.SetText( aMacroBox.GetEntryText( pMacroEntry ) );
- aDescrEdit.SetText( aEmptyStr );
+ //aDescrEdit.SetText( aEmptyStr );
// DescrEdit immer enablen:
// Entweder Text fuer aktuelles Macro oder fuer Aufzuzeichnendes
// aDescrEdit.Disable();
@@ -841,7 +846,7 @@ void MacroChooser::UpdateFields()
if ( pVar )
{
// aDescrEdit.Enable();
- aDescrEdit.SetText( GetInfo( pVar ) );
+ //aDescrEdit.SetText( GetInfo( pVar ) );
}
}
@@ -853,18 +858,19 @@ void MacroChooser::SetMode( USHORT nM )
aRunButton.SetText( String( IDEResId( RID_STR_RUN ) ) );
EnableButton( aNewDelButton, TRUE );
EnableButton( aOrganizeButton, TRUE );
- aDescrEdit.Enable();
+ //aDescrEdit.Enable();
}
else if ( nMode == MACROCHOOSER_CHOOSEONLY )
{
aRunButton.SetText( String( IDEResId( RID_STR_CHOOSE ) ) );
EnableButton( aNewDelButton, FALSE );
EnableButton( aOrganizeButton, FALSE );
- aDescrEdit.Disable();
+ //aDescrEdit.Disable();
}
CheckButtons();
}
+/*
void MacroChooser::SetInfo( SbxVariable* pVar )
{
SbxInfoRef xInfo = pVar->GetInfo();
@@ -873,7 +879,7 @@ void MacroChooser::SetInfo( SbxVariable* pVar )
xInfo = new SbxInfo;
pVar->SetInfo( xInfo );
}
- xInfo->SetComment( aDescrEdit.GetText() );
+ //xInfo->SetComment( aDescrEdit.GetText() );
pVar->SetModified( TRUE );
// Eine Method macht kein Modify auf den Parent
StarBASIC* pBasic = BasicIDE::FindBasic( pVar );
@@ -883,6 +889,7 @@ void MacroChooser::SetInfo( SbxVariable* pVar )
BasicIDE::MarkDocShellModified( pBasic );
}
}
+*/
String MacroChooser::GetInfo( SbxVariable* pVar )
{
diff --git a/basctl/source/basicide/macrodlg.hxx b/basctl/source/basicide/macrodlg.hxx
index 9c45ecfb5294..e4bf94271368 100644
--- a/basctl/source/basicide/macrodlg.hxx
+++ b/basctl/source/basicide/macrodlg.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: macrodlg.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: mh $ $Date: 2000-09-29 11:02:37 $
+ * last change: $Author: tbe $ $Date: 2001-09-25 15:28:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -111,12 +111,12 @@ private:
PushButton aOrganizeButton;
HelpButton aHelpButton;
- FixedText aDescrTxt;
- ExtendedMultiLineEdit aDescrEdit;
+ //FixedText aDescrTxt;
+ //ExtendedMultiLineEdit aDescrEdit;
BOOL bNewDelIsDel;
BOOL bCancelCloseIsCancel;
- BOOL bAcceptDescription;
+ //BOOL bAcceptDescription;
BOOL bForceStoreBasic;
USHORT nMode;
@@ -125,7 +125,7 @@ private:
DECL_LINK( MacroDoubleClickHdl, SvTreeListBox * );
DECL_LINK( BasicSelectHdl, SvTreeListBox * );
DECL_LINK( EditModifyHdl, Edit * );
- DECL_LINK( DescriptionModifyHdl, MultiLineEdit * );
+ //DECL_LINK( DescriptionModifyHdl, MultiLineEdit * );
DECL_LINK( ButtonHdl, Button * );
void CheckButtons();
@@ -135,12 +135,12 @@ private:
void EnableButton( Button& rButton, BOOL bEnable );
void DeleteMacro();
SbMethod* CreateMacro();
- DECL_LINK( EditGotFocusHdl, MultiLineEdit * );
- DECL_LINK( EditLoseFocusHdl, MultiLineEdit * );
- DECL_LINK( EditAccHdl, Accelerator * );
+ //DECL_LINK( EditGotFocusHdl, MultiLineEdit * );
+ //DECL_LINK( EditLoseFocusHdl, MultiLineEdit * );
+ //DECL_LINK( EditAccHdl, Accelerator * );
void CheckCancelClose();
- void SetInfo( SbxVariable* pVar );
+ //void SetInfo( SbxVariable* pVar );
String GetInfo( SbxVariable* pVar );
void StoreMacroDescription();
diff --git a/basctl/source/basicide/macrodlg.src b/basctl/source/basicide/macrodlg.src
index cff127ce3b8d..23107964bd77 100644
--- a/basctl/source/basicide/macrodlg.src
+++ b/basctl/source/basicide/macrodlg.src
@@ -2,9 +2,9 @@
*
* $RCSfile: macrodlg.src,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: kz $ $Date: 2001-07-14 00:10:30 $
+ * last change: $Author: tbe $ $Date: 2001-09-25 15:28:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -89,7 +89,8 @@ ModalDialog RID_MACROCHOOSER
HelpID = HID_BASICIDE_MACROS ;
Border = TRUE ;
Pos = MAP_APPFONT ( 6 , 31 ) ;
- Size = MAP_APPFONT ( 100 , 80 ) ;
+ //Size = MAP_APPFONT ( 100 , 80 ) ;
+ Size = MAP_APPFONT ( 100 , 128 ) ;
TabStop = TRUE ;
};
Control RID_CTRL_LIB
@@ -97,7 +98,8 @@ ModalDialog RID_MACROCHOOSER
HelpID = HID_BASICIDE_LIBS ;
Border = TRUE ;
Pos = MAP_APPFONT ( 112 , 16 ) ;
- Size = MAP_APPFONT ( 110 , 95 ) ;
+ //Size = MAP_APPFONT ( 110 , 95 ) ;
+ Size = MAP_APPFONT ( 110 , 143 ) ;
TabStop = TRUE ;
};
FixedText RID_TXT_MACRONAME