LibreOffice Module sw (master)  1
vbaview.hxx
Go to the documentation of this file.
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 INCLUDED_SW_SOURCE_UI_VBA_VBAVIEW_HXX
20 #define INCLUDED_SW_SOURCE_UI_VBA_VBAVIEW_HXX
21 
22 #include <ooo/vba/word/XView.hpp>
24 #include <com/sun/star/text/XTextViewCursor.hpp>
25 #include <com/sun/star/text/XTextRange.hpp>
26 #include <com/sun/star/beans/XPropertySet.hpp>
27 
29 
30 class SwVbaView : public SwVbaView_BASE
31 {
32 private:
33  css::uno::Reference< css::frame::XModel > mxModel;
34  css::uno::Reference< css::text::XTextViewCursor > mxViewCursor;
35  css::uno::Reference< css::beans::XPropertySet > mxViewSettings;
36 
39  css::uno::Reference< css::text::XTextRange > getHFTextRange( sal_Int32 nType );
40 
41 public:
43  SwVbaView( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext,
44  const css::uno::Reference< css::frame::XModel >& rModel );
45  virtual ~SwVbaView() override;
46 
47  // XView
48  virtual ::sal_Int32 SAL_CALL getSeekView() override;
49  virtual void SAL_CALL setSeekView( ::sal_Int32 _seekview ) override;
50  virtual ::sal_Int32 SAL_CALL getSplitSpecial() override;
51  virtual void SAL_CALL setSplitSpecial( ::sal_Int32 _splitspecial ) override;
52  virtual sal_Bool SAL_CALL getTableGridLines() override;
53  virtual void SAL_CALL setTableGridLines( sal_Bool _tablegridlines ) override;
54  virtual ::sal_Int32 SAL_CALL getType() override;
55  virtual void SAL_CALL setType( ::sal_Int32 _type ) override;
56 
57  // XHelperInterface
58  virtual OUString getServiceImplName() override;
59  virtual css::uno::Sequence<OUString> getServiceNames() override;
60 };
61 #endif // INCLUDED_SW_SOURCE_UI_VBA_VBAVIEW_HXX
62 
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual OUString getServiceImplName() override
Definition: vbaview.cxx:376
virtual ~SwVbaView() override
Definition: vbaview.cxx:64
css::uno::Reference< css::frame::XModel > mxModel
Definition: vbaview.hxx:33
virtual void SAL_CALL setTableGridLines(sal_Bool _tablegridlines) override
Definition: vbaview.cxx:203
css::uno::Reference< css::text::XTextViewCursor > mxViewCursor
Definition: vbaview.hxx:34
InheritedHelperInterfaceWeakImpl< ooo::vba::word::XView > SwVbaView_BASE
Definition: vbaview.hxx:28
virtual sal_Bool SAL_CALL getTableGridLines() override
Definition: vbaview.cxx:195
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition: vbaview.cxx:382
virtual ::sal_Int32 SAL_CALL getSplitSpecial() override
Definition: vbaview.cxx:183
css::uno::Reference< css::text::XTextRange > getHFTextRange(sal_Int32 nType)
Definition: vbaview.cxx:245
virtual void SAL_CALL setSeekView(::sal_Int32 _seekview) override
Definition: vbaview.cxx:120
virtual void SAL_CALL setType(::sal_Int32 _type) override
Definition: vbaview.cxx:218
unsigned char sal_Bool
css::uno::Reference< css::beans::XPropertySet > mxViewSettings
Definition: vbaview.hxx:35
virtual ::sal_Int32 SAL_CALL getSeekView() override
Definition: vbaview.cxx:69
SwVbaView(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, const css::uno::Reference< css::frame::XModel > &rModel)
Definition: vbaview.cxx:51
virtual ::sal_Int32 SAL_CALL getType() override
Definition: vbaview.cxx:209
virtual void SAL_CALL setSplitSpecial(::sal_Int32 _splitspecial) override
Definition: vbaview.cxx:189