Update ooo320-m1
[ooovba.git] / sw / source / ui / vba / vbawindow.hxx
blob11a1a36482964bfb4a35b507eb0912550b3dea8e
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: vbawindow.hxx,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
30 #ifndef SW_VBA_WINDOW_HXX
31 #define SW_VBA_WINDOW_HXX
32 #include <cppuhelper/implbase1.hxx>
33 #include <ooo/vba/word/XWindow.hpp>
34 #include <com/sun/star/uno/XComponentContext.hpp>
36 #include <vbahelper/vbahelperinterface.hxx>
37 #include <vbahelper/vbawindowbase.hxx>
39 typedef cppu::ImplInheritanceHelper1< VbaWindowBase, ov::word::XWindow > WindowImpl_BASE;
41 class SwVbaWindow : public WindowImpl_BASE
43 public:
44 SwVbaWindow( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::frame::XModel >& xModel );
45 SwVbaWindow( css::uno::Sequence< css::uno::Any > const& aArgs, css::uno::Reference< css::uno::XComponentContext > const& xContext );
48 // Attributes
49 virtual css::uno::Any SAL_CALL getView() throw (css::uno::RuntimeException);
50 virtual void SAL_CALL setView( const css::uno::Any& _view ) throw (css::uno::RuntimeException);
51 // Methods
52 virtual void SAL_CALL Activate( ) throw (css::uno::RuntimeException);
53 virtual void SAL_CALL Close( const css::uno::Any& SaveChanges, const css::uno::Any& RouteDocument ) throw (css::uno::RuntimeException);
54 virtual css::uno::Any SAL_CALL Panes( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException);
55 virtual css::uno::Any SAL_CALL ActivePane() throw (css::uno::RuntimeException);
56 // XHelperInterface
57 virtual rtl::OUString& getServiceImplName();
58 virtual css::uno::Sequence<rtl::OUString> getServiceNames();
61 #endif //SW_VBA_WINDOW_HXX