Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef SW_VBA_WINDOW_HXX
20 : #define SW_VBA_WINDOW_HXX
21 : #include <cppuhelper/implbase1.hxx>
22 : #include <ooo/vba/word/XWindow.hpp>
23 : #include <com/sun/star/uno/XComponentContext.hpp>
24 :
25 : #include <vbahelper/vbahelperinterface.hxx>
26 : #include <vbahelper/vbawindowbase.hxx>
27 :
28 : typedef cppu::ImplInheritanceHelper1< VbaWindowBase, ov::word::XWindow > WindowImpl_BASE;
29 :
30 0 : class SwVbaWindow : public WindowImpl_BASE
31 : {
32 : public:
33 : SwVbaWindow(
34 : const css::uno::Reference< ov::XHelperInterface >& xParent,
35 : const css::uno::Reference< css::uno::XComponentContext >& xContext,
36 : const css::uno::Reference< css::frame::XModel >& xModel,
37 : const css::uno::Reference< css::frame::XController >& xController )
38 : throw (css::uno::RuntimeException);
39 :
40 : // Attributes
41 : virtual css::uno::Any SAL_CALL getView() throw (css::uno::RuntimeException);
42 : virtual void SAL_CALL setView( const css::uno::Any& _view ) throw (css::uno::RuntimeException);
43 : virtual css::uno::Any SAL_CALL getWindowState() throw (css::uno::RuntimeException);
44 : virtual void SAL_CALL setWindowState( const css::uno::Any& _windowstate ) throw (css::uno::RuntimeException);
45 : // Methods
46 : virtual void SAL_CALL Activate( ) throw (css::uno::RuntimeException);
47 : virtual void SAL_CALL Close( const css::uno::Any& SaveChanges, const css::uno::Any& RouteDocument ) throw (css::uno::RuntimeException);
48 : virtual css::uno::Any SAL_CALL Panes( const css::uno::Any& aIndex ) throw (css::uno::RuntimeException);
49 : virtual css::uno::Any SAL_CALL ActivePane() throw (css::uno::RuntimeException);
50 : // XHelperInterface
51 : virtual rtl::OUString getServiceImplName();
52 : virtual css::uno::Sequence<rtl::OUString> getServiceNames();
53 : };
54 :
55 : #endif //SW_VBA_WINDOW_HXX
56 :
57 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|