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 .
|
|
|
|
*/
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2020-08-04 21:03:59 +00:00
|
|
|
#pragma once
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2006-11-14 14:29:26 +00:00
|
|
|
#include <com/sun/star/awt/XControlContainer.hpp>
|
2011-11-06 21:21:30 -05:00
|
|
|
#include <com/sun/star/container/XNameContainer.hpp>
|
2001-04-10 14:18:14 +00:00
|
|
|
#include <com/sun/star/datatransfer/DataFlavor.hpp>
|
2010-10-06 10:16:13 +01:00
|
|
|
#include <com/sun/star/frame/XModel.hpp>
|
2011-11-06 21:21:30 -05:00
|
|
|
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
|
2017-11-21 09:31:29 +00:00
|
|
|
#include <o3tl/deleter.hxx>
|
2014-07-16 21:22:34 +02:00
|
|
|
#include <svl/SfxBroadcaster.hxx>
|
2011-11-06 21:21:30 -05:00
|
|
|
#include <svl/hint.hxx>
|
2020-11-05 14:04:04 +00:00
|
|
|
#include <svx/svdobjkind.hxx>
|
2004-01-06 16:14:57 +00:00
|
|
|
#include <tools/gen.hxx>
|
2003-03-26 11:51:00 +00:00
|
|
|
#include <vcl/timer.hxx>
|
2015-01-14 10:21:20 +01:00
|
|
|
#include <vcl/idle.hxx>
|
2015-03-09 14:29:30 +02:00
|
|
|
#include <vcl/vclptr.hxx>
|
2015-05-13 21:07:25 +09:00
|
|
|
#include <vcl/window.hxx>
|
2003-03-26 11:51:00 +00:00
|
|
|
|
2015-09-17 17:10:47 +01:00
|
|
|
#include <memory>
|
2012-09-02 16:21:08 +02:00
|
|
|
|
2022-08-05 11:37:48 +01:00
|
|
|
class ScrollAdaptor;
|
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 Printer;
|
|
|
|
class KeyEvent;
|
|
|
|
class MouseEvent;
|
|
|
|
class Timer;
|
2014-09-23 11:20:40 +02:00
|
|
|
namespace vcl { class Window; }
|
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
|
|
|
|
{
|
|
|
|
|
2012-09-05 19:41:42 +02:00
|
|
|
class DialogWindowLayout;
|
2012-08-31 12:44:47 +02:00
|
|
|
|
2022-01-18 19:26:35 +05:30
|
|
|
constexpr auto DLGED_PAGE_WIDTH_MIN = 1280;
|
|
|
|
constexpr auto DLGED_PAGE_HEIGHT_MIN = 1024;
|
2014-02-25 17:39:11 +01:00
|
|
|
|
2003-03-26 11:51:00 +00:00
|
|
|
// DlgEdHint
|
2014-02-25 17:39:11 +01:00
|
|
|
|
2003-03-26 11:51:00 +00:00
|
|
|
|
|
|
|
class DlgEdObj;
|
|
|
|
|
2021-11-03 13:49:58 +01:00
|
|
|
class DlgEdHint: public SfxHint
|
2003-03-26 11:51: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
|
|
|
public:
|
|
|
|
enum Kind {
|
|
|
|
UNKNOWN,
|
|
|
|
WINDOWSCROLLED,
|
|
|
|
LAYERCHANGED,
|
|
|
|
OBJORDERCHANGED,
|
|
|
|
SELECTIONCHANGED,
|
|
|
|
};
|
|
|
|
|
2003-03-26 11:51:00 +00:00
|
|
|
private:
|
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
|
|
|
Kind eKind;
|
|
|
|
DlgEdObj* pDlgEdObj;
|
2003-03-26 11:51:00 +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
|
|
|
DlgEdHint (Kind);
|
|
|
|
DlgEdHint (Kind, DlgEdObj* pObj);
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~DlgEdHint() override;
|
2003-03-26 11:51: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
|
|
|
Kind GetKind() const { return eKind; }
|
|
|
|
DlgEdObj* GetObject() const { return pDlgEdObj; }
|
2003-03-26 11:51:00 +00:00
|
|
|
};
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2002-04-24 13:52:16 +00:00
|
|
|
|
2001-03-23 15:13:46 +00:00
|
|
|
// DlgEditor
|
2014-02-25 17:39:11 +01:00
|
|
|
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2003-03-26 11:51:00 +00:00
|
|
|
class DlgEdModel;
|
|
|
|
class DlgEdPage;
|
|
|
|
class DlgEdView;
|
2001-03-23 15:13:46 +00:00
|
|
|
class DlgEdForm;
|
|
|
|
class DlgEdFactory;
|
|
|
|
class DlgEdFunc;
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2021-11-03 13:49:58 +01:00
|
|
|
class DlgEditor: public SfxBroadcaster
|
2001-02-26 09:52:34 +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:
|
|
|
|
enum Mode {
|
|
|
|
INSERT,
|
|
|
|
SELECT,
|
|
|
|
TEST,
|
|
|
|
READONLY,
|
|
|
|
};
|
|
|
|
|
2001-03-23 15:13:46 +00:00
|
|
|
private:
|
2017-01-23 19:37:51 +01:00
|
|
|
DECL_LINK(MarkTimeout, Timer *, void);
|
2001-03-23 15:13:46 +00:00
|
|
|
|
2015-04-15 09:06:34 +02:00
|
|
|
static void Print( Printer* pPrinter, const OUString& rTitle );
|
2009-05-19 11:32:44 +00:00
|
|
|
|
2012-08-31 12:44:47 +02:00
|
|
|
private:
|
2022-08-05 11:37:48 +01:00
|
|
|
VclPtr<ScrollAdaptor> pHScroll;
|
|
|
|
VclPtr<ScrollAdaptor> pVScroll;
|
2015-09-17 17:10:47 +01:00
|
|
|
std::unique_ptr<DlgEdModel> pDlgEdModel; // never nullptr
|
2012-09-02 16:21:08 +02:00
|
|
|
DlgEdPage* pDlgEdPage; // never nullptr
|
2015-09-17 17:10:47 +01:00
|
|
|
std::unique_ptr<DlgEdView> pDlgEdView; // never nullptr
|
2021-05-27 10:27:46 +02:00
|
|
|
rtl::Reference<DlgEdForm> pDlgEdForm; // never nullptr
|
2015-07-17 15:49:35 +02:00
|
|
|
css::uno::Reference< css::container::XNameContainer > m_xUnoControlDialogModel;
|
|
|
|
css::uno::Reference< css::awt::XControlContainer > m_xControlContainer;
|
|
|
|
css::uno::Sequence< css::datatransfer::DataFlavor > m_ClipboardDataFlavors;
|
|
|
|
css::uno::Sequence< css::datatransfer::DataFlavor > m_ClipboardDataFlavorsResource;
|
|
|
|
css::uno::Reference< css::util::XNumberFormatsSupplier > m_xSupplier;
|
2017-11-21 09:31:29 +00:00
|
|
|
std::unique_ptr<DlgEdFactory, o3tl::default_delete<DlgEdFactory>> pObjFac; // never nullptr
|
2015-07-17 15:49:35 +02:00
|
|
|
vcl::Window& rWindow; // DialogWindow
|
2015-09-17 17:10:47 +01:00
|
|
|
std::unique_ptr<DlgEdFunc> pFunc;
|
2012-09-05 19:41:42 +02:00
|
|
|
DialogWindowLayout& rLayout;
|
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
|
|
|
Mode eMode;
|
2020-11-05 14:04:04 +00:00
|
|
|
SdrObjKind eActObj;
|
2012-08-02 10:21:00 +09:00
|
|
|
bool bFirstDraw;
|
2012-08-07 08:36:40 +02:00
|
|
|
bool bCreateOK;
|
2017-03-30 20:27:55 +02:00
|
|
|
tools::Rectangle aPaintRect;
|
2012-08-07 08:36:40 +02:00
|
|
|
bool bDialogModelChanged;
|
2014-11-06 14:18:54 +00:00
|
|
|
Idle aMarkIdle;
|
2020-10-21 09:28:47 +02:00
|
|
|
tools::Long mnPaintGuard;
|
2015-07-17 15:49:35 +02:00
|
|
|
css::uno::Reference< css::frame::XModel > m_xDocument;
|
2001-02-26 09:52:34 +00:00
|
|
|
|
|
|
|
public:
|
2012-09-02 16:21:08 +02:00
|
|
|
DlgEditor (
|
2014-09-23 11:20:40 +02:00
|
|
|
vcl::Window&, DialogWindowLayout&,
|
2015-07-17 15:49:35 +02:00
|
|
|
css::uno::Reference<css::frame::XModel> const& xModel,
|
2016-07-07 15:55:39 +02:00
|
|
|
css::uno::Reference<css::container::XNameContainer> const & xDialogModel
|
2012-09-02 16:21:08 +02:00
|
|
|
);
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~DlgEditor() override;
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2014-09-23 11:20:40 +02:00
|
|
|
vcl::Window& GetWindow() const { return rWindow; }
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2006-11-14 14:29:26 +00:00
|
|
|
/** returns the control container associated with our window
|
|
|
|
@see GetWindow
|
|
|
|
@see SetWindow
|
|
|
|
*/
|
2016-07-18 09:22:27 +02:00
|
|
|
css::uno::Reference< css::awt::XControlContainer > const &
|
2006-11-14 14:29:26 +00:00
|
|
|
GetWindowControlContainer();
|
|
|
|
|
2022-08-05 11:37:48 +01:00
|
|
|
void SetScrollBars(ScrollAdaptor* pHScroll, ScrollAdaptor* pVScroll);
|
2004-12-10 16:02:40 +00:00
|
|
|
void InitScrollBars();
|
2022-08-05 11:37:48 +01:00
|
|
|
ScrollAdaptor* GetHScroll() const { return pHScroll; }
|
|
|
|
ScrollAdaptor* GetVScroll() const { return pVScroll; }
|
2017-04-28 11:59:26 +02:00
|
|
|
void DoScroll();
|
2002-04-24 13:52:16 +00:00
|
|
|
void UpdateScrollBars();
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2016-04-12 12:04:56 +02:00
|
|
|
void SetDialog (const css::uno::Reference<css::container::XNameContainer>& xUnoControlDialogModel);
|
2012-09-02 16:21:08 +02:00
|
|
|
void ResetDialog ();
|
2016-04-14 10:20:52 +02:00
|
|
|
const css::uno::Reference< css::container::XNameContainer >& GetDialog() const
|
2001-03-03 13:36:55 +00:00
|
|
|
{return m_xUnoControlDialogModel;}
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2015-07-17 15:49:35 +02:00
|
|
|
css::uno::Reference< css::util::XNumberFormatsSupplier > const & GetNumberFormatsSupplier();
|
2001-09-25 10:06:10 +00:00
|
|
|
|
2012-09-02 16:21:08 +02:00
|
|
|
DlgEdModel& GetModel() const { return *pDlgEdModel; }
|
|
|
|
DlgEdView& GetView() const { return *pDlgEdView; }
|
|
|
|
DlgEdPage& GetPage() const { return *pDlgEdPage; }
|
2001-02-26 09:52:34 +00:00
|
|
|
|
|
|
|
void ShowDialog();
|
|
|
|
|
2012-08-07 08:36:40 +02:00
|
|
|
bool UnmarkDialog();
|
|
|
|
bool RemarkDialog();
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2016-03-03 13:04:59 +02:00
|
|
|
void SetDialogModelChanged() { bDialogModelChanged = true; }
|
2001-03-06 13:50:13 +00:00
|
|
|
|
2012-08-07 08:36:40 +02:00
|
|
|
bool IsModified () const;
|
2001-02-26 09:52:34 +00:00
|
|
|
void ClearModifyFlag();
|
|
|
|
|
|
|
|
void MouseButtonDown( const MouseEvent& rMEvt );
|
|
|
|
void MouseButtonUp( const MouseEvent& rMEvt );
|
|
|
|
void MouseMove( const MouseEvent& rMEvt );
|
2017-03-30 20:27:55 +02:00
|
|
|
void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect);
|
2012-08-07 08:36:40 +02:00
|
|
|
bool KeyInput( const KeyEvent& rKEvt );
|
2001-02-26 09:52:34 +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 SetMode (Mode eMode);
|
2020-11-05 14:04:04 +00:00
|
|
|
void SetInsertObj(SdrObjKind eObj);
|
2002-04-24 13:52:16 +00:00
|
|
|
void CreateDefaultObject();
|
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
|
|
|
Mode GetMode() const { return eMode; }
|
2012-08-07 08:36:40 +02:00
|
|
|
bool IsCreateOK() const { return bCreateOK; }
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2001-04-10 14:18:14 +00:00
|
|
|
void Cut();
|
|
|
|
void Copy();
|
|
|
|
void Paste();
|
2001-02-26 09:52:34 +00:00
|
|
|
void Delete();
|
2012-08-07 08:36:40 +02:00
|
|
|
bool IsPasteAllowed();
|
2001-10-17 09:17:18 +00:00
|
|
|
|
|
|
|
void ShowProperties();
|
2003-05-22 07:44:31 +00:00
|
|
|
void UpdatePropertyBrowserDelayed();
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2015-04-15 09:06:34 +02:00
|
|
|
static void printPage( sal_Int32 nPage, Printer* pPrinter, const OUString& );
|
2004-12-10 16:02:40 +00:00
|
|
|
|
|
|
|
bool AdjustPageSize();
|
2007-08-28 08:51:31 +00:00
|
|
|
|
|
|
|
bool isInPaint() const { return mnPaintGuard > 0; }
|
2001-02-26 09:52:34 +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
|
|
|
|
|
2010-10-27 12:45:03 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|