2010-10-27 06:45:03 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2003-03-26 05:50:30 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 05:06:47 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2003-03-26 05:50:30 -06:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2003-03-26 05:50:30 -06:00
|
|
|
*
|
2008-04-11 05:06:47 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2003-03-26 05:50:30 -06:00
|
|
|
*
|
2008-04-11 05:06:47 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2003-03-26 05:50:30 -06:00
|
|
|
*
|
2008-04-11 05:06:47 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2003-03-26 05:50:30 -06:00
|
|
|
*
|
2008-04-11 05:06:47 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2003-03-26 05:50:30 -06:00
|
|
|
*
|
2008-04-11 05:06:47 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2003-03-26 05:50:30 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _BASIDE3_HXX
|
|
|
|
#define _BASIDE3_HXX
|
|
|
|
|
|
|
|
#include <bastypes.hxx>
|
2009-10-15 17:05:16 -05:00
|
|
|
#include <svl/undo.hxx>
|
2009-09-11 04:40:28 -05:00
|
|
|
#include <vcl/dialog.hxx>
|
|
|
|
#include <vcl/button.hxx>
|
|
|
|
#include <vcl/lstbox.hxx>
|
|
|
|
#include <vcl/fixed.hxx>
|
2003-03-26 05:50:30 -06:00
|
|
|
|
|
|
|
#include <com/sun/star/script/XLibraryContainer.hpp>
|
|
|
|
|
2005-06-14 10:35:07 -05:00
|
|
|
class Printer;
|
2003-03-26 05:50:30 -06:00
|
|
|
class StarBASIC;
|
|
|
|
class SfxItemSet;
|
|
|
|
class DlgEditor;
|
|
|
|
class DlgEdModel;
|
|
|
|
class DlgEdPage;
|
|
|
|
class DlgEdView;
|
|
|
|
class SfxUndoManager;
|
|
|
|
|
|
|
|
class DialogWindow: public IDEBaseWindow
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
DlgEditor* pEditor;
|
|
|
|
SfxUndoManager* pUndoMgr;
|
|
|
|
Link aOldNotifyUndoActionHdl;
|
2007-06-26 10:52:54 -05:00
|
|
|
String aCurPath;
|
2003-03-26 05:50:30 -06:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void Paint( const Rectangle& );
|
|
|
|
virtual void Resize();
|
|
|
|
|
|
|
|
virtual void MouseButtonDown( const MouseEvent& rMEvt );
|
|
|
|
virtual void MouseButtonUp( const MouseEvent& rMEvt );
|
|
|
|
virtual void MouseMove( const MouseEvent& rMEvt );
|
|
|
|
virtual void KeyInput( const KeyEvent& rKEvt );
|
|
|
|
virtual void Command( const CommandEvent& rCEvt );
|
|
|
|
virtual void LoseFocus();
|
|
|
|
|
|
|
|
DECL_LINK( NotifyUndoActionHdl, SfxUndoAction * );
|
|
|
|
virtual void DoInit();
|
|
|
|
virtual void DoScroll( ScrollBar* pCurScrollBar );
|
|
|
|
virtual void DataChanged( const DataChangedEvent& rDCEvt );
|
2011-01-14 04:16:25 -06:00
|
|
|
void InitSettings(sal_Bool bFont,sal_Bool bForeground,sal_Bool bBackground);
|
2003-03-26 05:50:30 -06:00
|
|
|
|
|
|
|
public:
|
|
|
|
TYPEINFO();
|
2007-03-15 10:01:16 -05:00
|
|
|
DialogWindow( Window* pParent, const ScriptDocument& rDocument, String aLibName, String aName,
|
2003-03-26 05:50:30 -06:00
|
|
|
const com::sun::star::uno::Reference< com::sun::star::container::XNameContainer >& xDialogModel );
|
2007-03-15 10:01:16 -05:00
|
|
|
DialogWindow( DialogWindow* pCurView ); // never implemented
|
2003-03-26 05:50:30 -06:00
|
|
|
~DialogWindow();
|
|
|
|
|
|
|
|
virtual void ExecuteCommand( SfxRequest& rReq );
|
|
|
|
virtual void GetState( SfxItemSet& );
|
|
|
|
DlgEditor* GetEditor() const { return pEditor; }
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > GetDialog() const;
|
|
|
|
DlgEdModel* GetModel() const;
|
|
|
|
DlgEdPage* GetPage() const;
|
|
|
|
DlgEdView* GetView() const;
|
2011-01-14 04:16:25 -06:00
|
|
|
sal_Bool RenameDialog( const String& rNewName );
|
2003-03-26 05:50:30 -06:00
|
|
|
void DisableBrowser();
|
|
|
|
void UpdateBrowser();
|
2011-01-14 04:16:25 -06:00
|
|
|
sal_Bool SaveDialog();
|
|
|
|
sal_Bool ImportDialog();
|
2007-06-26 10:52:54 -05:00
|
|
|
|
2003-03-26 05:50:30 -06:00
|
|
|
virtual String GetTitle();
|
2004-07-23 06:08:20 -05:00
|
|
|
virtual BasicEntryDescriptor CreateEntryDescriptor();
|
2011-01-14 04:16:25 -06:00
|
|
|
virtual void SetReadOnly( sal_Bool bReadOnly );
|
|
|
|
virtual sal_Bool IsReadOnly();
|
2003-03-26 05:50:30 -06:00
|
|
|
|
|
|
|
virtual void StoreData();
|
2011-01-14 04:16:25 -06:00
|
|
|
virtual sal_Bool IsModified();
|
|
|
|
virtual sal_Bool IsPasteAllowed();
|
2003-03-26 05:50:30 -06:00
|
|
|
|
2010-10-20 07:54:59 -05:00
|
|
|
virtual ::svl::IUndoManager*
|
|
|
|
GetUndoManager();
|
2009-05-19 06:32:44 -05:00
|
|
|
// return number of pages to be printed
|
|
|
|
virtual sal_Int32 countPages( Printer* pPrinter );
|
|
|
|
// print page
|
|
|
|
virtual void printPage( sal_Int32 nPage, Printer* pPrinter );
|
2003-03-26 05:50:30 -06:00
|
|
|
virtual void Deactivating();
|
|
|
|
|
2003-04-24 12:20:11 -05:00
|
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible();
|
2003-03-26 05:50:30 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _BASIDE3_HXX
|
2010-10-27 06:45:03 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|