LibreOffice Module sw (master)  1
unoredlines.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_INC_UNOREDLINES_HXX
20 #define INCLUDED_SW_INC_UNOREDLINES_HXX
21 
22 #include <sal/config.h>
23 
24 #include "docary.hxx"
25 #include "unocoll.hxx"
26 #include "unobaseclass.hxx"
27 #include <svl/listener.hxx>
28 #include <com/sun/star/container/XEnumerationAccess.hpp>
29 
30 class SwRangeRedline;
31 namespace com{ namespace sun{ namespace star{
32  namespace beans{
33  class XPropertySet;
34  }
35 }}}
36 typedef
37 cppu::WeakImplHelper
38 <
39  css::container::XIndexAccess,
40  css::container::XEnumerationAccess,
41  css::lang::XServiceInfo
42 >
45  public SwUnoCollection
46 {
47 protected:
48  virtual ~SwXRedlines() override;
49 public:
50  SwXRedlines(SwDoc* pDoc);
51 
52  //XIndexAccess
53  virtual sal_Int32 SAL_CALL getCount( ) override;
54  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
55 
56  //XEnumerationAccess - was: XParagraphEnumerationAccess
57  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override;
58 
59  //XElementAccess
60  virtual css::uno::Type SAL_CALL getElementType( ) override;
61  virtual sal_Bool SAL_CALL hasElements( ) override;
62 
63  //XServiceInfo
64  virtual OUString SAL_CALL getImplementationName() override;
65  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
66  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
67 
68  static css::beans::XPropertySet* GetObject( SwRangeRedline& rRedline, SwDoc& rDoc );
69 };
70 
73  , public SvtListener
74 {
77 protected:
78  virtual ~SwXRedlineEnumeration() override;
79 public:
81 
82  //XEnumeration
83  virtual sal_Bool SAL_CALL hasMoreElements() override;
84  virtual css::uno::Any SAL_CALL nextElement() override;
85 
86  //XServiceInfo
87  virtual OUString SAL_CALL getImplementationName() override;
88  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
89  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
90 
91  virtual void Notify( const SfxHint& ) override;
92 };
93 
94 #endif
95 
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unoredlines.cxx:78
Definition: doc.hxx:185
virtual sal_Bool SAL_CALL hasElements() override
Definition: unoredlines.cxx:83
static css::beans::XPropertySet * GetObject(SwRangeRedline &rRedline, SwDoc &rDoc)
virtual sal_Int32 SAL_CALL getCount() override
Definition: unoredlines.cxx:48
virtual OUString SAL_CALL getImplementationName() override
Definition: unoredlines.cxx:92
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
SwRedlineTable::size_type nCurrentIndex
Definition: unoredlines.hxx:76
class SAL_NO_VTABLE XPropertySet
SwXRedlines(SwDoc *pDoc)
Definition: unoredlines.cxx:39
virtual OUString SAL_CALL getImplementationName() override
vector_type::size_type size_type
Definition: docary.hxx:330
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unoredlines.cxx:97
unsigned char sal_Bool
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::container::XEnumeration > SwSimpleEnumeration_Base
SwXRedlineEnumeration(SwDoc &rDoc)
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: unoredlines.cxx:70
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unoredlines.cxx:57
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~SwXRedlineEnumeration() override
virtual sal_Bool SAL_CALL hasMoreElements() override
cppu::WeakImplHelper< css::container::XIndexAccess, css::container::XEnumerationAccess, css::lang::XServiceInfo > SwRedlinesBaseClass
Definition: unoredlines.hxx:43
virtual ~SwXRedlines() override
Definition: unoredlines.cxx:44
virtual css::uno::Any SAL_CALL nextElement() override
virtual void Notify(const SfxHint &) override