19#ifndef INCLUDED_SW_INC_ACCMAP_HXX
20#define INCLUDED_SW_INC_ACCMAP_HXX
24#include <osl/mutex.hxx>
90 ,
public std::enable_shared_from_this<SwAccessibleMap>
96 std::unique_ptr<SwAccessibleEventList_Impl>
mpEvents;
134 css::uno::Reference<css::accessibility::XAccessible>
149 css::uno::Reference<css::accessibility::XAccessible>
GetDocumentView();
152 const std::vector<std::unique_ptr<PreviewPage>>& _rPreviewPages,
155 const Size& _rPreviewWinSize );
159 bool bCreate =
true );
160 css::uno::Reference<css::accessibility::XAccessible>
GetContext(
162 bool bCreate =
true );
167 bool bCreate =
true );
168 css::uno::Reference<css::accessibility::XAccessible>
GetContext(
171 bool bCreate =
true );
179 css::uno::Reference < css::accessibility::XAccessible >
const & xAccShape);
182 css::uno::Reference < css::accessibility::XAccessible >
const & xAccParent);
203 bool bRecursive =
false,
204 bool bCanSkipInvisible =
true );
209 const SwRect& rOldFrame );
218 const ::rtl::Reference < SwAccessibleContext >& rCursorContext );
249 void UpdatePreview(
const std::vector<std::unique_ptr<PreviewPage>>& _rPreviewPages,
252 const Size& _rPreviewWinSize );
270 const css::uno::Reference< css::drawing::XShape >& _rxShape,
272 const ::accessibility::AccessibleShapeTreeInfo& _rShapeTreeInfo
275 (css::beans::XPropertySet* pSet)
override;
277 const css::uno::Reference< css::drawing::XShape > & xShape)
override;
std::vector< css::uno::Reference< css::drawing::XShape > > SwShapeList_Impl
virtual tools::Rectangle GetVisibleArea() const override
std::unique_ptr< SwAccessibleShapeMap_Impl > mpShapeMap
void AddShapeContext(const SdrObject *pObj, css::uno::Reference< css::accessibility::XAccessible > const &xAccShape)
void InvalidateRelationSet(const SwFrame *pMaster, const SwFrame *pFollow)
const OUString & GetDocName() const
o3tl::sorted_vector< SwAccessibleParagraph * > m_setParaAdd
void InvalidateShapeInParaSelection()
tools::Rectangle CoreToPixel(const SwRect &rRect) const
void InvalidatePosOrSize(const SwFrame *pFrame, const SdrObject *pObj, vcl::Window *pWindow, const SwRect &rOldFrame)
std::unique_ptr< SwAccessibleSelectedParas_Impl > mpSelectedParas
std::unique_ptr< SwAccessibleSelectedParas_Impl > BuildSelectedParas()
method to build up a new data structure of the accessible paragraphs, which have a selection
std::unique_ptr< SwAccessibleContextMap_Impl > mpFrameMap
std::unique_ptr< SwAccessibleEventMap_Impl > mpEventMap
void UpdatePreview(const std::vector< std::unique_ptr< PreviewPage > > &_rPreviewPages, const Fraction &_rScale, const SwPageFrame *_pSelectedPageFrame, const Size &_rPreviewWinSize)
void InvalidateParaTextSelection(const SwTextFrame &_rTextFrame)
invalidation of text selection of a paragraph
void InvalidateCursorPosition(const css::uno::Reference< css::accessibility::XAccessible > &rAcc)
void InvalidatePreviewSelection(sal_uInt16 nSelPage)
void InvalidateRelationSet_(const SwFrame *pFrame, bool bFrom)
void FireEvent(const SwAccessibleEvent_Impl &rEvent)
::osl::Mutex maEventMutex
virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessibleCaption(const css::uno::Reference< css::drawing::XShape > &xShape) override
bool Contains(const SwFrame *pFrame) const
void InvalidateEditableStates(const SwFrame *_pFrame)
o3tl::sorted_vector< SwAccessibleParagraph * > m_setParaRemove
SwAccessibleMap(SwViewShell *pSh)
void SetCursorContext(const ::rtl::Reference< SwAccessibleContext > &rCursorContext)
void GetMapMode(const Point &_rPoint, MapMode &_orMapMode) const
get mapping mode for LogicToPixel and PixelToLogic conversions
SwShapeList_Impl mvShapes
css::uno::WeakReference< css::accessibility::XAccessible > mxCursorContext
virtual bool ReplaceChild(::accessibility::AccessibleShape *pCurrentChild, const css::uno::Reference< css::drawing::XShape > &_rxShape, const tools::Long _nIndex, const ::accessibility::AccessibleShapeTreeInfo &_rShapeTreeInfo) override
static bool IsInSameLevel(const SdrObject *pObj, const SwFEShell *pFESh)
void A11yDispose(const SwFrame *pFrame, const SdrObject *pObj, vcl::Window *pWindow, bool bRecursive=false, bool bCanSkipInvisible=true)
void RemoveGroupContext(const SdrObject *pParentObj)
virtual bool IsDocumentSelAll() override
void InvalidateAttr(const SwTextFrame &rTextFrame)
virtual ~SwAccessibleMap() override
std::unique_ptr< SwAccPreviewData > mpPreview
for page preview: store preview data, VisArea, and mapping of preview-to-display coordinates
std::unique_ptr< SwAccessibleEventList_Impl > mpEvents
sal_Int32 GetChildIndex(const SwFrame &rParentFrame, vcl::Window &rChild) const
css::uno::Reference< css::accessibility::XAccessible > GetDocumentView_(bool bPagePreview)
void InvalidateContent(const SwFrame *pFrame)
Size GetPreviewPageSize(sal_uInt16 _nPreviewPageNum) const
get size of a dedicated preview page
css::uno::Reference< css::accessibility::XAccessible > GetDocumentPreview(const std::vector< std::unique_ptr< PreviewPage > > &_rPreviewPages, const Fraction &_rScale, const SwPageFrame *_pSelectedPageFrame, const Size &_rPreviewWinSize)
Point PixelToCore(const Point &rPoint) const
void InvalidateShapeSelection()
css::uno::Reference< css::accessibility::XAccessible > GetDocumentView()
void DoInvalidateShapeSelection(bool bInvalidateFocusMode=false)
::rtl::Reference< SwAccessibleContext > GetContextImpl(const SwFrame *pFrame, bool bCreate=true)
virtual ::accessibility::AccessibleControlShape * GetAccControlShapeFromModel(css::beans::XPropertySet *pSet) override
void AppendEvent(const SwAccessibleEvent_Impl &rEvent)
void InvalidateParaFlowRelation(const SwTextFrame &_rTextFrame, const bool _bFrom)
invalidation CONTENT_FLOWS_FROM/_TO relation of a paragraph
const SwRect & GetVisArea() const
void RemoveContext(const SwFrame *pFrame)
void InvalidateTextSelectionOfAllParas()
invalidation of text selection of all paragraphs
bool IsPageSelected(const SwPageFrame *pPageFrame) const
std::unique_ptr< SwAccessibleContextMap_Impl > mpSelectedFrameMap
css::uno::Reference< css::accessibility::XAccessible > GetContext(const SwFrame *pFrame, bool bCreate=true)
void AddGroupContext(const SdrObject *pParentObj, css::uno::Reference< css::accessibility::XAccessible > const &xAccParent)
virtual Point LogicToPixel(const Point &rPoint) const override
SwViewShell * GetShell() const
Base class of the Writer layout elements.
A page of the document layout.
Of course Writer needs its own rectangles.
Represents the visualization of a paragraph.
data structure for a preview page in the current preview layout