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#pragma once
20
21#include <ooo/vba/word/XView.hpp>
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
28
30{
31private:
32 css::uno::Reference< css::frame::XModel > mxModel;
33 css::uno::Reference< css::text::XTextViewCursor > mxViewCursor;
34 css::uno::Reference< css::beans::XPropertySet > mxViewSettings;
35
38 css::uno::Reference< css::text::XTextRange > getHFTextRange( sal_Int32 nType );
39
40public:
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;
45
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;
57
58 // XHelperInterface
59 virtual OUString getServiceImplName() override;
60 virtual css::uno::Sequence<OUString> getServiceNames() override;
61};
62
63/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setSplitSpecial(::sal_Int32 _splitspecial) override
Definition: vbaview.cxx:197
css::uno::Reference< css::text::XTextViewCursor > mxViewCursor
Definition: vbaview.hxx:33
virtual ::sal_Int32 SAL_CALL getType() override
Definition: vbaview.cxx:217
css::uno::Reference< css::frame::XModel > mxModel
Definition: vbaview.hxx:32
virtual sal_Bool SAL_CALL getTableGridLines() override
Definition: vbaview.cxx:203
virtual ~SwVbaView() override
Definition: vbaview.cxx:60
css::uno::Reference< css::text::XTextRange > getHFTextRange(sal_Int32 nType)
Definition: vbaview.cxx:253
css::uno::Reference< css::beans::XPropertySet > mxViewSettings
Definition: vbaview.hxx:34
SwVbaView(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< css::frame::XModel > xModel)
Definition: vbaview.cxx:47
virtual void SAL_CALL setTableGridLines(sal_Bool _tablegridlines) override
Definition: vbaview.cxx:211
virtual void SAL_CALL setType(::sal_Int32 _type) override
Definition: vbaview.cxx:226
virtual css::uno::Sequence< OUString > getServiceNames() override
Definition: vbaview.cxx:390
virtual OUString getServiceImplName() override
Definition: vbaview.cxx:384
virtual void SAL_CALL setSeekView(::sal_Int32 _seekview) override
Definition: vbaview.cxx:128
void SAL_CALL setShowAll(sal_Bool bSet) override
Definition: vbaview.cxx:71
virtual ::sal_Int32 SAL_CALL getSplitSpecial() override
Definition: vbaview.cxx:191
sal_Bool SAL_CALL getShowAll() override
Definition: vbaview.cxx:64
virtual ::sal_Int32 SAL_CALL getSeekView() override
Definition: vbaview.cxx:77
unsigned char sal_Bool
InheritedHelperInterfaceWeakImpl< ooo::vba::word::XView > SwVbaView_BASE
Definition: vbaview.hxx:27