1*96821c26SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*96821c26SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*96821c26SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*96821c26SAndrew Rist * distributed with this work for additional information 6*96821c26SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*96821c26SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*96821c26SAndrew Rist * "License"); you may not use this file except in compliance 9*96821c26SAndrew Rist * with the License. You may obtain a copy of the License at 10*96821c26SAndrew Rist * 11*96821c26SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*96821c26SAndrew Rist * 13*96821c26SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*96821c26SAndrew Rist * software distributed under the License is distributed on an 15*96821c26SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*96821c26SAndrew Rist * KIND, either express or implied. See the License for the 17*96821c26SAndrew Rist * specific language governing permissions and limitations 18*96821c26SAndrew Rist * under the License. 19*96821c26SAndrew Rist * 20*96821c26SAndrew Rist *************************************************************/ 21*96821c26SAndrew Rist 22*96821c26SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _BASIDE3_HXX 25cdf0e10cSrcweir #define _BASIDE3_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #ifndef _SVHEADER_HXX 28cdf0e10cSrcweir //#include <svheader.hxx> 29cdf0e10cSrcweir #endif 30cdf0e10cSrcweir 31cdf0e10cSrcweir #include <bastypes.hxx> 32cdf0e10cSrcweir #include <svl/undo.hxx> 33cdf0e10cSrcweir #include <vcl/dialog.hxx> 34cdf0e10cSrcweir #include <vcl/button.hxx> 35cdf0e10cSrcweir #include <vcl/lstbox.hxx> 36cdf0e10cSrcweir #include <vcl/fixed.hxx> 37cdf0e10cSrcweir 38cdf0e10cSrcweir #ifndef _COM_SUN_STAR_SCRIPT_XLIBRYARYCONTAINER_HPP_ 39cdf0e10cSrcweir #include <com/sun/star/script/XLibraryContainer.hpp> 40cdf0e10cSrcweir #endif 41cdf0e10cSrcweir 42cdf0e10cSrcweir class Printer; 43cdf0e10cSrcweir class StarBASIC; 44cdf0e10cSrcweir class SfxItemSet; 45cdf0e10cSrcweir class DlgEditor; 46cdf0e10cSrcweir class DlgEdModel; 47cdf0e10cSrcweir class DlgEdPage; 48cdf0e10cSrcweir class DlgEdView; 49cdf0e10cSrcweir class SfxUndoManager; 50cdf0e10cSrcweir 51cdf0e10cSrcweir class DialogWindow: public IDEBaseWindow 52cdf0e10cSrcweir { 53cdf0e10cSrcweir private: 54cdf0e10cSrcweir DlgEditor* pEditor; 55cdf0e10cSrcweir SfxUndoManager* pUndoMgr; 56cdf0e10cSrcweir Link aOldNotifyUndoActionHdl; 57cdf0e10cSrcweir String aCurPath; 58cdf0e10cSrcweir 59cdf0e10cSrcweir protected: 60cdf0e10cSrcweir virtual void Paint( const Rectangle& ); 61cdf0e10cSrcweir virtual void Resize(); 62cdf0e10cSrcweir 63cdf0e10cSrcweir virtual void MouseButtonDown( const MouseEvent& rMEvt ); 64cdf0e10cSrcweir virtual void MouseButtonUp( const MouseEvent& rMEvt ); 65cdf0e10cSrcweir virtual void MouseMove( const MouseEvent& rMEvt ); 66cdf0e10cSrcweir virtual void KeyInput( const KeyEvent& rKEvt ); 67cdf0e10cSrcweir virtual void Command( const CommandEvent& rCEvt ); 68cdf0e10cSrcweir virtual void LoseFocus(); 69cdf0e10cSrcweir 70cdf0e10cSrcweir DECL_LINK( NotifyUndoActionHdl, SfxUndoAction * ); 71cdf0e10cSrcweir virtual void DoInit(); 72cdf0e10cSrcweir virtual void DoScroll( ScrollBar* pCurScrollBar ); 73cdf0e10cSrcweir virtual void DataChanged( const DataChangedEvent& rDCEvt ); 74cdf0e10cSrcweir void InitSettings(sal_Bool bFont,sal_Bool bForeground,sal_Bool bBackground); 75cdf0e10cSrcweir 76cdf0e10cSrcweir public: 77cdf0e10cSrcweir TYPEINFO(); 78cdf0e10cSrcweir DialogWindow( Window* pParent, const ScriptDocument& rDocument, String aLibName, String aName, 79cdf0e10cSrcweir const com::sun::star::uno::Reference< com::sun::star::container::XNameContainer >& xDialogModel ); 80cdf0e10cSrcweir DialogWindow( DialogWindow* pCurView ); // never implemented 81cdf0e10cSrcweir ~DialogWindow(); 82cdf0e10cSrcweir 83cdf0e10cSrcweir virtual void ExecuteCommand( SfxRequest& rReq ); 84cdf0e10cSrcweir virtual void GetState( SfxItemSet& ); GetEditor() const85cdf0e10cSrcweir DlgEditor* GetEditor() const { return pEditor; } 86cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > GetDialog() const; 87cdf0e10cSrcweir DlgEdModel* GetModel() const; 88cdf0e10cSrcweir DlgEdPage* GetPage() const; 89cdf0e10cSrcweir DlgEdView* GetView() const; 90cdf0e10cSrcweir sal_Bool RenameDialog( const String& rNewName ); 91cdf0e10cSrcweir void DisableBrowser(); 92cdf0e10cSrcweir void UpdateBrowser(); 93cdf0e10cSrcweir sal_Bool SaveDialog(); 94cdf0e10cSrcweir sal_Bool ImportDialog(); 95cdf0e10cSrcweir 96cdf0e10cSrcweir virtual String GetTitle(); 97cdf0e10cSrcweir virtual BasicEntryDescriptor CreateEntryDescriptor(); 98cdf0e10cSrcweir virtual void SetReadOnly( sal_Bool bReadOnly ); 99cdf0e10cSrcweir virtual sal_Bool IsReadOnly(); 100cdf0e10cSrcweir 101cdf0e10cSrcweir virtual void StoreData(); 102cdf0e10cSrcweir virtual sal_Bool IsModified(); 103cdf0e10cSrcweir virtual sal_Bool IsPasteAllowed(); 104cdf0e10cSrcweir 105cdf0e10cSrcweir virtual ::svl::IUndoManager* 106cdf0e10cSrcweir GetUndoManager(); 107cdf0e10cSrcweir // return number of pages to be printed 108cdf0e10cSrcweir virtual sal_Int32 countPages( Printer* pPrinter ); 109cdf0e10cSrcweir // print page 110cdf0e10cSrcweir virtual void printPage( sal_Int32 nPage, Printer* pPrinter ); 111cdf0e10cSrcweir virtual void Deactivating(); 112cdf0e10cSrcweir 113cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible(); 114cdf0e10cSrcweir }; 115cdf0e10cSrcweir 116cdf0e10cSrcweir #endif // _BASIDE3_HXX 117