2010-10-27 12:45:03 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-12 17:02:47 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2014-04-18 18:32:22 +02:00
|
|
|
#ifndef INCLUDED_BASCTL_SOURCE_BASICIDE_MODULDLG_HXX
|
|
|
|
#define INCLUDED_BASCTL_SOURCE_BASICIDE_MODULDLG_HXX
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
#include <bastype2.hxx>
|
2014-01-03 14:38:01 +00:00
|
|
|
#include <svtools/svtabbx.hxx>
|
|
|
|
#include <vcl/layout.hxx>
|
|
|
|
#include <vcl/lstbox.hxx>
|
|
|
|
#include <vcl/tabctrl.hxx>
|
2000-09-29 10:02:42 +00:00
|
|
|
#include <vcl/tabdlg.hxx>
|
|
|
|
#include <vcl/tabpage.hxx>
|
2013-11-11 21:38:29 -06:00
|
|
|
#include <com/sun/star/task/XInteractionHandler.hpp>
|
2000-09-29 10:02:42 +00:00
|
|
|
|
Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...
Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-25 12:43:27 +02:00
|
|
|
class SvxPasswordDialog;
|
|
|
|
|
|
|
|
namespace basctl
|
|
|
|
{
|
|
|
|
|
2012-09-02 16:21:08 +02:00
|
|
|
namespace ObjectMode
|
2011-12-10 17:35:13 -05:00
|
|
|
{
|
2012-09-02 16:21:08 +02:00
|
|
|
enum Mode
|
|
|
|
{
|
|
|
|
Library = 1,
|
|
|
|
Module = 2,
|
|
|
|
Dialog = 3,
|
|
|
|
Method = 4,
|
|
|
|
};
|
|
|
|
}
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
class NewObjectDialog : public ModalDialog
|
|
|
|
{
|
|
|
|
private:
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<Edit> m_pEdit;
|
|
|
|
VclPtr<OKButton> m_pOKButton;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2012-03-01 18:00:32 +01:00
|
|
|
DECL_LINK(OkButtonHandler, void *);
|
2000-09-29 10:02:42 +00:00
|
|
|
public:
|
2014-09-23 11:20:40 +02:00
|
|
|
NewObjectDialog (vcl::Window* pParent, ObjectMode::Mode, bool bCheckName = false);
|
2015-03-09 14:29:30 +02:00
|
|
|
virtual ~NewObjectDialog();
|
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2013-12-31 21:06:14 +00:00
|
|
|
OUString GetObjectName() const { return m_pEdit->GetText(); }
|
|
|
|
void SetObjectName( const OUString& rName )
|
|
|
|
{
|
|
|
|
m_pEdit->SetText( rName );
|
|
|
|
m_pEdit->SetSelection(Selection( 0, rName.getLength()));
|
|
|
|
}
|
2000-09-29 10:02:42 +00:00
|
|
|
};
|
|
|
|
|
2011-11-16 14:53:38 +00:00
|
|
|
class GotoLineDialog : public ModalDialog
|
|
|
|
{
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<Edit> m_pEdit;
|
|
|
|
VclPtr<OKButton> m_pOKButton;
|
2012-03-01 18:00:32 +01:00
|
|
|
DECL_LINK(OkButtonHandler, void *);
|
2011-11-16 14:53:38 +00:00
|
|
|
public:
|
2015-05-18 16:42:39 +01:00
|
|
|
explicit GotoLineDialog(vcl::Window * pParent);
|
2015-03-09 14:29:30 +02:00
|
|
|
virtual ~GotoLineDialog();
|
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2013-12-31 20:28:16 +00:00
|
|
|
sal_Int32 GetLineNumber() const;
|
2011-11-16 14:53:38 +00:00
|
|
|
};
|
|
|
|
|
2006-04-07 07:44:49 +00:00
|
|
|
class ExportDialog : public ModalDialog
|
|
|
|
{
|
|
|
|
private:
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<RadioButton> m_pExportAsPackageButton;
|
|
|
|
VclPtr<OKButton> m_pOKButton;
|
2006-04-07 07:44:49 +00:00
|
|
|
|
2012-08-07 08:36:40 +02:00
|
|
|
bool mbExportAsPackage;
|
2006-04-07 07:44:49 +00:00
|
|
|
|
2012-03-01 18:00:32 +01:00
|
|
|
DECL_LINK(OkButtonHandler, void *);
|
2006-04-07 07:44:49 +00:00
|
|
|
|
|
|
|
public:
|
2015-05-18 16:42:39 +01:00
|
|
|
explicit ExportDialog( vcl::Window * pParent );
|
2015-03-09 14:29:30 +02:00
|
|
|
virtual ~ExportDialog();
|
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2006-04-07 07:44:49 +00:00
|
|
|
|
2014-01-01 18:23:45 +00:00
|
|
|
bool isExportAsPackage () const { return mbExportAsPackage; }
|
2006-04-07 07:44:49 +00:00
|
|
|
};
|
|
|
|
|
2000-09-29 10:02:42 +00:00
|
|
|
|
Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...
Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-25 12:43:27 +02:00
|
|
|
class ExtTreeListBox : public TreeListBox
|
2000-09-29 10:02:42 +00:00
|
|
|
{
|
|
|
|
protected:
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual bool EditingEntry( SvTreeListEntry* pEntry, Selection& rSel ) SAL_OVERRIDE;
|
|
|
|
virtual bool EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewText ) SAL_OVERRIDE;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual DragDropMode NotifyStartDrag( TransferDataContainer& rData, SvTreeListEntry* pEntry ) SAL_OVERRIDE;
|
|
|
|
virtual bool NotifyAcceptDrop( SvTreeListEntry* pEntry ) SAL_OVERRIDE;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2014-04-07 17:04:46 +01:00
|
|
|
virtual TriState NotifyMoving( SvTreeListEntry* pTarget, SvTreeListEntry* pEntry,
|
2014-03-27 18:12:18 +01:00
|
|
|
SvTreeListEntry*& rpNewParent, sal_uLong& rNewChildPos ) SAL_OVERRIDE;
|
2014-04-07 17:04:46 +01:00
|
|
|
virtual TriState NotifyCopying( SvTreeListEntry* pTarget, SvTreeListEntry* pEntry,
|
2014-03-27 18:12:18 +01:00
|
|
|
SvTreeListEntry*& rpNewParent, sal_uLong& rNewChildPos ) SAL_OVERRIDE;
|
2014-04-07 17:04:46 +01:00
|
|
|
TriState NotifyCopyingMoving( SvTreeListEntry* pTarget, SvTreeListEntry* pEntry,
|
2014-04-15 09:30:20 +02:00
|
|
|
SvTreeListEntry*& rpNewParent, sal_uLong& rNewChildPos, bool bMove );
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
public:
|
2014-09-23 11:20:40 +02:00
|
|
|
ExtTreeListBox(vcl::Window* pParent, WinBits nStyle);
|
2000-09-29 10:02:42 +00:00
|
|
|
};
|
|
|
|
|
Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...
Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-25 12:43:27 +02:00
|
|
|
class CheckBox : public SvTabListBox
|
2000-09-29 10:02:42 +00:00
|
|
|
{
|
|
|
|
private:
|
2012-09-02 16:21:08 +02:00
|
|
|
ObjectMode::Mode eMode;
|
2001-11-14 21:45:02 +00:00
|
|
|
SvLBoxButtonData* pCheckButton;
|
2007-03-15 14:58:40 +00:00
|
|
|
ScriptDocument m_aDocument;
|
2000-09-29 10:02:42 +00:00
|
|
|
void Init();
|
|
|
|
|
|
|
|
public:
|
2014-09-23 11:20:40 +02:00
|
|
|
CheckBox(vcl::Window* pParent, WinBits nStyle);
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~CheckBox();
|
2015-01-14 16:16:15 +02:00
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2013-09-22 16:58:29 +01:00
|
|
|
SvTreeListEntry* DoInsertEntry( const OUString& rStr, sal_uLong nPos = LISTBOX_APPEND );
|
|
|
|
SvTreeListEntry* FindEntry( const OUString& rName );
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2012-08-08 11:37:42 +02:00
|
|
|
void CheckEntryPos( sal_uLong nPos );
|
2012-08-07 08:36:40 +02:00
|
|
|
bool IsChecked( sal_uLong nPos ) const;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void InitEntry(SvTreeListEntry*, const OUString&, const Image&, const Image&, SvLBoxButtonKind eButtonKind) SAL_OVERRIDE;
|
|
|
|
virtual bool EditingEntry( SvTreeListEntry* pEntry, Selection& rSel ) SAL_OVERRIDE;
|
|
|
|
virtual bool EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewText ) SAL_OVERRIDE;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2007-03-15 14:58:40 +00:00
|
|
|
void SetDocument( const ScriptDocument& rDocument ) { m_aDocument = rDocument; }
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2012-09-02 16:21:08 +02:00
|
|
|
void SetMode (ObjectMode::Mode);
|
|
|
|
ObjectMode::Mode GetMode () const { return eMode; }
|
2000-09-29 10:02:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class LibDialog: public ModalDialog
|
|
|
|
{
|
|
|
|
private:
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<VclFrame> m_pStorageFrame;
|
|
|
|
VclPtr<CheckBox> m_pLibBox;
|
2015-04-28 17:45:41 +02:00
|
|
|
VclPtr< ::CheckBox> m_pReferenceBox;
|
|
|
|
VclPtr< ::CheckBox> m_pReplaceBox;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
public:
|
2015-05-18 16:42:39 +01:00
|
|
|
explicit LibDialog(vcl::Window* pParent);
|
2015-03-09 14:29:30 +02:00
|
|
|
virtual ~LibDialog();
|
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2012-10-14 19:00:25 -03:00
|
|
|
void SetStorageName( const OUString& rName );
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2014-01-03 14:38:01 +00:00
|
|
|
CheckBox& GetLibBox() { return *m_pLibBox; }
|
|
|
|
bool IsReference() const { return m_pReferenceBox->IsChecked(); }
|
|
|
|
bool IsReplace() const { return m_pReplaceBox->IsChecked(); }
|
2001-12-11 16:32:03 +00:00
|
|
|
|
2014-01-03 14:38:01 +00:00
|
|
|
void EnableReference (bool b) { m_pReferenceBox->Enable(b); }
|
|
|
|
void EnableReplace (bool b) { m_pReplaceBox->Enable(b); }
|
2000-09-29 10:02:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class OrganizeDialog : public TabDialog
|
|
|
|
{
|
|
|
|
private:
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<TabControl> m_pTabCtrl;
|
Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...
Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-25 12:43:27 +02:00
|
|
|
EntryDescriptor m_aCurEntry;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
public:
|
2014-09-23 11:20:40 +02:00
|
|
|
OrganizeDialog( vcl::Window* pParent, sal_Int16 tabId, EntryDescriptor& rDesc );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~OrganizeDialog();
|
2015-01-14 16:16:15 +02:00
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual short Execute() SAL_OVERRIDE;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
DECL_LINK( ActivatePageHdl, TabControl * );
|
|
|
|
};
|
|
|
|
|
|
|
|
class ObjectPage: public TabPage
|
|
|
|
{
|
|
|
|
protected:
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<ExtTreeListBox> m_pBasicBox;
|
|
|
|
VclPtr<PushButton> m_pEditButton;
|
|
|
|
VclPtr<PushButton> m_pNewModButton;
|
|
|
|
VclPtr<PushButton> m_pNewDlgButton;
|
|
|
|
VclPtr<PushButton> m_pDelButton;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...
Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-25 12:43:27 +02:00
|
|
|
DECL_LINK( BasicBoxHighlightHdl, TreeListBox * );
|
2000-09-29 10:02:42 +00:00
|
|
|
DECL_LINK( ButtonHdl, Button * );
|
|
|
|
void CheckButtons();
|
2012-10-14 19:00:25 -03:00
|
|
|
bool GetSelection( ScriptDocument& rDocument, OUString& rLibName );
|
2000-09-29 10:02:42 +00:00
|
|
|
void DeleteCurrent();
|
|
|
|
void NewModule();
|
|
|
|
void NewDialog();
|
2011-01-14 11:16:25 +01:00
|
|
|
void EndTabDialog( sal_uInt16 nRet );
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<TabDialog> pTabDlg;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void ActivatePage() SAL_OVERRIDE;
|
|
|
|
virtual void DeactivatePage() SAL_OVERRIDE;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
public:
|
2014-09-23 11:20:40 +02:00
|
|
|
ObjectPage(vcl::Window* pParent, const OString& rName, sal_uInt16 nMode);
|
2015-03-09 14:29:30 +02:00
|
|
|
virtual ~ObjectPage();
|
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...
Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-25 12:43:27 +02:00
|
|
|
void SetCurrentEntry( EntryDescriptor& rDesc );
|
2000-09-29 10:02:42 +00:00
|
|
|
void SetTabDlg( TabDialog* p ) { pTabDlg = p;}
|
|
|
|
};
|
|
|
|
|
2001-11-02 12:45:10 +00:00
|
|
|
|
2000-09-29 10:02:42 +00:00
|
|
|
class LibPage: public TabPage
|
|
|
|
{
|
|
|
|
protected:
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<ListBox> m_pBasicsBox;
|
|
|
|
VclPtr<CheckBox> m_pLibBox;
|
|
|
|
VclPtr<PushButton> m_pEditButton;
|
|
|
|
VclPtr<PushButton> m_pPasswordButton;
|
|
|
|
VclPtr<PushButton> m_pNewLibButton;
|
|
|
|
VclPtr<PushButton> m_pInsertLibButton;
|
|
|
|
VclPtr<PushButton> m_pExportButton;
|
|
|
|
VclPtr<PushButton> m_pDelButton;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2007-03-15 14:58:40 +00:00
|
|
|
ScriptDocument m_aCurDocument;
|
2004-07-23 11:06:40 +00:00
|
|
|
LibraryLocation m_eCurLocation;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
DECL_LINK( TreeListHighlightHdl, SvTreeListBox * );
|
|
|
|
DECL_LINK( BasicSelectHdl, ListBox * );
|
|
|
|
DECL_LINK( ButtonHdl, Button * );
|
2001-11-02 12:45:10 +00:00
|
|
|
DECL_LINK( CheckPasswordHdl, SvxPasswordDialog * );
|
2000-09-29 10:02:42 +00:00
|
|
|
void CheckButtons();
|
|
|
|
void DeleteCurrent();
|
|
|
|
void NewLib();
|
|
|
|
void InsertLib();
|
2013-09-25 13:35:33 +02:00
|
|
|
void implExportLib( const OUString& aLibName, const OUString& aTargetURL,
|
2006-11-01 15:23:40 +00:00
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler );
|
2006-04-07 07:44:49 +00:00
|
|
|
void Export();
|
2013-09-25 13:35:33 +02:00
|
|
|
void ExportAsPackage( const OUString& aLibName );
|
|
|
|
void ExportAsBasic( const OUString& aLibName );
|
2011-01-14 11:16:25 +01:00
|
|
|
void EndTabDialog( sal_uInt16 nRet );
|
2000-09-29 10:02:42 +00:00
|
|
|
void FillListBox();
|
2007-03-15 14:58:40 +00:00
|
|
|
void InsertListBoxEntry( const ScriptDocument& rDocument, LibraryLocation eLocation );
|
2000-09-29 10:02:42 +00:00
|
|
|
void SetCurLib();
|
2013-09-25 13:35:33 +02:00
|
|
|
SvTreeListEntry* ImpInsertLibEntry( const OUString& rLibName, sal_uLong nPos );
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void ActivatePage() SAL_OVERRIDE;
|
|
|
|
virtual void DeactivatePage() SAL_OVERRIDE;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<TabDialog> pTabDlg;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
public:
|
2015-05-18 16:42:39 +01:00
|
|
|
explicit LibPage(vcl::Window* pParent);
|
2004-07-23 11:06:40 +00:00
|
|
|
virtual ~LibPage();
|
2015-01-14 16:16:15 +02:00
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2000-09-29 10:02:42 +00:00
|
|
|
|
|
|
|
void SetTabDlg( TabDialog* p ) { pTabDlg = p;}
|
|
|
|
};
|
|
|
|
|
2002-07-30 12:10:28 +00:00
|
|
|
// Helper functions
|
2014-09-23 11:20:40 +02:00
|
|
|
SbModule* createModImpl( vcl::Window* pWin, const ScriptDocument& rDocument,
|
2014-03-17 09:17:07 +02:00
|
|
|
TreeListBox& rBasicBox, const OUString& rLibName, const OUString& aModName, bool bMain = false );
|
2014-09-23 11:20:40 +02:00
|
|
|
void createLibImpl( vcl::Window* pWin, const ScriptDocument& rDocument,
|
Basic IDE: namespace basctl
Now all names in basctl are in namespace 'basctl'.
There were lots of names that included the word 'Basic' or 'BasicIDE' in
it, e.g. BasicIDEData, BasicDocumentEntry, BasicTreeListBox,
BasicIDEModule, IDEBaseWindow etc. This information is now stored in the
namespace name, so the names could be shortened: basctl::DocumentEntry,
basctl::TreeListBox, basctl::Module, basctl::BaseWindow etc.
Some other minor changes:
* LibInfos, LibInfoItem, LibInfoKey ->
LibInfos, LibInfos::Item, LibInfos::Key
* The header guards are now uniformly BASCTL_FILENAME_HXX, instead of
e.g. _FILENAME_HXX, which is undefined behaviour because of the '_'.
* namespace BasicIDE, BasicIDEGlobals, basicide -> namespace basctl
* BASICIDE_TYPE_MODULE, ... -> basctl::TYPE_MODULE, ...
Change-Id: I2a9b493562d0d8a2510d569798fbe9e1161b7c9b
Reviewed-on: https://gerrit.libreoffice.org/501
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2012-08-25 12:43:27 +02:00
|
|
|
CheckBox* pLibBox, TreeListBox* pBasicBox );
|
|
|
|
|
|
|
|
} // namespace basctl
|
2002-07-30 12:10:28 +00:00
|
|
|
|
2014-04-18 18:32:22 +02:00
|
|
|
#endif // INCLUDED_BASCTL_SOURCE_BASICIDE_MODULDLG_HXX
|
2010-10-27 12:45:03 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|