1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: baside3.hxx,v $
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 ************************************************************************/
35 //#include <svheader.hxx>
38 #include <bastypes.hxx>
39 #include <svtools/undo.hxx>
40 #include <vcl/dialog.hxx>
41 #include <vcl/button.hxx>
42 #include <vcl/lstbox.hxx>
43 #include <vcl/fixed.hxx>
45 #ifndef _COM_SUN_STAR_SCRIPT_XLIBRYARYCONTAINER_HPP_
46 #include <com/sun/star/script/XLibraryContainer.hpp>
58 class DialogWindow
: public IDEBaseWindow
62 SfxUndoManager
* pUndoMgr
;
63 Link aOldNotifyUndoActionHdl
;
67 virtual void Paint( const Rectangle
& );
68 virtual void Resize();
70 virtual void MouseButtonDown( const MouseEvent
& rMEvt
);
71 virtual void MouseButtonUp( const MouseEvent
& rMEvt
);
72 virtual void MouseMove( const MouseEvent
& rMEvt
);
73 virtual void KeyInput( const KeyEvent
& rKEvt
);
74 virtual void Command( const CommandEvent
& rCEvt
);
75 virtual void LoseFocus();
77 DECL_LINK( NotifyUndoActionHdl
, SfxUndoAction
* );
78 virtual void DoInit();
79 virtual void DoScroll( ScrollBar
* pCurScrollBar
);
80 virtual void DataChanged( const DataChangedEvent
& rDCEvt
);
81 void InitSettings(BOOL bFont
,BOOL bForeground
,BOOL bBackground
);
85 DialogWindow( Window
* pParent
, const ScriptDocument
& rDocument
, String aLibName
, String aName
,
86 const com::sun::star::uno::Reference
< com::sun::star::container::XNameContainer
>& xDialogModel
);
87 DialogWindow( DialogWindow
* pCurView
); // never implemented
90 virtual void ExecuteCommand( SfxRequest
& rReq
);
91 virtual void GetState( SfxItemSet
& );
92 DlgEditor
* GetEditor() const { return pEditor
; }
93 ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameContainer
> GetDialog() const;
94 DlgEdModel
* GetModel() const;
95 DlgEdPage
* GetPage() const;
96 DlgEdView
* GetView() const;
97 BOOL
RenameDialog( const String
& rNewName
);
98 void DisableBrowser();
103 virtual String
GetTitle();
104 virtual BasicEntryDescriptor
CreateEntryDescriptor();
105 virtual void SetReadOnly( BOOL bReadOnly
);
106 virtual BOOL
IsReadOnly();
108 virtual void StoreData();
109 virtual BOOL
IsModified();
110 virtual BOOL
IsPasteAllowed();
112 virtual SfxUndoManager
* GetUndoManager();
113 virtual void PrintData( Printer
* pPrinter
);
114 virtual void Deactivating();
116 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> CreateAccessible();
119 #endif // _BASIDE3_HXX