tdf#35361 Add a Quick Look plugins for .od* files on macOS
[LibreOffice.git] / sw / source / ui / vba / vbaview.hxx
blobab2ff3567ba7423fac6e17c92cae6f4bf8bb660c
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>
26 #include <rtl/ref.hxx>
28 class SwXTextDocument;
30 typedef InheritedHelperInterfaceWeakImpl< ooo::vba::word::XView > SwVbaView_BASE;
32 class SwVbaView : public SwVbaView_BASE
34 private:
35 rtl::Reference< SwXTextDocument > mxModel;
36 css::uno::Reference< css::text::XTextViewCursor > mxViewCursor;
37 css::uno::Reference< css::beans::XPropertySet > mxViewSettings;
39 /// @throws css::uno::RuntimeException
40 /// @throws css::script::BasicErrorException
41 css::uno::Reference< css::text::XTextRange > getHFTextRange( sal_Int32 nType );
43 public:
44 /// @throws css::uno::RuntimeException
45 SwVbaView( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent,
46 const css::uno::Reference< css::uno::XComponentContext >& rContext,
47 rtl::Reference< SwXTextDocument > xModel );
48 virtual ~SwVbaView() override;
50 // XView
51 sal_Bool SAL_CALL getShowAll() override;
52 void SAL_CALL setShowAll(sal_Bool bSet) override;
53 virtual ::sal_Int32 SAL_CALL getSeekView() override;
54 virtual void SAL_CALL setSeekView( ::sal_Int32 _seekview ) override;
55 virtual ::sal_Int32 SAL_CALL getSplitSpecial() override;
56 virtual void SAL_CALL setSplitSpecial( ::sal_Int32 _splitspecial ) override;
57 virtual sal_Bool SAL_CALL getTableGridLines() override;
58 virtual void SAL_CALL setTableGridLines( sal_Bool _tablegridlines ) override;
59 virtual ::sal_Int32 SAL_CALL getType() override;
60 virtual void SAL_CALL setType( ::sal_Int32 _type ) override;
62 // XHelperInterface
63 virtual OUString getServiceImplName() override;
64 virtual css::uno::Sequence<OUString> getServiceNames() override;
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */