LibreOffice Module svx (master)
1
include
svx
unoshtxt.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_SVX_UNOSHTXT_HXX
21
#define INCLUDED_SVX_UNOSHTXT_HXX
22
23
#include <memory>
24
#include <
editeng/unoedsrc.hxx
>
25
#include <
svx/svxdllapi.h
>
26
27
namespace
com::sun::star
{
28
namespace
uno
{
29
class
XInterface
;
30
}
31
namespace
accessibility
{
32
struct
TextSegment;
33
}
34
}
35
36
class
SvxTextForwarder
;
37
class
SdrObject
;
38
class
SdrModel
;
39
class
SdrView
;
40
class
OutputDevice
;
41
class
SvxTextEditSourceImpl
;
42
class
SdrText
;
43
44
class
SVXCORE_DLLPUBLIC
SvxTextEditSource
final :
public
SvxEditSource
,
public
SvxViewForwarder
45
{
46
public
:
47
SvxTextEditSource
(
SdrObject
* pObj,
SdrText
* pText );
48
54
SvxTextEditSource
(
SdrObject
& rObj,
SdrText
* pText,
SdrView
& rView,
const
OutputDevice
& rViewWindow );
55
SvxTextEditSource
(
const
SvxTextEditSource
&) =
delete
;
56
SvxTextEditSource
&
operator=
(
const
SvxTextEditSource
&) =
delete
;
57
virtual
~SvxTextEditSource
()
override
;
58
59
virtual
std::unique_ptr<SvxEditSource>
Clone
()
const override
;
60
virtual
SvxTextForwarder
*
GetTextForwarder
()
override
;
61
virtual
SvxViewForwarder
*
GetViewForwarder
()
override
;
62
virtual
SvxEditViewForwarder
*
GetEditViewForwarder
(
bool
bCreate =
false
)
override
;
63
virtual
void
UpdateData
()
override
;
64
65
virtual
void
addRange
( SvxUnoTextRangeBase* pNewRange )
override
;
66
virtual
void
removeRange
( SvxUnoTextRangeBase* pOldRange )
override
;
67
virtual
const
SvxUnoTextRangeBaseVec
&
getRanges
()
const override
;
68
69
virtual
SfxBroadcaster
&
GetBroadcaster
()
const override
;
70
71
void
lock
();
72
void
unlock();
73
74
// the SvxViewForwarder interface
75
virtual
bool
IsValid
()
const override
;
76
virtual
Point
LogicToPixel
(
const
Point
&,
const
MapMode
& )
const override
;
77
virtual
Point
PixelToLogic
(
const
Point
&,
const
MapMode
& )
const override
;
78
79
void
UpdateOutliner();
80
81
private
:
82
SVX_DLLPRIVATE
SvxTextEditSource
(
SvxTextEditSourceImpl
* pImpl );
83
84
rtl::Reference<SvxTextEditSourceImpl>
mpImpl
;
85
};
86
87
#endif
88
89
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Point
SdrModel
Definition:
svdmodel.hxx:149
SdrObject
Abstract DrawObject.
Definition:
svdobj.hxx:260
SdrText
Definition:
svdtext.hxx:43
SdrView
Definition:
svdview.hxx:147
SfxBroadcaster
SvxEditSource
SvxEditSource::GetTextForwarder
virtual SvxTextForwarder * GetTextForwarder()=0
SvxEditSource::addRange
virtual void addRange(SvxUnoTextRangeBase *pNewRange)
SvxEditSource::UpdateData
virtual void UpdateData()=0
SvxEditSource::removeRange
virtual void removeRange(SvxUnoTextRangeBase *pOldRange)
SvxEditSource::Clone
virtual std::unique_ptr< SvxEditSource > Clone() const=0
SvxEditSource::GetEditViewForwarder
virtual SvxEditViewForwarder * GetEditViewForwarder(bool bCreate=false)
SvxEditSource::getRanges
virtual const SvxUnoTextRangeBaseVec & getRanges() const
SvxEditSource::GetViewForwarder
virtual SvxViewForwarder * GetViewForwarder()
SvxEditSource::GetBroadcaster
virtual SfxBroadcaster & GetBroadcaster() const
SvxEditViewForwarder
SvxTextEditSourceImpl
@descr
Definition:
unoshtxt.cxx:77
SvxTextEditSource
Definition:
unoshtxt.hxx:45
SvxTextEditSource::SvxTextEditSource
SvxTextEditSource(const SvxTextEditSource &)=delete
SvxTextEditSource::operator=
SvxTextEditSource & operator=(const SvxTextEditSource &)=delete
SvxTextEditSource::mpImpl
rtl::Reference< SvxTextEditSourceImpl > mpImpl
Definition:
unoshtxt.hxx:84
SvxTextForwarder
SvxViewForwarder
SvxViewForwarder::LogicToPixel
virtual Point LogicToPixel(const Point &rPoint, const MapMode &rMapMode) const=0
SvxViewForwarder::IsValid
virtual bool IsValid() const=0
SvxViewForwarder::PixelToLogic
virtual Point PixelToLogic(const Point &rPoint, const MapMode &rMapMode) const=0
rtl::Reference< SvxTextEditSourceImpl >
XInterface
accessibility
com::sun::star
lock
std::shared_ptr< osl::Mutex > const & lock()
uno
MapMode
OutputDevice
svxdllapi.h
SVX_DLLPRIVATE
#define SVX_DLLPRIVATE
Definition:
svxdllapi.h:30
SVXCORE_DLLPUBLIC
#define SVXCORE_DLLPUBLIC
Definition:
svxdllapi.h:35
unoedsrc.hxx
SvxUnoTextRangeBaseVec
std::vector< SvxUnoTextRangeBase * > SvxUnoTextRangeBaseVec
Generated on Sun Jul 30 2023 04:27:41 for LibreOffice Module svx (master) by
1.9.3