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/text/XTextContent.hpp>
27
28#include <unobaseclass.hxx>
29
30class SwDoc;
32
34class SwXLineBreak final
35 : public cppu::WeakImplHelper<css::beans::XPropertySet, css::lang::XServiceInfo,
36 css::text::XTextContent>
37{
38 class Impl;
40
43
44 ~SwXLineBreak() override;
45
46public:
48
49 // XPropertySet
50 css::uno::Reference<css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override;
51 void SAL_CALL setPropertyValue(const OUString& rPropertyName,
52 const css::uno::Any& rValue) override;
53 css::uno::Any SAL_CALL getPropertyValue(const OUString& rPropertyName) override;
54 void SAL_CALL addPropertyChangeListener(
55 const OUString& rPropertyName,
56 const css::uno::Reference<css::beans::XPropertyChangeListener>& xListener) override;
57 void SAL_CALL removePropertyChangeListener(
58 const OUString& rPropertyName,
59 const css::uno::Reference<css::beans::XPropertyChangeListener>& xListener) override;
60 void SAL_CALL addVetoableChangeListener(
61 const OUString& rPropertyName,
62 const css::uno::Reference<css::beans::XVetoableChangeListener>& xListener) override;
63 void SAL_CALL removeVetoableChangeListener(
64 const OUString& rPropertyName,
65 const css::uno::Reference<css::beans::XVetoableChangeListener>& xListener) override;
66
67 // XServiceInfo
68 OUString SAL_CALL getImplementationName() override;
69 sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override;
70 css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
71
72 // XTextContent
73 void SAL_CALL attach(const css::uno::Reference<css::text::XTextRange>& xTextRange) override;
74 css::uno::Reference<css::text::XTextRange> SAL_CALL getAnchor() override;
75
76 // XComponent, via XTextContent
77 void SAL_CALL dispose() override;
78 void SAL_CALL
79 addEventListener(const css::uno::Reference<css::lang::XEventListener>& xListener) override;
80 void SAL_CALL
81 removeEventListener(const css::uno::Reference<css::lang::XEventListener>& xListener) override;
82};
83
84#endif // INCLUDED_SW_SOURCE_CORE_INC_UNOLINEBREAK_HXX
85
86/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: doc.hxx:197
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
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
~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