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 .
|
|
|
|
*/
|
2014-04-18 18:32:22 +02:00
|
|
|
#ifndef INCLUDED_BASCTL_SOURCE_INC_BASIDESH_HXX
|
|
|
|
#define INCLUDED_BASCTL_SOURCE_INC_BASIDESH_HXX
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2017-10-23 22:44:58 +02:00
|
|
|
#include "doceventnotifier.hxx"
|
|
|
|
#include "sbxitem.hxx"
|
|
|
|
#include "objdlg.hxx"
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2011-11-06 21:21:30 -05:00
|
|
|
#include <com/sun/star/container/XContainerListener.hpp>
|
2007-03-15 15:01:29 +00:00
|
|
|
#include <sfx2/viewsh.hxx>
|
|
|
|
#include <svx/ifaceids.hxx>
|
2018-03-28 21:25:33 +03:00
|
|
|
#include <svl/srchitem.hxx>
|
2011-11-06 21:21:30 -05:00
|
|
|
#include <vcl/scrbar.hxx>
|
2012-03-20 10:03:56 +02:00
|
|
|
#include <map>
|
2015-09-14 09:21:33 +01:00
|
|
|
#include <memory>
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2011-11-06 21:21:30 -05:00
|
|
|
class SfxViewFactory;
|
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 SdrView;
|
|
|
|
class TabBar;
|
|
|
|
class SbxObject;
|
|
|
|
class SbModule;
|
|
|
|
class StarBASIC;
|
2007-08-03 09:00:00 +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
|
|
|
namespace basctl
|
|
|
|
{
|
|
|
|
class Layout;
|
|
|
|
class ModulWindow;
|
|
|
|
class ModulWindowLayout;
|
|
|
|
class DialogWindow;
|
|
|
|
class DialogWindowLayout;
|
2007-03-15 15:01:29 +00:00
|
|
|
class TabBar;
|
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 BaseWindow;
|
2007-03-15 15:01:29 +00:00
|
|
|
class LocalizationMgr;
|
|
|
|
|
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 Shell :
|
2012-08-17 07:29:20 +02:00
|
|
|
public SfxViewShell,
|
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
|
|
|
public DocumentEventListener
|
2007-03-15 15:01:29 +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
|
|
|
public:
|
2015-03-09 14:29:30 +02:00
|
|
|
typedef std::map<sal_uInt16, VclPtr<BaseWindow> > WindowTable;
|
2012-08-17 07:29:20 +02: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
|
|
|
private:
|
2012-08-17 07:29:20 +02:00
|
|
|
friend class JavaDebuggingListenerImpl;
|
|
|
|
friend class LocalizationMgr;
|
2018-02-26 16:53:37 +00:00
|
|
|
friend bool implImportDialog(weld::Window* pWin, const OUString& rCurPath, const ScriptDocument& rDocument, const OUString& rLibName); // defined in baside3.cxx
|
2012-08-17 07:29:20 +02:00
|
|
|
|
2018-03-28 21:25:33 +03:00
|
|
|
WindowTable aWindowTable;
|
2012-08-17 07:29:20 +02:00
|
|
|
sal_uInt16 nCurKey;
|
2018-03-28 21:25:33 +03:00
|
|
|
VclPtr<BaseWindow> pCurWin;
|
2007-03-15 15:01:29 +00:00
|
|
|
ScriptDocument m_aCurDocument;
|
2012-09-26 21:24:26 -03:00
|
|
|
OUString m_aCurLibName;
|
2015-09-14 09:21:33 +01:00
|
|
|
std::shared_ptr<LocalizationMgr> m_pCurLocalizationMgr;
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2018-03-28 21:25:33 +03:00
|
|
|
VclPtr<ScrollBar> aHScrollBar;
|
|
|
|
VclPtr<ScrollBar> aVScrollBar;
|
|
|
|
VclPtr<ScrollBarBox> aScrollBarBox;
|
|
|
|
VclPtr<TabBar> pTabBar; // basctl::TabBar
|
|
|
|
bool bCreatingWindow;
|
|
|
|
|
2012-08-17 07:29:20 +02:00
|
|
|
// layout windows
|
2018-03-28 21:25:33 +03:00
|
|
|
VclPtr<ModulWindowLayout> pModulLayout;
|
|
|
|
VclPtr<DialogWindowLayout> pDialogLayout;
|
|
|
|
VclPtr<Layout> pLayout; // the active layout window
|
2012-08-17 07:29:20 +02:00
|
|
|
// common object catalog window
|
2018-03-28 21:25:33 +03:00
|
|
|
VclPtr<ObjectCatalog> aObjectCatalog;
|
|
|
|
|
|
|
|
bool m_bAppBasicModified;
|
|
|
|
bool mbJustOpened = false;
|
2012-08-17 07:29:20 +02: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
|
|
|
DocumentEventNotifier m_aNotifier;
|
2018-03-28 21:25:33 +03:00
|
|
|
|
2012-08-17 07:29:20 +02:00
|
|
|
friend class ContainerListenerImpl;
|
2015-07-17 15:49:35 +02:00
|
|
|
css::uno::Reference< css::container::XContainerListener > m_xLibListener;
|
2018-03-28 21:25:33 +03:00
|
|
|
std::unique_ptr<SvxSearchItem> mpSearchItem;
|
2007-03-15 15:01:29 +00:00
|
|
|
|
|
|
|
void Init();
|
|
|
|
void InitTabBar();
|
|
|
|
void InitScrollBars();
|
|
|
|
void CheckWindows();
|
2016-03-23 11:06:31 +02:00
|
|
|
void RemoveWindows( const ScriptDocument& rDocument, const OUString& rLibName );
|
2007-03-15 15:01:29 +00:00
|
|
|
void UpdateWindows();
|
2015-04-15 09:06:34 +02:00
|
|
|
static void InvalidateBasicIDESlots();
|
2012-07-31 10:14:06 +09:00
|
|
|
void StoreAllWindowData( bool bPersistent = true );
|
2007-03-15 15:01:29 +00:00
|
|
|
void SetMDITitle();
|
2012-07-31 10:14:06 +09:00
|
|
|
void EnableScrollbars( bool bEnable );
|
2014-03-17 09:17:07 +02:00
|
|
|
void SetCurLib( const ScriptDocument& rDocument, const OUString& aLibName, bool bUpdateWindows = true , bool bCheck = true );
|
|
|
|
void SetCurLibForLocalization( const ScriptDocument& rDocument, const OUString& aLibName );
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2016-10-05 07:56:12 +02:00
|
|
|
DECL_LINK( TabBarHdl, ::TabBar*, void );
|
2007-03-15 15:01:29 +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
|
|
|
static unsigned nShellCount;
|
|
|
|
|
2012-09-02 16:21:08 +02:00
|
|
|
private:
|
2018-03-28 21:12:37 +02:00
|
|
|
void AdjustPosSizePixel( const Point &rPos, const Size &rSize );
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void OuterResizePixel( const Point &rPos, const Size &rSize ) override;
|
2014-03-19 09:01:06 +02:00
|
|
|
sal_uInt16 InsertWindowInTable (BaseWindow* pNewWin);
|
2016-07-22 14:35:27 +02:00
|
|
|
virtual bool PrepareClose( bool bUI = true ) override;
|
2007-03-15 15:01:29 +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 SetCurWindow (BaseWindow* pNewWin, bool bUpdateTabBar = false, bool bRememberAsCurrent = true);
|
2007-06-26 15:53:07 +00:00
|
|
|
void ManageToolbars();
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2015-05-15 19:03:44 +01:00
|
|
|
VclPtr<ModulWindow> CreateBasWin( const ScriptDocument& rDocument, const OUString& rLibName, const OUString& rModName );
|
|
|
|
VclPtr<DialogWindow> CreateDlgWin( const ScriptDocument& rDocument, const OUString& rLibName, const OUString& rDlgName );
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2017-07-30 12:15:18 +02:00
|
|
|
VclPtr<ModulWindow> ShowActiveModuleWindow( StarBASIC const * pBasic );
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void Activate(bool bMDI) override;
|
|
|
|
virtual void Deactivate(bool bMDI) override;
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void Move() override;
|
|
|
|
virtual void ShowCursor( bool bOn = true ) override;
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2007-10-09 14:25:06 +00:00
|
|
|
// DocumentEventListener
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void onDocumentCreated( const ScriptDocument& _rDocument ) override;
|
|
|
|
virtual void onDocumentOpened( const ScriptDocument& _rDocument ) override;
|
|
|
|
virtual void onDocumentSave( const ScriptDocument& _rDocument ) override;
|
|
|
|
virtual void onDocumentSaveDone( const ScriptDocument& _rDocument ) override;
|
|
|
|
virtual void onDocumentSaveAs( const ScriptDocument& _rDocument ) override;
|
|
|
|
virtual void onDocumentSaveAsDone( const ScriptDocument& _rDocument ) override;
|
|
|
|
virtual void onDocumentClosed( const ScriptDocument& _rDocument ) override;
|
|
|
|
virtual void onDocumentTitleChanged( const ScriptDocument& _rDocument ) override;
|
|
|
|
virtual void onDocumentModeChanged( const ScriptDocument& _rDocument ) override;
|
2007-10-09 14:25:06 +00:00
|
|
|
|
2007-03-15 15:01:29 +00:00
|
|
|
public:
|
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
|
|
|
SFX_DECL_INTERFACE( SVX_INTERFACE_BASIDE_VIEWSH )
|
|
|
|
SFX_DECL_VIEWFACTORY(Shell);
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2014-04-18 18:04:32 +02:00
|
|
|
private:
|
|
|
|
/// SfxInterface initializer.
|
|
|
|
static void InitInterface_Impl();
|
|
|
|
|
|
|
|
public:
|
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
|
|
|
Shell( SfxViewFrame *pFrame, SfxViewShell *pOldSh );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~Shell() override;
|
2007-03-15 15:01:29 +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
|
|
|
BaseWindow* GetCurWindow() const { return pCurWin; }
|
2012-09-26 21:24:26 -03:00
|
|
|
OUString const& GetCurLibName() const { return m_aCurLibName; }
|
2016-04-14 10:20:52 +02:00
|
|
|
const std::shared_ptr<LocalizationMgr>& GetCurLocalizationMgr() const { return m_pCurLocalizationMgr; }
|
2007-03-15 15:01:29 +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
|
|
|
TabBar& GetTabBar() { return *pTabBar; }
|
|
|
|
WindowTable& GetWindowTable() { return aWindowTable; }
|
|
|
|
sal_uInt16 GetWindowId (BaseWindow const* pWin) const;
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2008-03-06 18:14:54 +00:00
|
|
|
SdrView* GetCurDlgView() const;
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2018-07-12 09:42:07 +02:00
|
|
|
SfxUndoManager* GetUndoManager() override;
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual css::uno::Reference< css::view::XRenderable > GetRenderable() override;
|
2009-05-19 11:32:44 +00:00
|
|
|
|
2011-01-14 11:16:25 +01:00
|
|
|
// virtual sal_uInt16 Print( SfxProgress &rProgress, sal_Bool bIsAPI, PrintDialog *pPrintDialog = 0 );
|
2016-07-22 14:35:27 +02:00
|
|
|
virtual SfxPrinter* GetPrinter( bool bCreate = false ) override;
|
2016-03-17 11:21:56 +02:00
|
|
|
virtual sal_uInt16 SetPrinter( SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags = SFX_PRINTER_ALL ) override;
|
2016-07-22 14:35:27 +02:00
|
|
|
virtual OUString GetSelectionText( bool bCompleteWords = false ) override;
|
|
|
|
virtual bool HasSelection( bool bText = true ) const override;
|
2007-03-15 15:01:29 +00:00
|
|
|
|
|
|
|
void GetState( SfxItemSet& );
|
|
|
|
void ExecuteGlobal( SfxRequest& rReq );
|
2018-03-28 21:25:33 +03:00
|
|
|
void ExecuteSearch( SfxRequest& rReq );
|
2007-03-15 15:01:29 +00:00
|
|
|
void ExecuteCurrent( SfxRequest& rReq );
|
|
|
|
void ExecuteBasic( SfxRequest& rReq );
|
|
|
|
void ExecuteDialog( SfxRequest& rReq );
|
|
|
|
|
2016-09-14 19:33:42 +02:00
|
|
|
virtual bool HasUIFeature(SfxShellFeature nFeature) const override;
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2017-07-30 12:15:18 +02:00
|
|
|
bool CallBasicErrorHdl( StarBASIC const * pBasic );
|
|
|
|
BasicDebugFlags CallBasicBreakHdl( StarBASIC const * pBasic );
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2016-08-02 14:56:27 +02:00
|
|
|
VclPtr<BaseWindow> FindWindow( const ScriptDocument& rDocument, const OUString& rLibName, const OUString& rName, ItemType nType, bool bFindSuspended = false );
|
2015-05-15 19:03:44 +01:00
|
|
|
VclPtr<DialogWindow> FindDlgWin( const ScriptDocument& rDocument, const OUString& rLibName, const OUString& rName, bool bCreateIfNotExist = false, bool bFindSuspended = false );
|
|
|
|
VclPtr<ModulWindow> FindBasWin( const ScriptDocument& rDocument, const OUString& rLibName, const OUString& rModName, bool bCreateIfNotExist = false, bool bFindSuspended = false );
|
|
|
|
VclPtr<BaseWindow> FindApplicationWindow();
|
2016-08-02 14:56:27 +02:00
|
|
|
bool NextPage( bool bPrev );
|
2007-03-15 15:01:29 +00:00
|
|
|
|
2012-08-07 08:36:40 +02:00
|
|
|
bool IsAppBasicModified () const { return m_bAppBasicModified; }
|
2016-08-02 14:56:27 +02:00
|
|
|
void SetAppBasicModified (bool bModified) { m_bAppBasicModified = bModified; }
|
2007-08-03 09:00:00 +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
|
|
|
// For Dialog Drag&Drop in Dialog Organizer:
|
|
|
|
// (defined in moduldlg.cxx)
|
2007-08-03 09:00:00 +00:00
|
|
|
static void CopyDialogResources(
|
2015-07-17 15:49:35 +02:00
|
|
|
css::uno::Reference< css::io::XInputStreamProvider >& io_xISP,
|
2012-09-26 21:24:26 -03:00
|
|
|
const ScriptDocument& rSourceDoc, const OUString& rSourceLibName, const ScriptDocument& rDestDoc,
|
|
|
|
const OUString& rDestLibName, const OUString& rDlgName );
|
2008-03-06 18:14:54 +00:00
|
|
|
|
2017-03-25 22:53:28 +03:00
|
|
|
static void InvalidateControlSlots();
|
|
|
|
|
2015-07-17 15:49:35 +02:00
|
|
|
virtual css::uno::Reference< css::frame::XModel >
|
2015-10-12 16:04:04 +02:00
|
|
|
GetCurrentDocument() const override;
|
2008-03-06 18:14:54 +00:00
|
|
|
|
2015-01-14 16:16:15 +02:00
|
|
|
void UpdateObjectCatalog () { aObjectCatalog->UpdateEntries(); }
|
2012-08-06 14:28:28 +02: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 RemoveWindow (BaseWindow* pWindow, bool bDestroy, bool bAllowChangeCurWindow = true);
|
2007-03-15 15:01:29 +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
|
|
|
} // namespace basctl
|
|
|
|
|
|
|
|
// This typedef helps baside.sdi,
|
|
|
|
// because I don't know how to use nested names in it.
|
|
|
|
typedef basctl::Shell basctl_Shell;
|
|
|
|
|
2014-04-18 18:32:22 +02:00
|
|
|
#endif // INCLUDED_BASCTL_SOURCE_INC_BASIDESH_HXX
|
2010-10-27 12:45:03 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|