1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef SD_ACCESSIBILITY_ACCESSIBLE_OUTLINE_EDITSOURCE_HXX
21 #define SD_ACCESSIBILITY_ACCESSIBLE_OUTLINE_EDITSOURCE_HXX
24 #include <vcl/svapp.hxx>
25 #include <svl/brdcst.hxx>
26 #include <svl/lstner.hxx>
27 #include <editeng/unoedsrc.hxx>
28 #include <editeng/editdata.hxx>
29 #include <editeng/unoforou.hxx>
30 #include <editeng/unoviwou.hxx>
37 namespace accessibility
39 /** Implementation of the SvxEditSource interface in the SdOutlineView
41 This class connects the SdOutlineView and its EditEngine
42 outliner with the AccessibleTextHelper, which provides all
43 necessary functionality to make the outliner text accessible
48 class AccessibleOutlineEditSource
: public SvxEditSource
, public SvxViewForwarder
, public SfxBroadcaster
, public SfxListener
51 /// Create an SvxEditSource interface for the given Outliner
52 AccessibleOutlineEditSource(
53 SdrOutliner
& rOutliner
,
55 OutlinerView
& rOutlView
,
56 const ::Window
& rViewWindow
);
57 virtual ~AccessibleOutlineEditSource();
59 /// This method is disabled and always returns NULL
60 virtual SvxEditSource
* Clone() const;
61 virtual SvxTextForwarder
* GetTextForwarder();
62 virtual SvxViewForwarder
* GetViewForwarder();
63 virtual SvxEditViewForwarder
* GetEditViewForwarder( sal_Bool bCreate
= sal_False
);
64 virtual void UpdateData();
65 virtual SfxBroadcaster
& GetBroadcaster() const;
68 virtual sal_Bool
IsValid() const;
69 virtual Rectangle
GetVisArea() const;
70 virtual Point
LogicToPixel( const Point
& rPoint
, const MapMode
& rMapMode
) const;
71 virtual Point
PixelToLogic( const Point
& rPoint
, const MapMode
& rMapMode
) const;
74 virtual void Notify( SfxBroadcaster
& rBC
, const SfxHint
& rHint
);
78 // declared, but not defined
79 AccessibleOutlineEditSource( const AccessibleOutlineEditSource
& );
80 AccessibleOutlineEditSource
& operator=( const AccessibleOutlineEditSource
& );
82 DECL_LINK( NotifyHdl
, EENotify
* );
85 const ::Window
& mrWindow
;
86 SdrOutliner
* mpOutliner
;
87 OutlinerView
* mpOutlinerView
;
89 SvxOutlinerForwarder mTextForwarder
;
90 SvxDrawOutlinerViewForwarder mViewForwarder
;
94 } // end of namespace accessibility
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */