LibreOffice Module sw (master) 1
unolinebreak.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
20#ifndef INCLUDED_SW_SOURCE_CORE_INC_UNOLINEBREAK_HXX
21#define INCLUDED_SW_SOURCE_CORE_INC_UNOLINEBREAK_HXX
22
24#include <com/sun/star/beans/XPropertySet.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
26#include <com/sun/star/lang/XUnoTunnel.hpp>
27#include <com/sun/star/text/XTextContent.hpp>
28
29#include <unobaseclass.hxx>
30
31class SwDoc;
33
35class SwXLineBreak final
36 : public cppu::WeakImplHelper<css::beans::XPropertySet, css::lang::XServiceInfo,
37 css::text::XTextContent, css::lang::XUnoTunnel>
38{
39 class Impl;
41
44
45 ~SwXLineBreak() override;
46
47public:
49
50 // XPropertySet
51 css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override;
52 void SAL_CALL setPropertyValue(const OUString& rPropertyName,
53 const css::uno::Any& rValue) override;
54 css::uno::Any SAL_CALL getPropertyValue(const OUString& rPropertyName) override;
55 void SAL_CALL addPropertyChangeListener(
56 const OUString& rPropertyName,
57 const css::uno::Reference<css::beans::XPropertyChangeListener>& xListener) override;
58 void SAL_CALL removePropertyChangeListener(
59 const OUString& rPropertyName,
60 const css::uno::Reference<css::beans::XPropertyChangeListener>& xListener) override;
61 void SAL_CALL addVetoableChangeListener(
62 const OUString& rPropertyName,
63 const css::uno::Reference<css::beans::XVetoableChangeListener>& xListener) override;
64 void SAL_CALL removeVetoableChangeListener(
65 const OUString& rPropertyName,
66 const css::uno::Reference<css::beans::XVetoableChangeListener>& xListener) override;
67
68 // XServiceInfo
69 OUString SAL_CALL getImplementationName() override;
70 sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override;
71 css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
72
73 // XTextContent
74 void SAL_CALL attach(const css::uno::Reference<css::text::XTextRange>& xTextRange) override;
75 css::uno::Reference<css::text::XTextRange> SAL_CALL getAnchor() override;
76
77 // XComponent, via XTextContent
78 void SAL_CALL dispose() override;
79 void SAL_CALL
80 addEventListener(const css::uno::Reference<css::lang::XEventListener>& xListener) override;
81 void SAL_CALL
82 removeEventListener(const css::uno::Reference<css::lang::XEventListener>& xListener) override;
83
84 // XUnoTunnel
85 sal_Int64 SAL_CALL getSomething(const css::uno::Sequence<sal_Int8>& rIdentifier) override;
86
87 static const css::uno::Sequence<sal_Int8>& getUnoTunnelId();
88};
89
90#endif // INCLUDED_SW_SOURCE_CORE_INC_UNOLINEBREAK_HXX
91
92/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: doc.hxx:194
SfxPoolItem subclass that wraps an SwLineBreakClear.
The inner part SwXLineBreak, which is deleted with a locked SolarMutex.
UNO API wrapper around an SwFormatLineBreak, exposed as the com.sun.star.text.LineBreak service.
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
void SAL_CALL addPropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
void SAL_CALL removeVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
css::uno::Any SAL_CALL getPropertyValue(const OUString &rPropertyName) override
::sw::UnoImplPtr< Impl > m_pImpl
sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &rIdentifier) override
void SAL_CALL addVetoableChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override
void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
void SAL_CALL removePropertyChangeListener(const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor() override
void SAL_CALL attach(const css::uno::Reference< css::text::XTextRange > &xTextRange) override
sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
void SAL_CALL setPropertyValue(const OUString &rPropertyName, const css::uno::Any &rValue) override
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId()
~SwXLineBreak() override
static rtl::Reference< SwXLineBreak > CreateXLineBreak(SwFormatLineBreak *pLineBreakFormat)
void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
OUString SAL_CALL getImplementationName() override
void SAL_CALL dispose() override
std::unique_ptr< T, UnoImplPtrDeleter< T > > UnoImplPtr
Smart pointer class ensuring that the pointed object is deleted with a locked SolarMutex.
unsigned char sal_Bool