update dev300-m58
[ooovba.git] / basctl / source / inc / baside3.hxx
blob408c04548b83c26aa7ca3382c40e131c6e91462b
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: baside3.hxx,v $
10 * $Revision: 1.9 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _BASIDE3_HXX
32 #define _BASIDE3_HXX
34 #ifndef _SVHEADER_HXX
35 //#include <svheader.hxx>
36 #endif
38 #include <bastypes.hxx>
39 #include <svtools/undo.hxx>
41 #ifndef _COM_SUN_STAR_SCRIPT_XLIBRYARYCONTAINER_HPP_
42 #include <com/sun/star/script/XLibraryContainer.hpp>
43 #endif
45 class Printer;
46 class StarBASIC;
47 class SfxItemSet;
48 class DlgEditor;
49 class DlgEdModel;
50 class DlgEdPage;
51 class DlgEdView;
52 class SfxUndoManager;
54 class DialogWindow: public IDEBaseWindow
56 private:
57 DlgEditor* pEditor;
58 SfxUndoManager* pUndoMgr;
59 Link aOldNotifyUndoActionHdl;
60 String aCurPath;
62 protected:
63 virtual void Paint( const Rectangle& );
64 virtual void Resize();
66 virtual void MouseButtonDown( const MouseEvent& rMEvt );
67 virtual void MouseButtonUp( const MouseEvent& rMEvt );
68 virtual void MouseMove( const MouseEvent& rMEvt );
69 virtual void KeyInput( const KeyEvent& rKEvt );
70 virtual void Command( const CommandEvent& rCEvt );
71 virtual void LoseFocus();
73 DECL_LINK( NotifyUndoActionHdl, SfxUndoAction * );
74 virtual void DoInit();
75 virtual void DoScroll( ScrollBar* pCurScrollBar );
76 virtual void DataChanged( const DataChangedEvent& rDCEvt );
77 void InitSettings(BOOL bFont,BOOL bForeground,BOOL bBackground);
79 public:
80 TYPEINFO();
81 DialogWindow( Window* pParent, const ScriptDocument& rDocument, String aLibName, String aName,
82 const com::sun::star::uno::Reference< com::sun::star::container::XNameContainer >& xDialogModel );
83 DialogWindow( DialogWindow* pCurView ); // never implemented
84 ~DialogWindow();
86 virtual void ExecuteCommand( SfxRequest& rReq );
87 virtual void GetState( SfxItemSet& );
88 DlgEditor* GetEditor() const { return pEditor; }
89 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > GetDialog() const;
90 DlgEdModel* GetModel() const;
91 DlgEdPage* GetPage() const;
92 DlgEdView* GetView() const;
93 BOOL RenameDialog( const String& rNewName );
94 void DisableBrowser();
95 void UpdateBrowser();
96 BOOL SaveDialog();
98 virtual String GetTitle();
99 virtual BasicEntryDescriptor CreateEntryDescriptor();
100 virtual void SetReadOnly( BOOL bReadOnly );
101 virtual BOOL IsReadOnly();
103 virtual void StoreData();
104 virtual BOOL IsModified();
105 virtual BOOL IsPasteAllowed();
107 virtual SfxUndoManager* GetUndoManager();
108 virtual void PrintData( Printer* pPrinter );
109 virtual void Deactivating();
111 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible();
114 #endif // _BASIDE3_HXX