LibreOffice Module svx (master) 1
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
27namespace com::sun::star {
28 namespace uno {
29 class XInterface;
30 }
31 namespace accessibility {
32 struct TextSegment;
33 }
34}
35
37class SdrObject;
38class SdrModel;
39class SdrView;
40class OutputDevice;
42class SdrText;
43
45{
46public:
47 SvxTextEditSource( SdrObject* pObj, SdrText* pText );
48
54 SvxTextEditSource( SdrObject& rObj, SdrText* pText, SdrView& rView, const OutputDevice& rViewWindow );
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
81private:
83
85};
86
87#endif
88
89/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Abstract DrawObject.
Definition: svdobj.hxx:261
virtual SvxTextForwarder * GetTextForwarder()=0
virtual void addRange(SvxUnoTextRangeBase *pNewRange)
virtual void UpdateData()=0
virtual void removeRange(SvxUnoTextRangeBase *pOldRange)
virtual std::unique_ptr< SvxEditSource > Clone() const=0
virtual SvxEditViewForwarder * GetEditViewForwarder(bool bCreate=false)
virtual const SvxUnoTextRangeBaseVec & getRanges() const
virtual SvxViewForwarder * GetViewForwarder()
virtual SfxBroadcaster & GetBroadcaster() const
SvxTextEditSource(const SvxTextEditSource &)=delete
SvxTextEditSource & operator=(const SvxTextEditSource &)=delete
rtl::Reference< SvxTextEditSourceImpl > mpImpl
Definition: unoshtxt.hxx:84
virtual Point LogicToPixel(const Point &rPoint, const MapMode &rMapMode) const=0
virtual bool IsValid() const=0
virtual Point PixelToLogic(const Point &rPoint, const MapMode &rMapMode) const=0
std::shared_ptr< osl::Mutex > const & lock()
#define SVX_DLLPRIVATE
Definition: svxdllapi.h:30
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35
std::vector< SvxUnoTextRangeBase * > SvxUnoTextRangeBaseVec