android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / source / ui / vba / vbaview.hxx
blob66cd0db612ef0fae5ebc4cfaf5497f23b660e988
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #pragma once
21 #include <ooo/vba/word/XView.hpp>
22 #include <vbahelper/vbahelperinterface.hxx>
23 #include <com/sun/star/text/XTextViewCursor.hpp>
24 #include <com/sun/star/text/XTextRange.hpp>
25 #include <com/sun/star/beans/XPropertySet.hpp>
27 typedef InheritedHelperInterfaceWeakImpl< ooo::vba::word::XView > SwVbaView_BASE;
29 class SwVbaView : public SwVbaView_BASE
31 private:
32 css::uno::Reference< css::frame::XModel > mxModel;
33 css::uno::Reference< css::text::XTextViewCursor > mxViewCursor;
34 css::uno::Reference< css::beans::XPropertySet > mxViewSettings;
36 /// @throws css::uno::RuntimeException
37 /// @throws css::script::BasicErrorException
38 css::uno::Reference< css::text::XTextRange > getHFTextRange( sal_Int32 nType );
40 public:
41 /// @throws css::uno::RuntimeException
42 SwVbaView( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext,
43 css::uno::Reference< css::frame::XModel > xModel );
44 virtual ~SwVbaView() override;
46 // XView
47 sal_Bool SAL_CALL getShowAll() override;
48 void SAL_CALL setShowAll(sal_Bool bSet) override;
49 virtual ::sal_Int32 SAL_CALL getSeekView() override;
50 virtual void SAL_CALL setSeekView( ::sal_Int32 _seekview ) override;
51 virtual ::sal_Int32 SAL_CALL getSplitSpecial() override;
52 virtual void SAL_CALL setSplitSpecial( ::sal_Int32 _splitspecial ) override;
53 virtual sal_Bool SAL_CALL getTableGridLines() override;
54 virtual void SAL_CALL setTableGridLines( sal_Bool _tablegridlines ) override;
55 virtual ::sal_Int32 SAL_CALL getType() override;
56 virtual void SAL_CALL setType( ::sal_Int32 _type ) override;
58 // XHelperInterface
59 virtual OUString getServiceImplName() override;
60 virtual css::uno::Sequence<OUString> getServiceNames() override;
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */