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
|
|
|
|
2014-04-18 18:32:22 +02:00
|
|
|
#ifndef INCLUDED_BASCTL_SOURCE_INC_DLGED_HXX
|
|
|
|
#define INCLUDED_BASCTL_SOURCE_INC_DLGED_HXX
|
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>
|
2014-07-16 21:22:34 +02:00
|
|
|
#include <svl/SfxBroadcaster.hxx>
|
2011-11-06 21:21:30 -05:00
|
|
|
#include <svl/hint.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>
|
|
|
|
|
2012-09-02 16:21:08 +02:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
|
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 ScrollBar;
|
|
|
|
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
|
|
|
|
2004-12-10 16:02:40 +00:00
|
|
|
#define DLGED_PAGE_WIDTH_MIN 1280
|
|
|
|
#define 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;
|
|
|
|
|
|
|
|
class DlgEdHint: public SfxHint
|
|
|
|
{
|
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);
|
2003-03-26 11:51:00 +00:00
|
|
|
virtual ~DlgEdHint();
|
|
|
|
|
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
|
|
|
|
2014-02-25 17:39:11 +01: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
|
|
|
|
2003-03-26 11:51:00 +00: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:
|
2012-03-01 18:00:32 +01:00
|
|
|
DECL_LINK(MarkTimeout, void *);
|
2001-03-23 15:13:46 +00:00
|
|
|
|
2012-09-26 21:24:26 -03:00
|
|
|
void Print( Printer* pPrinter, const OUString& rTitle );
|
2009-05-19 11:32:44 +00:00
|
|
|
|
2012-08-31 12:44:47 +02:00
|
|
|
private:
|
2001-02-26 09:52:34 +00:00
|
|
|
ScrollBar* pHScroll;
|
|
|
|
ScrollBar* pVScroll;
|
2012-09-02 16:21:08 +02:00
|
|
|
boost::scoped_ptr<DlgEdModel> pDlgEdModel; // never nullptr
|
|
|
|
DlgEdPage* pDlgEdPage; // never nullptr
|
|
|
|
boost::scoped_ptr<DlgEdView> pDlgEdView; // never nullptr
|
|
|
|
DlgEdForm* pDlgEdForm; // never nullptr
|
2001-04-10 14:18:14 +00:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > m_xUnoControlDialogModel;
|
2006-11-14 14:29:26 +00:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer > m_xControlContainer;
|
2001-04-10 14:18:14 +00:00
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > m_ClipboardDataFlavors;
|
2007-01-29 15:52:46 +00:00
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > m_ClipboardDataFlavorsResource;
|
2001-09-25 10:06:10 +00:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > m_xSupplier;
|
2012-09-02 16:21:08 +02:00
|
|
|
boost::scoped_ptr<DlgEdFactory> pObjFac; // never nullptr
|
2014-09-23 11:20:40 +02:00
|
|
|
vcl::Window& rWindow; // DialogWindow
|
2012-09-02 16:21:08 +02:00
|
|
|
boost::scoped_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;
|
2012-08-07 08:36:40 +02:00
|
|
|
sal_uInt16 eActObj;
|
2012-08-02 10:21:00 +09:00
|
|
|
bool bFirstDraw;
|
2001-02-26 09:52:34 +00:00
|
|
|
Size aGridSize;
|
2012-08-07 08:36:40 +02:00
|
|
|
bool bGridVisible;
|
|
|
|
bool bGridSnap;
|
|
|
|
bool bCreateOK;
|
2001-02-26 09:52:34 +00:00
|
|
|
Rectangle aPaintRect;
|
2012-08-07 08:36:40 +02:00
|
|
|
bool bDialogModelChanged;
|
2014-11-06 14:18:54 +00:00
|
|
|
Idle aMarkIdle;
|
2007-08-28 08:51:31 +00:00
|
|
|
long mnPaintGuard;
|
2010-10-06 10:16:13 +01:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::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&,
|
2012-09-02 16:21:08 +02:00
|
|
|
com::sun::star::uno::Reference<com::sun::star::frame::XModel> const& xModel,
|
|
|
|
com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> xDialogModel
|
|
|
|
);
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~DlgEditor();
|
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
|
|
|
|
*/
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >
|
|
|
|
GetWindowControlContainer();
|
|
|
|
|
2001-02-26 09:52:34 +00:00
|
|
|
void SetScrollBars( ScrollBar* pHScroll, ScrollBar* pVScroll );
|
2004-12-10 16:02:40 +00:00
|
|
|
void InitScrollBars();
|
2001-02-26 09:52:34 +00:00
|
|
|
ScrollBar* GetHScroll() const { return pHScroll; }
|
|
|
|
ScrollBar* GetVScroll() const { return pVScroll; }
|
|
|
|
void DoScroll( ScrollBar* pActScroll );
|
2002-04-24 13:52:16 +00:00
|
|
|
void UpdateScrollBars();
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2012-09-02 16:21:08 +02:00
|
|
|
void SetDialog (com::sun::star::uno::Reference<com::sun::star::container::XNameContainer> xUnoControlDialogModel);
|
|
|
|
void ResetDialog ();
|
2001-03-03 13:36:55 +00:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > GetDialog() const
|
|
|
|
{return m_xUnoControlDialogModel;}
|
2001-02-26 09:52:34 +00:00
|
|
|
|
2001-09-25 10:06:10 +00:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > const & GetNumberFormatsSupplier();
|
|
|
|
|
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
|
|
|
|
2012-08-07 08:36:40 +02:00
|
|
|
void SetDialogModelChanged (bool bChanged = true) { bDialogModelChanged = bChanged; }
|
|
|
|
bool IsDialogModelChanged () const { return bDialogModelChanged; }
|
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 );
|
|
|
|
void Paint( const 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);
|
2011-01-14 11:16:25 +01:00
|
|
|
void SetInsertObj( sal_uInt16 eObj );
|
2014-06-09 10:09:42 +02:00
|
|
|
sal_uInt16 GetInsertObj() const { return eActObj;}
|
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
|
|
|
|
2009-05-19 11:32:44 +00:00
|
|
|
sal_Int32 countPages( Printer* pPrinter );
|
2012-09-26 21:24:26 -03:00
|
|
|
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
|
|
|
|
|
2014-04-18 18:32:22 +02:00
|
|
|
#endif // INCLUDED_BASCTL_SOURCE_INC_DLGED_HXX
|
2010-10-27 12:45:03 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|