23 #include <section.hxx>
51 while( aIter != aVisList.
end() )
61 nCount += GetChildCount( rAccMap,
100 aRet = GetChild( rAccMap,
113 while( aIter != aVisList.
end() && !aRet.
IsValid() )
126 aRet = GetChild( rAccMap,
144 bool bInPagePreview )
153 while( aIter != aVisMap.
cend() && !bFound )
158 if( rChild == rLower )
166 bFound = GetChildIndex( rAccMap,
168 rPos, bInPagePreview );
180 while( aIter != aVisList.
end() && !bFound )
185 if( rChild == rLower )
193 bFound = GetChildIndex( rAccMap,
195 rPos, bInPagePreview );
206 const Point& rPixPos,
226 if( !aLogBounds.IsEmpty() )
229 if( aPixBounds.Contains( rPixPos ) )
236 aRet = GetChildAtPixel( rVisArea, *(rLower.
GetSwFrame()), rPixPos,
237 bInPagePreview, rAccMap );
249 while( aIter != aVisList.
end() && !aRet.
IsValid() )
257 if( !aLogBounds.IsEmpty() )
260 if( aPixBounds.Contains( rPixPos ) )
267 aRet = GetChildAtPixel( rVisArea, *(rLower.
GetSwFrame()), rPixPos,
268 bInPagePreview, rAccMap );
280 std::list< SwAccessibleChild >& rChildren,
281 bool bInPagePreview )
288 while( aIter != aVisMap.
cend() )
293 rChildren.push_back( rLower );
298 GetChildren( rAccMap, rVisArea, *(rLower.
GetSwFrame()),
299 rChildren, bInPagePreview );
310 while( aIter != aVisList.
end() )
315 rChildren.push_back( rLower );
320 GetChildren( rAccMap, rVisArea, *(rLower.
GetSwFrame()),
321 rChildren, bInPagePreview );
341 const SwFrame *pFrame = GetFrame();
345 OSL_ENSURE( pVSh,
"no view shell" );
362 OSL_ENSURE( pVSh,
"no view shell" );
399 aFrame = static_cast<const SwFlyFrame*>(pFrame)->GetAnchorFrame();
409 bool bIsPagePreview ) :
410 maVisArea( rVisArea ),
412 mbIsInPagePreview( bIsPagePreview )
422 bool bInPagePreview )
424 return rFrameOrObj.
GetParent( bInPagePreview );
446 sal_Int32 nPos )
const
468 std::list< sw::access::SwAccessibleChild >& rChildren )
const
SvxNumType GetNumberingType() const
Base class of the Writer layout elements.
const_reverse_iterator crbegin() const
const SvxBrushItem & GetBackground(bool=true) const
bool IsTransparent() const
SwRect GetBounds(const SwAccessibleMap &rAccMap) const
const_iterator cbegin() const
constexpr::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
const_reverse_iterator crend() const
Of course Writer needs its own rectangles.
static sal_Int32 GetChildCount(SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame *pFrame, bool bInPagePreviewr)
bool IsInPagePreview() const
std::map< key_type, mapped_type, key_compare >::const_iterator const_iterator
static sw::access::SwAccessibleChild GetChild(SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame &rFrame, sal_Int32 &rPos, bool bInPagePreview)
SvxGraphicPosition GetGraphicPos() const
const SwFrame * GetFrame() const
std::map< key_type, mapped_type, key_compare >::const_reverse_iterator const_reverse_iterator
SwRect & Intersection(const SwRect &rRect)
OUString FormatNumber(sal_uInt32 nNum, SvxNumType nFormat, LanguageType nLang)
expand numbering
const SwAttrSet * GetAttrSet() const
WARNING: this may not return correct RES_PAGEDESC/RES_BREAK items for SwTextFrame, use GetBreakItem()/GetPageDescItem() instead.
bool IsOpaque(SwViewShell const *pVSh) const
sal_uInt16 GetVirtPageNum() const
const Color & GetColor() const
const SwFrame * GetSwFrame() const
static void GetChildren(SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame &rFrame, std::list< sw::access::SwAccessibleChild > &rChildren, bool bInPagePreview)
const_iterator begin() const
const SwFrame * GetParent(const bool bInPagePreview) const
SwPageFrame * FindPageFrame()
static bool IsIndexShadings()
SwPageDesc * GetPageDesc()
static bool GetChildIndex(SwAccessibleMap &rAccMap, const SwRect &rVisArea, const SwFrame &rFrame, const sw::access::SwAccessibleChild &rChild, sal_Int32 &rPos, bool bInPagePreview)
SwLayoutFrame * GetUpper()
SwAccessibleFrame(const SwRect &rVisArea, const SwFrame *pFrame, bool bIsPagePreview)
const_iterator end() const
SwRect GetBounds(const SwAccessibleMap &rAccMap, const SwFrame *pFrame=nullptr)
virtual ~SwAccessibleFrame()
bool IsEditable(SwViewShell const *pVSh) const
OUString GetFormattedPageNumber() const
const SwViewOption * GetViewOptions() const
bool IsAccessible(bool bPagePreview) const
const_iterator cend() const
tools::Rectangle CoreToPixel(const SwRect &rRect) const
const SwFrame * GetParent() const
static bool IsSortingRequired(const SwFrame &rFrame)
SwRect GetBox(const SwAccessibleMap &rAccMap) const
SectionType GetType() const
bool IsProtected() const
Is the Frame or rather the Section in which it lies protected?
static sw::access::SwAccessibleChild GetChildAtPixel(const SwRect &rVisArea, const SwFrame &rFrame, const Point &rPos, bool bInPagePreview, SwAccessibleMap &rAccMap)
bool IsShowing(const SwAccessibleMap &rAccMap, const sw::access::SwAccessibleChild &rFrameOrObj) const
const SvxNumberType & GetNumType() const