summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-03-30 20:27:55 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-03-31 06:27:11 +0000
commita5a571307fb3306b74ab46b085cde6388270a770 (patch)
tree66d4ce12bb5236c50ab6a5d253bc8c6d8b5d292d /accessibility
parent17d821af6bb9df93569836a92f6bed975587fc6c (diff)
tdf#82580 tools: rename Rectangle to tools::Rectangle
Mostly generated using make check COMPILER_EXTERNAL_TOOL=1 CCACHE_PREFIX=clang-rename-wrapper RENAME_ARGS="-qualified-name=Rectangle -new-name=tools::Rectangle" Except some modules have their own foo::tools namespace, so there have to use ::tools::Rectangle. This commit just moves the class from the global namespace, it does not update pre/postwin.h yet. Change-Id: I42b2de3c6f769fcf28cfe086f98eb31e42a305f2 Reviewed-on: https://gerrit.libreoffice.org/35923 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/inc/extended/AccessibleBrowseBox.hxx4
-rw-r--r--accessibility/inc/extended/AccessibleBrowseBoxBase.hxx8
-rw-r--r--accessibility/inc/extended/AccessibleBrowseBoxHeaderBar.hxx4
-rw-r--r--accessibility/inc/extended/AccessibleBrowseBoxHeaderCell.hxx4
-rw-r--r--accessibility/inc/extended/AccessibleBrowseBoxTable.hxx4
-rw-r--r--accessibility/inc/extended/AccessibleGridControl.hxx4
-rw-r--r--accessibility/inc/extended/AccessibleGridControlBase.hxx8
-rw-r--r--accessibility/inc/extended/AccessibleGridControlHeader.hxx4
-rw-r--r--accessibility/inc/extended/AccessibleGridControlHeaderCell.hxx4
-rw-r--r--accessibility/inc/extended/AccessibleGridControlTable.hxx4
-rw-r--r--accessibility/inc/extended/AccessibleGridControlTableCell.hxx4
-rw-r--r--accessibility/inc/extended/accessiblebrowseboxcell.hxx4
-rw-r--r--accessibility/inc/extended/accessibleiconchoicectrlentry.hxx8
-rw-r--r--accessibility/inc/extended/accessiblelistboxentry.hxx8
-rw-r--r--accessibility/inc/helper/IComboListBoxHelper.hxx10
-rw-r--r--accessibility/inc/helper/listboxhelper.hxx20
-rw-r--r--accessibility/source/extended/AccessibleBrowseBox.cxx4
-rw-r--r--accessibility/source/extended/AccessibleBrowseBoxBase.cxx10
-rw-r--r--accessibility/source/extended/AccessibleBrowseBoxHeaderBar.cxx4
-rw-r--r--accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx10
-rw-r--r--accessibility/source/extended/AccessibleBrowseBoxTable.cxx4
-rw-r--r--accessibility/source/extended/AccessibleGridControl.cxx4
-rw-r--r--accessibility/source/extended/AccessibleGridControlBase.cxx10
-rw-r--r--accessibility/source/extended/AccessibleGridControlHeader.cxx20
-rw-r--r--accessibility/source/extended/AccessibleGridControlHeaderCell.cxx16
-rw-r--r--accessibility/source/extended/AccessibleGridControlTable.cxx16
-rw-r--r--accessibility/source/extended/AccessibleGridControlTableCell.cxx16
-rw-r--r--accessibility/source/extended/accessiblebrowseboxcell.cxx4
-rw-r--r--accessibility/source/extended/accessibleiconchoicectrlentry.cxx24
-rw-r--r--accessibility/source/extended/accessiblelistboxentry.cxx26
-rw-r--r--accessibility/source/extended/accessibletabbar.cxx4
-rw-r--r--accessibility/source/extended/accessibletabbarpagelist.cxx2
-rw-r--r--accessibility/source/extended/textwindowaccessibility.cxx4
-rw-r--r--accessibility/source/standard/accessiblemenubasecomponent.cxx2
-rw-r--r--accessibility/source/standard/accessiblemenucomponent.cxx4
-rw-r--r--accessibility/source/standard/accessiblemenuitemcomponent.cxx2
-rw-r--r--accessibility/source/standard/vclxaccessibleedit.cxx2
-rw-r--r--accessibility/source/standard/vclxaccessiblelistitem.cxx12
-rw-r--r--accessibility/source/standard/vclxaccessiblemenuitem.cxx6
-rw-r--r--accessibility/source/standard/vclxaccessiblestatusbaritem.cxx8
-rw-r--r--accessibility/source/standard/vclxaccessibletabpage.cxx8
-rw-r--r--accessibility/source/standard/vclxaccessibletabpagewindow.cxx4
-rw-r--r--accessibility/source/standard/vclxaccessibletoolboxitem.cxx6
43 files changed, 167 insertions, 167 deletions
diff --git a/accessibility/inc/extended/AccessibleBrowseBox.hxx b/accessibility/inc/extended/AccessibleBrowseBox.hxx
index 781a9afeb0d8..ea96ca44be00 100644
--- a/accessibility/inc/extended/AccessibleBrowseBox.hxx
+++ b/accessibility/inc/extended/AccessibleBrowseBox.hxx
@@ -141,10 +141,10 @@ protected:
/** @attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) relative to the parent window. */
- virtual Rectangle implGetBoundingBox() override;
+ virtual tools::Rectangle implGetBoundingBox() override;
/** @attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) in screen coordinates. */
- virtual Rectangle implGetBoundingBoxOnScreen() override;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() override;
// internal helper methods
diff --git a/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx b/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx
index 0448ddfa930b..64c9636e9be5 100644
--- a/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx
+++ b/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx
@@ -247,11 +247,11 @@ protected:
/** Derived classes return the bounding box relative to the parent window.
@attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) relative to the parent window. */
- virtual Rectangle implGetBoundingBox() = 0;
+ virtual tools::Rectangle implGetBoundingBox() = 0;
/** Derived classes return the bounding box in screen coordinates.
@attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) in screen coordinates. */
- virtual Rectangle implGetBoundingBoxOnScreen() = 0;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() = 0;
/** Creates a new AccessibleStateSetHelper and fills it with states of the
current object. This method calls FillStateSet at the BrowseBox which
@@ -272,13 +272,13 @@ protected:
@return The bounding box (VCL rect.) relative to the parent object.
@throws css::lang::DisposedException
*/
- Rectangle getBoundingBox();
+ tools::Rectangle getBoundingBox();
/** Locks all mutex's and calculates the bounding box in screen
coordinates.
@return The bounding box (VCL rect.) in screen coordinates.
@throws css::lang::DisposedException
*/
- Rectangle getBoundingBoxOnScreen();
+ tools::Rectangle getBoundingBoxOnScreen();
::comphelper::AccessibleEventNotifier::TClientId getClientId() const { return m_aClientId; }
void setClientId(::comphelper::AccessibleEventNotifier::TClientId _aNewClientId) { m_aClientId = _aNewClientId; }
diff --git a/accessibility/inc/extended/AccessibleBrowseBoxHeaderBar.hxx b/accessibility/inc/extended/AccessibleBrowseBoxHeaderBar.hxx
index c81c836a4de8..7ad695f235f0 100644
--- a/accessibility/inc/extended/AccessibleBrowseBoxHeaderBar.hxx
+++ b/accessibility/inc/extended/AccessibleBrowseBoxHeaderBar.hxx
@@ -162,10 +162,10 @@ protected:
/** @attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) relative to the parent window. */
- virtual Rectangle implGetBoundingBox() override;
+ virtual tools::Rectangle implGetBoundingBox() override;
/** @attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) in screen coordinates. */
- virtual Rectangle implGetBoundingBoxOnScreen() override;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() override;
/** @attention This method requires locked mutex's and a living object.
@return The count of used rows. */
diff --git a/accessibility/inc/extended/AccessibleBrowseBoxHeaderCell.hxx b/accessibility/inc/extended/AccessibleBrowseBoxHeaderCell.hxx
index c9659708f9aa..fe7e5e88c399 100644
--- a/accessibility/inc/extended/AccessibleBrowseBoxHeaderCell.hxx
+++ b/accessibility/inc/extended/AccessibleBrowseBoxHeaderCell.hxx
@@ -63,9 +63,9 @@ namespace accessibility
::utl::AccessibleStateSetHelper* implCreateStateSetHelper() override;
protected:
- virtual Rectangle implGetBoundingBox() override;
+ virtual tools::Rectangle implGetBoundingBox() override;
- virtual Rectangle implGetBoundingBoxOnScreen() override;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() override;
};
}
diff --git a/accessibility/inc/extended/AccessibleBrowseBoxTable.hxx b/accessibility/inc/extended/AccessibleBrowseBoxTable.hxx
index a6735dcdffcc..25ff5b478f97 100644
--- a/accessibility/inc/extended/AccessibleBrowseBoxTable.hxx
+++ b/accessibility/inc/extended/AccessibleBrowseBoxTable.hxx
@@ -107,10 +107,10 @@ protected:
/** @attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) relative to the parent window. */
- virtual Rectangle implGetBoundingBox() override;
+ virtual tools::Rectangle implGetBoundingBox() override;
/** @attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) in screen coordinates. */
- virtual Rectangle implGetBoundingBoxOnScreen() override;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() override;
// internal helper methods
diff --git a/accessibility/inc/extended/AccessibleGridControl.hxx b/accessibility/inc/extended/AccessibleGridControl.hxx
index 362dee2ea120..3bcaaac1d288 100644
--- a/accessibility/inc/extended/AccessibleGridControl.hxx
+++ b/accessibility/inc/extended/AccessibleGridControl.hxx
@@ -111,10 +111,10 @@ protected:
/** @attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) relative to the parent window. */
- virtual Rectangle implGetBoundingBox() override;
+ virtual tools::Rectangle implGetBoundingBox() override;
/** @attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) in screen coordinates. */
- virtual Rectangle implGetBoundingBoxOnScreen() override;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() override;
// internal helper methods ------------------------------------------------
diff --git a/accessibility/inc/extended/AccessibleGridControlBase.hxx b/accessibility/inc/extended/AccessibleGridControlBase.hxx
index 3c8dd7cbb11e..2c9cbd42fae1 100644
--- a/accessibility/inc/extended/AccessibleGridControlBase.hxx
+++ b/accessibility/inc/extended/AccessibleGridControlBase.hxx
@@ -214,11 +214,11 @@ protected:
/** Derived classes return the bounding box relative to the parent window.
@attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) relative to the parent window. */
- virtual Rectangle implGetBoundingBox() = 0;
+ virtual tools::Rectangle implGetBoundingBox() = 0;
///** Derived classes return the bounding box in screen coordinates.
// @attention This method requires locked mutex's and a living object.
// @return The bounding box (VCL rect.) in screen coordinates. */
- virtual Rectangle implGetBoundingBoxOnScreen() = 0;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() = 0;
/** Creates a new AccessibleStateSetHelper and fills it with states of the
current object. This method calls FillStateSet at the GridControl which
@@ -242,12 +242,12 @@ protected:
@return The bounding box (VCL rect.) relative to the parent object.
@throws css::lang::DisposedException
*/
- Rectangle getBoundingBox();
+ tools::Rectangle getBoundingBox();
///** Locks all mutex's and calculates the bounding box in screen
// coordinates.
// @return The bounding box (VCL rect.) in screen coordinates. */
/// @throws css::lang::DisposedException
- Rectangle getBoundingBoxOnScreen();
+ tools::Rectangle getBoundingBoxOnScreen();
::comphelper::AccessibleEventNotifier::TClientId getClientId() const { return m_aClientId; }
void setClientId(::comphelper::AccessibleEventNotifier::TClientId _aNewClientId) { m_aClientId = _aNewClientId; }
diff --git a/accessibility/inc/extended/AccessibleGridControlHeader.hxx b/accessibility/inc/extended/AccessibleGridControlHeader.hxx
index 439941a67a55..8024b504dfe4 100644
--- a/accessibility/inc/extended/AccessibleGridControlHeader.hxx
+++ b/accessibility/inc/extended/AccessibleGridControlHeader.hxx
@@ -124,10 +124,10 @@ protected:
implGetChild( sal_Int32 nRow, sal_uInt32 nColumnPos );
/** @attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) relative to the parent window. */
- virtual Rectangle implGetBoundingBox() override;
+ virtual tools::Rectangle implGetBoundingBox() override;
/** @attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) in screen coordinates. */
- virtual Rectangle implGetBoundingBoxOnScreen() override;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() override;
// internal helper methods
diff --git a/accessibility/inc/extended/AccessibleGridControlHeaderCell.hxx b/accessibility/inc/extended/AccessibleGridControlHeaderCell.hxx
index bece5123ad85..b36089a05332 100644
--- a/accessibility/inc/extended/AccessibleGridControlHeaderCell.hxx
+++ b/accessibility/inc/extended/AccessibleGridControlHeaderCell.hxx
@@ -73,9 +73,9 @@ namespace accessibility
::utl::AccessibleStateSetHelper* implCreateStateSetHelper() override;
protected:
- virtual Rectangle implGetBoundingBox() override;
+ virtual tools::Rectangle implGetBoundingBox() override;
- virtual Rectangle implGetBoundingBoxOnScreen() override;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() override;
};
}
diff --git a/accessibility/inc/extended/AccessibleGridControlTable.hxx b/accessibility/inc/extended/AccessibleGridControlTable.hxx
index df91b96c664e..b00fdaf062c3 100644
--- a/accessibility/inc/extended/AccessibleGridControlTable.hxx
+++ b/accessibility/inc/extended/AccessibleGridControlTable.hxx
@@ -152,10 +152,10 @@ protected:
/** @attention This method requires locked mutex's and a living object.
@return The bounding box (VCL rect.) relative to the parent window. */
- virtual Rectangle implGetBoundingBox() override;
+ virtual tools::Rectangle implGetBoundingBox() override;
///** @attention This method requires locked mutex's and a living object.
// @return The bounding box (VCL rect.) in screen coordinates. */
- virtual Rectangle implGetBoundingBoxOnScreen() override;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() override;
//// internal helper methods
diff --git a/accessibility/inc/extended/AccessibleGridControlTableCell.hxx b/accessibility/inc/extended/AccessibleGridControlTableCell.hxx
index eeef6d32a82e..d66b399504c4 100644
--- a/accessibility/inc/extended/AccessibleGridControlTableCell.hxx
+++ b/accessibility/inc/extended/AccessibleGridControlTableCell.hxx
@@ -69,8 +69,8 @@ namespace accessibility
virtual OUString implGetText() override;
virtual css::lang::Locale implGetLocale() override;
virtual void implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex ) override;
- virtual Rectangle implGetBoundingBox() override;
- virtual Rectangle implGetBoundingBoxOnScreen() override;
+ virtual tools::Rectangle implGetBoundingBox() override;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() override;
public:
AccessibleGridControlTableCell( const css::uno::Reference< css::accessibility::XAccessible >& _rxParent,
diff --git a/accessibility/inc/extended/accessiblebrowseboxcell.hxx b/accessibility/inc/extended/accessiblebrowseboxcell.hxx
index eb82e4862726..e24c8e999f08 100644
--- a/accessibility/inc/extended/accessiblebrowseboxcell.hxx
+++ b/accessibility/inc/extended/accessiblebrowseboxcell.hxx
@@ -45,8 +45,8 @@ namespace accessibility
protected:
// AccessibleBrowseBoxBase overridables
- virtual Rectangle implGetBoundingBox() override;
- virtual Rectangle implGetBoundingBoxOnScreen() override;
+ virtual tools::Rectangle implGetBoundingBox() override;
+ virtual tools::Rectangle implGetBoundingBoxOnScreen() override;
// XAccessibleComponent
virtual void SAL_CALL grabFocus() override;
diff --git a/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx b/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx
index fb020db028b5..1b1f6a832414 100644
--- a/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx
+++ b/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx
@@ -73,17 +73,17 @@ namespace accessibility
css::uno::Reference< css::accessibility::XAccessible > m_xParent;
private:
- Rectangle GetBoundingBox_Impl() const;
- Rectangle GetBoundingBoxOnScreen_Impl() const;
+ tools::Rectangle GetBoundingBox_Impl() const;
+ tools::Rectangle GetBoundingBoxOnScreen_Impl() const;
bool IsAlive_Impl() const;
bool IsShowing_Impl() const;
/// @throws css::lang::DisposedException
/// @throws css::uno::RuntimeException
- Rectangle GetBoundingBox();
+ tools::Rectangle GetBoundingBox();
/// @throws css::lang::DisposedException
/// @throws css::uno::RuntimeException
- Rectangle GetBoundingBoxOnScreen();
+ tools::Rectangle GetBoundingBoxOnScreen();
/// @throws css::lang::DisposedException
void EnsureIsAlive() const;
diff --git a/accessibility/inc/extended/accessiblelistboxentry.hxx b/accessibility/inc/extended/accessiblelistboxentry.hxx
index 90d4b0a3811e..7690d440806c 100644
--- a/accessibility/inc/extended/accessiblelistboxentry.hxx
+++ b/accessibility/inc/extended/accessiblelistboxentry.hxx
@@ -89,17 +89,17 @@ namespace accessibility
m_aParent;
private:
- Rectangle GetBoundingBox_Impl() const;
- Rectangle GetBoundingBoxOnScreen_Impl() const;
+ tools::Rectangle GetBoundingBox_Impl() const;
+ tools::Rectangle GetBoundingBoxOnScreen_Impl() const;
bool IsAlive_Impl() const;
bool IsShowing_Impl() const;
/// @throws css::lang::DisposedException
/// @throws css::uno::RuntimeException
- Rectangle GetBoundingBox();
+ tools::Rectangle GetBoundingBox();
/// @throws css::lang::DisposedException
/// @throws css::uno::RuntimeException
- Rectangle GetBoundingBoxOnScreen();
+ tools::Rectangle GetBoundingBoxOnScreen();
/// @throws css::lang::DisposedException
void EnsureIsAlive() const;
diff --git a/accessibility/inc/helper/IComboListBoxHelper.hxx b/accessibility/inc/helper/IComboListBoxHelper.hxx
index bcb195b4c8a5..8c60bc5b8070 100644
--- a/accessibility/inc/helper/IComboListBoxHelper.hxx
+++ b/accessibility/inc/helper/IComboListBoxHelper.hxx
@@ -29,7 +29,7 @@ namespace com { namespace sun { namespace star { namespace datatransfer { namesp
} } } } }
class Point;
-class Rectangle;
+namespace tools { class Rectangle; }
namespace vcl { class Window; }
namespace accessibility
{
@@ -39,9 +39,9 @@ namespace accessibility
virtual ~IComboListBoxHelper() = 0;
virtual OUString GetEntry( sal_Int32 nPos ) const = 0;
- virtual Rectangle GetDropDownPosSizePixel( ) const = 0;
- virtual Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const = 0;
- virtual Rectangle GetWindowExtentsRelative() = 0;
+ virtual tools::Rectangle GetDropDownPosSizePixel( ) const = 0;
+ virtual tools::Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const = 0;
+ virtual tools::Rectangle GetWindowExtentsRelative() = 0;
virtual bool IsEnabled() const = 0;
virtual bool IsEntryVisible( sal_Int32 nPos ) const = 0;
virtual sal_uInt16 GetDisplayLineCount() const = 0;
@@ -57,7 +57,7 @@ namespace accessibility
virtual void SetNoSelection() = 0;
virtual sal_Int32 GetSelectEntryPos( sal_Int32 nSelIndex ) const = 0;
virtual bool IsInDropDown() const = 0;
- virtual Rectangle GetEntryCharacterBounds( const sal_Int32 _nEntryPos, const sal_Int32 _nCharacterIndex ) const = 0;
+ virtual tools::Rectangle GetEntryCharacterBounds( const sal_Int32 _nEntryPos, const sal_Int32 _nCharacterIndex ) const = 0;
virtual long GetIndexForPoint( const Point& rPoint, sal_Int32 & nPos ) const = 0;
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard >
GetClipboard() = 0;
diff --git a/accessibility/inc/helper/listboxhelper.hxx b/accessibility/inc/helper/listboxhelper.hxx
index 570e46ffce03..8bc7e2dae2ef 100644
--- a/accessibility/inc/helper/listboxhelper.hxx
+++ b/accessibility/inc/helper/listboxhelper.hxx
@@ -50,32 +50,32 @@ public:
return m_aComboListBox.GetEntry( nPos );
}
- virtual Rectangle GetDropDownPosSizePixel() const override
+ virtual tools::Rectangle GetDropDownPosSizePixel() const override
{
- Rectangle aTemp = m_aComboListBox.GetWindowExtentsRelative(nullptr);
- Rectangle aRet = m_aComboListBox.GetDropDownPosSizePixel();
+ tools::Rectangle aTemp = m_aComboListBox.GetWindowExtentsRelative(nullptr);
+ tools::Rectangle aRet = m_aComboListBox.GetDropDownPosSizePixel();
aRet.Move(aTemp.TopLeft().X(),aTemp.TopLeft().Y());
return aRet;
}
- virtual Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const override
+ virtual tools::Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const override
{
- Rectangle aRect;
+ tools::Rectangle aRect;
if ( m_aComboListBox.IsInDropDown() && IsEntryVisible( nItem ) )
{
- Rectangle aTemp = m_aComboListBox.GetDropDownPosSizePixel();
+ tools::Rectangle aTemp = m_aComboListBox.GetDropDownPosSizePixel();
Size aSize = aTemp.GetSize();
aSize.Height() /= m_aComboListBox.GetDisplayLineCount();
Point aTopLeft = aTemp.TopLeft();
aTopLeft.Y() += aSize.Height() * ( nItem - m_aComboListBox.GetTopEntry() );
- aRect = Rectangle( aTopLeft, aSize );
+ aRect = tools::Rectangle( aTopLeft, aSize );
}
else
aRect = m_aComboListBox.GetBoundingRectangle( nItem );
return aRect;
}
- virtual Rectangle GetWindowExtentsRelative() override
+ virtual tools::Rectangle GetWindowExtentsRelative() override
{
return m_aComboListBox.GetWindowExtentsRelative( nullptr );
}
@@ -157,9 +157,9 @@ public:
return m_aComboListBox.IsInDropDown();
}
- virtual Rectangle GetEntryCharacterBounds( const sal_Int32 _nEntryPos, const sal_Int32 _nCharacterIndex ) const override
+ virtual tools::Rectangle GetEntryCharacterBounds( const sal_Int32 _nEntryPos, const sal_Int32 _nCharacterIndex ) const override
{
- Rectangle aRect;
+ tools::Rectangle aRect;
Pair aEntryCharacterRange = m_aComboListBox.GetLineStartEnd( _nEntryPos );
if ( aEntryCharacterRange.A() + _nCharacterIndex <= aEntryCharacterRange.B() )
diff --git a/accessibility/source/extended/AccessibleBrowseBox.cxx b/accessibility/source/extended/AccessibleBrowseBox.cxx
index dc534214e7b1..cba3534711a1 100644
--- a/accessibility/source/extended/AccessibleBrowseBox.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBox.cxx
@@ -191,7 +191,7 @@ OUString SAL_CALL AccessibleBrowseBox::getImplementationName()
// internal virtual methods
-Rectangle AccessibleBrowseBox::implGetBoundingBox()
+tools::Rectangle AccessibleBrowseBox::implGetBoundingBox()
{
vcl::Window* pParent = mpBrowseBox->GetAccessibleParentWindow();
OSL_ENSURE( pParent, "implGetBoundingBox - missing parent window" );
@@ -199,7 +199,7 @@ Rectangle AccessibleBrowseBox::implGetBoundingBox()
}
-Rectangle AccessibleBrowseBox::implGetBoundingBoxOnScreen()
+tools::Rectangle AccessibleBrowseBox::implGetBoundingBoxOnScreen()
{
return mpBrowseBox->GetWindowExtentsRelative( nullptr );
}
diff --git a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx
index d94a14b473d4..f4b18d9e1208 100644
--- a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx
@@ -205,7 +205,7 @@ lang::Locale SAL_CALL AccessibleBrowseBoxBase::getLocale()
sal_Bool SAL_CALL AccessibleBrowseBoxBase::containsPoint( const css::awt::Point& rPoint )
{
- return Rectangle( Point(), getBoundingBox().GetSize() ).IsInside( VCLPoint( rPoint ) );
+ return tools::Rectangle( Point(), getBoundingBox().GetSize() ).IsInside( VCLPoint( rPoint ) );
}
awt::Rectangle SAL_CALL AccessibleBrowseBoxBase::getBounds()
@@ -383,12 +383,12 @@ void AccessibleBrowseBoxBase::ensureIsAlive() const
throw lang::DisposedException();
}
-Rectangle AccessibleBrowseBoxBase::getBoundingBox()
+tools::Rectangle AccessibleBrowseBoxBase::getBoundingBox()
{
SolarMethodGuard aGuard(getMutex());
ensureIsAlive();
- Rectangle aRect = implGetBoundingBox();
+ tools::Rectangle aRect = implGetBoundingBox();
if ( 0 == aRect.Left() && 0 == aRect.Top() && 0 == aRect.Right() && 0 == aRect.Bottom() )
{
SAL_WARN( "accessibility", "rectangle doesn't exist" );
@@ -396,12 +396,12 @@ Rectangle AccessibleBrowseBoxBase::getBoundingBox()
return aRect;
}
-Rectangle AccessibleBrowseBoxBase::getBoundingBoxOnScreen()
+tools::Rectangle AccessibleBrowseBoxBase::getBoundingBoxOnScreen()
{
SolarMethodGuard aGuard(getMutex());
ensureIsAlive();
- Rectangle aRect = implGetBoundingBoxOnScreen();
+ tools::Rectangle aRect = implGetBoundingBoxOnScreen();
if ( 0 == aRect.Left() && 0 == aRect.Top() && 0 == aRect.Right() && 0 == aRect.Bottom() )
{
SAL_WARN( "accessibility", "rectangle doesn't exist" );
diff --git a/accessibility/source/extended/AccessibleBrowseBoxHeaderBar.cxx b/accessibility/source/extended/AccessibleBrowseBoxHeaderBar.cxx
index 00d04c7756e1..04e03818e828 100644
--- a/accessibility/source/extended/AccessibleBrowseBoxHeaderBar.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBoxHeaderBar.cxx
@@ -295,12 +295,12 @@ Sequence< sal_Int8 > SAL_CALL AccessibleBrowseBoxHeaderBar::getImplementationId(
// internal virtual methods ---------------------------------------------------
-Rectangle AccessibleBrowseBoxHeaderBar::implGetBoundingBox()
+tools::Rectangle AccessibleBrowseBoxHeaderBar::implGetBoundingBox()
{
return mpBrowseBox->calcHeaderRect(isColumnBar(), false);
}
-Rectangle AccessibleBrowseBoxHeaderBar::implGetBoundingBoxOnScreen()
+tools::Rectangle AccessibleBrowseBoxHeaderBar::implGetBoundingBoxOnScreen()
{
return mpBrowseBox->calcHeaderRect(isColumnBar());
}
diff --git a/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx
index ce5c3ef7f3f4..1572de65e2d3 100644
--- a/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx
@@ -117,7 +117,7 @@ OUString SAL_CALL AccessibleBrowseBoxHeaderCell::getImplementationName()
namespace
{
- Rectangle getRectangle(IAccessibleTableProvider* _pBrowseBox,sal_Int32 _nRowColIndex, bool _bOnScreen,bool _bRowBar)
+ tools::Rectangle getRectangle(IAccessibleTableProvider* _pBrowseBox,sal_Int32 _nRowColIndex, bool _bOnScreen,bool _bRowBar)
{
sal_Int32 nRow = 0;
sal_uInt16 nCol = (sal_uInt16)_nRowColIndex;
@@ -127,18 +127,18 @@ namespace
nCol = 0;
}
- Rectangle aRet(_pBrowseBox->GetFieldRectPixelAbs( nRow , nCol, true, _bOnScreen));
- return Rectangle(aRet.TopLeft() - Point(0,aRet.GetHeight()),aRet.GetSize());
+ tools::Rectangle aRet(_pBrowseBox->GetFieldRectPixelAbs( nRow , nCol, true, _bOnScreen));
+ return tools::Rectangle(aRet.TopLeft() - Point(0,aRet.GetHeight()),aRet.GetSize());
}
}
-Rectangle AccessibleBrowseBoxHeaderCell::implGetBoundingBox()
+tools::Rectangle AccessibleBrowseBoxHeaderCell::implGetBoundingBox()
{
return getRectangle(mpBrowseBox,m_nColumnRowId,false,isRowBarCell());
}
-Rectangle AccessibleBrowseBoxHeaderCell::implGetBoundingBoxOnScreen()
+tools::Rectangle AccessibleBrowseBoxHeaderCell::implGetBoundingBoxOnScreen()
{
return getRectangle(mpBrowseBox,m_nColumnRowId,true,isRowBarCell());
}
diff --git a/accessibility/source/extended/AccessibleBrowseBoxTable.cxx b/accessibility/source/extended/AccessibleBrowseBoxTable.cxx
index 61d7c2b21773..5b9ba4927e96 100644
--- a/accessibility/source/extended/AccessibleBrowseBoxTable.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBoxTable.cxx
@@ -188,12 +188,12 @@ OUString SAL_CALL AccessibleBrowseBoxTable::getImplementationName()
// internal virtual methods ---------------------------------------------------
-Rectangle AccessibleBrowseBoxTable::implGetBoundingBox()
+tools::Rectangle AccessibleBrowseBoxTable::implGetBoundingBox()
{
return mpBrowseBox->calcTableRect(false);
}
-Rectangle AccessibleBrowseBoxTable::implGetBoundingBoxOnScreen()
+tools::Rectangle AccessibleBrowseBoxTable::implGetBoundingBoxOnScreen()
{
return mpBrowseBox->calcTableRect();
}
diff --git a/accessibility/source/extended/AccessibleGridControl.cxx b/accessibility/source/extended/AccessibleGridControl.cxx
index 07d108592ff6..999354efaedf 100644
--- a/accessibility/source/extended/AccessibleGridControl.cxx
+++ b/accessibility/source/extended/AccessibleGridControl.cxx
@@ -213,7 +213,7 @@ OUString SAL_CALL AccessibleGridControl::getImplementationName()
// internal virtual methods ---------------------------------------------------
-Rectangle AccessibleGridControl::implGetBoundingBox()
+tools::Rectangle AccessibleGridControl::implGetBoundingBox()
{
vcl::Window* pParent = m_aTable.GetAccessibleParentWindow();
OSL_ENSURE( pParent, "implGetBoundingBox - missing parent window" );
@@ -221,7 +221,7 @@ Rectangle AccessibleGridControl::implGetBoundingBox()
}
-Rectangle AccessibleGridControl::implGetBoundingBoxOnScreen()
+tools::Rectangle AccessibleGridControl::implGetBoundingBoxOnScreen()
{
return m_aTable.GetWindowExtentsRelative( nullptr );
}
diff --git a/accessibility/source/extended/AccessibleGridControlBase.cxx b/accessibility/source/extended/AccessibleGridControlBase.cxx
index 0c25e45a9009..dd22d4c76af7 100644
--- a/accessibility/source/extended/AccessibleGridControlBase.cxx
+++ b/accessibility/source/extended/AccessibleGridControlBase.cxx
@@ -181,7 +181,7 @@ lang::Locale SAL_CALL AccessibleGridControlBase::getLocale()
sal_Bool SAL_CALL AccessibleGridControlBase::containsPoint( const awt::Point& rPoint )
{
- return Rectangle( Point(), getBoundingBox().GetSize() ).IsInside( VCLPoint( rPoint ) );
+ return tools::Rectangle( Point(), getBoundingBox().GetSize() ).IsInside( VCLPoint( rPoint ) );
}
awt::Rectangle SAL_CALL AccessibleGridControlBase::getBounds()
@@ -308,11 +308,11 @@ void AccessibleGridControlBase::ensureIsAlive() const
throw lang::DisposedException();
}
-Rectangle AccessibleGridControlBase::getBoundingBox()
+tools::Rectangle AccessibleGridControlBase::getBoundingBox()
{
SolarMutexGuard aSolarGuard;
ensureIsAlive();
- Rectangle aRect = implGetBoundingBox();
+ tools::Rectangle aRect = implGetBoundingBox();
if ( 0 == aRect.Left() && 0 == aRect.Top() && 0 == aRect.Right() && 0 == aRect.Bottom() )
{
SAL_WARN( "accessibility", "rectangle doesn't exist" );
@@ -320,11 +320,11 @@ Rectangle AccessibleGridControlBase::getBoundingBox()
return aRect;
}
-Rectangle AccessibleGridControlBase::getBoundingBoxOnScreen()
+tools::Rectangle AccessibleGridControlBase::getBoundingBoxOnScreen()
{
SolarMutexGuard aSolarGuard;
ensureIsAlive();
- Rectangle aRect = implGetBoundingBoxOnScreen();
+ tools::Rectangle aRect = implGetBoundingBoxOnScreen();
if ( 0 == aRect.Left() && 0 == aRect.Top() && 0 == aRect.Right() && 0 == aRect.Bottom() )
{
SAL_WARN( "accessibility", "rectangle doesn't exist" );
diff --git a/accessibility/source/extended/AccessibleGridControlHeader.cxx b/accessibility/source/extended/AccessibleGridControlHeader.cxx
index f3786228c4f5..f6a4cb177043 100644
--- a/accessibility/source/extended/AccessibleGridControlHeader.cxx
+++ b/accessibility/source/extended/AccessibleGridControlHeader.cxx
@@ -191,26 +191,26 @@ Sequence< sal_Int8 > SAL_CALL AccessibleGridControlHeader::getImplementationId()
// internal virtual methods ---------------------------------------------------
-Rectangle AccessibleGridControlHeader::implGetBoundingBox()
+tools::Rectangle AccessibleGridControlHeader::implGetBoundingBox()
{
vcl::Window* pParent = m_aTable.GetAccessibleParentWindow();
- Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( pParent ) );
- Rectangle aHeaderRect (m_aTable.calcHeaderRect(isColumnBar()));
+ tools::Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( pParent ) );
+ tools::Rectangle aHeaderRect (m_aTable.calcHeaderRect(isColumnBar()));
if(isColumnBar())
- return Rectangle(aGridRect.TopLeft(), Size(aGridRect.getWidth(),aHeaderRect.getHeight()));
+ return tools::Rectangle(aGridRect.TopLeft(), Size(aGridRect.getWidth(),aHeaderRect.getHeight()));
else
- return Rectangle(aGridRect.TopLeft(), Size(aHeaderRect.getWidth(),aGridRect.getHeight()));
+ return tools::Rectangle(aGridRect.TopLeft(), Size(aHeaderRect.getWidth(),aGridRect.getHeight()));
}
-Rectangle AccessibleGridControlHeader::implGetBoundingBoxOnScreen()
+tools::Rectangle AccessibleGridControlHeader::implGetBoundingBoxOnScreen()
{
- Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( nullptr ) );
- Rectangle aHeaderRect (m_aTable.calcHeaderRect(isColumnBar()));
+ tools::Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( nullptr ) );
+ tools::Rectangle aHeaderRect (m_aTable.calcHeaderRect(isColumnBar()));
if(isColumnBar())
- return Rectangle(aGridRect.TopLeft(), Size(aGridRect.getWidth(),aHeaderRect.getHeight()));
+ return tools::Rectangle(aGridRect.TopLeft(), Size(aGridRect.getWidth(),aHeaderRect.getHeight()));
else
- return Rectangle(aGridRect.TopLeft(), Size(aHeaderRect.getWidth(),aGridRect.getHeight()));
+ return tools::Rectangle(aGridRect.TopLeft(), Size(aHeaderRect.getWidth(),aGridRect.getHeight()));
}
// internal helper methods ----------------------------------------------------
diff --git a/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx b/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx
index 49a84aa0d356..a48f24c8f133 100644
--- a/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx
+++ b/accessibility/source/extended/AccessibleGridControlHeaderCell.cxx
@@ -125,30 +125,30 @@ OUString SAL_CALL AccessibleGridControlHeaderCell::getImplementationName()
return OUString( "com.sun.star.accessibility.AccessibleGridControlHeaderCell" );
}
-Rectangle AccessibleGridControlHeaderCell::implGetBoundingBox()
+tools::Rectangle AccessibleGridControlHeaderCell::implGetBoundingBox()
{
vcl::Window* pParent = m_aTable.GetAccessibleParentWindow();
- Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( pParent ) );
+ tools::Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( pParent ) );
sal_Int32 nIndex = getAccessibleIndexInParent();
- Rectangle aCellRect;
+ tools::Rectangle aCellRect;
if(m_eObjType == TCTYPE_COLUMNHEADERCELL)
aCellRect = m_aTable.calcHeaderCellRect(true, nIndex);
else
aCellRect = m_aTable.calcHeaderCellRect(false, nIndex);
- return Rectangle(Point(aGridRect.Left()+aCellRect.Left(),aGridRect.Top()+aCellRect.Top()), aCellRect.GetSize());
+ return tools::Rectangle(Point(aGridRect.Left()+aCellRect.Left(),aGridRect.Top()+aCellRect.Top()), aCellRect.GetSize());
}
-Rectangle AccessibleGridControlHeaderCell::implGetBoundingBoxOnScreen()
+tools::Rectangle AccessibleGridControlHeaderCell::implGetBoundingBoxOnScreen()
{
- Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( nullptr ) );
+ tools::Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( nullptr ) );
sal_Int32 nIndex = getAccessibleIndexInParent();
- Rectangle aCellRect;
+ tools::Rectangle aCellRect;
if(m_eObjType == TCTYPE_COLUMNHEADERCELL)
aCellRect = m_aTable.calcHeaderCellRect(true, nIndex);
else
aCellRect = m_aTable.calcHeaderCellRect(false, nIndex);
- return Rectangle(Point(aGridRect.Left()+aCellRect.Left(),aGridRect.Top()+aCellRect.Top()), aCellRect.GetSize());
+ return tools::Rectangle(Point(aGridRect.Left()+aCellRect.Left(),aGridRect.Top()+aCellRect.Top()), aCellRect.GetSize());
}
sal_Int32 SAL_CALL AccessibleGridControlHeaderCell::getAccessibleIndexInParent()
diff --git a/accessibility/source/extended/AccessibleGridControlTable.cxx b/accessibility/source/extended/AccessibleGridControlTable.cxx
index 68262003f0f9..f22a8db0ff0a 100644
--- a/accessibility/source/extended/AccessibleGridControlTable.cxx
+++ b/accessibility/source/extended/AccessibleGridControlTable.cxx
@@ -316,29 +316,29 @@ OUString SAL_CALL AccessibleGridControlTable::getImplementationName()
// internal virtual methods ---------------------------------------------------
-Rectangle AccessibleGridControlTable::implGetBoundingBox()
+tools::Rectangle AccessibleGridControlTable::implGetBoundingBox()
{
vcl::Window* pParent = m_aTable.GetAccessibleParentWindow();
DBG_ASSERT( pParent, "implGetBoundingBox - missing parent window" );
- Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( pParent ));
- Rectangle aTableRect( m_aTable.calcTableRect() );
+ tools::Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( pParent ));
+ tools::Rectangle aTableRect( m_aTable.calcTableRect() );
long nX = aGridRect.Left() + aTableRect.Left();
long nY = aGridRect.Top() + aTableRect.Top();
long nWidth = aGridRect.GetSize().Width()-aTableRect.Left();
long nHeight = aGridRect.GetSize().Height()-aTableRect.Top();
- Rectangle aTable( Point( nX, nY ), Size( nWidth, nHeight ));
+ tools::Rectangle aTable( Point( nX, nY ), Size( nWidth, nHeight ));
return aTable;
}
-Rectangle AccessibleGridControlTable::implGetBoundingBoxOnScreen()
+tools::Rectangle AccessibleGridControlTable::implGetBoundingBoxOnScreen()
{
- Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( nullptr ));
- Rectangle aTableRect( m_aTable.calcTableRect() );
+ tools::Rectangle aGridRect( m_aTable.GetWindowExtentsRelative( nullptr ));
+ tools::Rectangle aTableRect( m_aTable.calcTableRect() );
long nX = aGridRect.Left() + aTableRect.Left();
long nY = aGridRect.Top() + aTableRect.Top();
long nWidth = aGridRect.GetSize().Width()-aTableRect.Left();
long nHeight = aGridRect.GetSize().Height()-aTableRect.Top();
- Rectangle aTable( Point( nX, nY ), Size( nWidth, nHeight ));
+ tools::Rectangle aTable( Point( nX, nY ), Size( nWidth, nHeight ));
return aTable;
}
// internal helper methods ----------------------------------------------------
diff --git a/accessibility/source/extended/AccessibleGridControlTableCell.cxx b/accessibility/source/extended/AccessibleGridControlTableCell.cxx
index 55378092f535..753c9bd643f6 100644
--- a/accessibility/source/extended/AccessibleGridControlTableCell.cxx
+++ b/accessibility/source/extended/AccessibleGridControlTableCell.cxx
@@ -325,27 +325,27 @@ namespace accessibility
return false;
}
- Rectangle AccessibleGridControlTableCell::implGetBoundingBox()
+ tools::Rectangle AccessibleGridControlTableCell::implGetBoundingBox()
{
vcl::Window* pParent = m_aTable.GetAccessibleParentWindow();
DBG_ASSERT( pParent, "implGetBoundingBox - missing parent window" );
- Rectangle aGridRect = m_aTable.GetWindowExtentsRelative( pParent );
+ tools::Rectangle aGridRect = m_aTable.GetWindowExtentsRelative( pParent );
sal_Int32 nIndex = getAccessibleIndexInParent();
- Rectangle aCellRect = m_aTable.calcCellRect(nIndex%m_aTable.GetColumnCount(), nIndex/m_aTable.GetColumnCount());
+ tools::Rectangle aCellRect = m_aTable.calcCellRect(nIndex%m_aTable.GetColumnCount(), nIndex/m_aTable.GetColumnCount());
long nX = aGridRect.Left() + aCellRect.Left();
long nY = aGridRect.Top() + aCellRect.Top();
- Rectangle aCell( Point( nX, nY ), aCellRect.GetSize());
+ tools::Rectangle aCell( Point( nX, nY ), aCellRect.GetSize());
return aCell;
}
- Rectangle AccessibleGridControlTableCell::implGetBoundingBoxOnScreen()
+ tools::Rectangle AccessibleGridControlTableCell::implGetBoundingBoxOnScreen()
{
- Rectangle aGridRect = m_aTable.GetWindowExtentsRelative( nullptr );
+ tools::Rectangle aGridRect = m_aTable.GetWindowExtentsRelative( nullptr );
sal_Int32 nIndex = getAccessibleIndexInParent();
- Rectangle aCellRect = m_aTable.calcCellRect(nIndex%m_aTable.GetColumnCount(), nIndex/m_aTable.GetColumnCount());
+ tools::Rectangle aCellRect = m_aTable.calcCellRect(nIndex%m_aTable.GetColumnCount(), nIndex/m_aTable.GetColumnCount());
long nX = aGridRect.Left() + aCellRect.Left();
long nY = aGridRect.Top() + aCellRect.Top();
- Rectangle aCell( Point( nX, nY ), aCellRect.GetSize());
+ tools::Rectangle aCell( Point( nX, nY ), aCellRect.GetSize());
return aCell;
}
}
diff --git a/accessibility/source/extended/accessiblebrowseboxcell.cxx b/accessibility/source/extended/accessiblebrowseboxcell.cxx
index 099dde455ee7..abf3a4cf382a 100644
--- a/accessibility/source/extended/accessiblebrowseboxcell.cxx
+++ b/accessibility/source/extended/accessiblebrowseboxcell.cxx
@@ -56,12 +56,12 @@ namespace accessibility
mpBrowseBox->GoToCell( m_nRowPos, m_nColPos );
}
- ::Rectangle AccessibleBrowseBoxCell::implGetBoundingBox()
+ ::tools::Rectangle AccessibleBrowseBoxCell::implGetBoundingBox()
{
return mpBrowseBox->GetFieldRectPixelAbs( m_nRowPos, m_nColPos, false, false );
}
- ::Rectangle AccessibleBrowseBoxCell::implGetBoundingBoxOnScreen()
+ ::tools::Rectangle AccessibleBrowseBoxCell::implGetBoundingBoxOnScreen()
{
return mpBrowseBox->GetFieldRectPixelAbs( m_nRowPos, m_nColPos, false );
}
diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
index 86750fa019eb..6be99bec6c93 100644
--- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
+++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
@@ -106,9 +106,9 @@ namespace accessibility
}
}
- Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBox_Impl() const
+ tools::Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBox_Impl() const
{
- Rectangle aRect;
+ tools::Rectangle aRect;
SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->GetEntry( m_nIndex );
if ( pEntry )
aRect = m_pIconCtrl->GetBoundingBox( pEntry );
@@ -116,16 +116,16 @@ namespace accessibility
return aRect;
}
- Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBoxOnScreen_Impl() const
+ tools::Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBoxOnScreen_Impl() const
{
- Rectangle aRect;
+ tools::Rectangle aRect;
SvxIconChoiceCtrlEntry* pEntry = m_pIconCtrl->GetEntry( m_nIndex );
if ( pEntry )
{
aRect = m_pIconCtrl->GetBoundingBox( pEntry );
Point aTopLeft = aRect.TopLeft();
aTopLeft += m_pIconCtrl->GetWindowExtentsRelative( nullptr ).TopLeft();
- aRect = Rectangle( aTopLeft, aRect.GetSize() );
+ aRect = tools::Rectangle( aTopLeft, aRect.GetSize() );
}
return aRect;
@@ -151,7 +151,7 @@ namespace accessibility
return bShowing;
}
- Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBox()
+ tools::Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBox()
{
SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
@@ -160,7 +160,7 @@ namespace accessibility
return GetBoundingBox_Impl();
}
- Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBoxOnScreen()
+ tools::Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBoxOnScreen()
{
SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
@@ -347,7 +347,7 @@ namespace accessibility
sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::containsPoint( const awt::Point& rPoint )
{
- return Rectangle( Point(), GetBoundingBox().GetSize() ).IsInside( VCLPoint( rPoint ) );
+ return tools::Rectangle( Point(), GetBoundingBox().GetSize() ).IsInside( VCLPoint( rPoint ) );
}
Reference< XAccessible > SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleAtPoint( const awt::Point& )
@@ -428,8 +428,8 @@ namespace accessibility
awt::Rectangle aBounds( 0, 0, 0, 0 );
if ( m_pIconCtrl )
{
- Rectangle aItemRect = GetBoundingBox_Impl();
- Rectangle aCharRect = m_pIconCtrl->GetEntryCharacterBounds( m_nIndex, _nIndex );
+ tools::Rectangle aItemRect = GetBoundingBox_Impl();
+ tools::Rectangle aCharRect = m_pIconCtrl->GetEntryCharacterBounds( m_nIndex, _nIndex );
aCharRect.Move( -aItemRect.Left(), -aItemRect.Top() );
aBounds = AWTRectangle( aCharRect );
}
@@ -446,7 +446,7 @@ namespace accessibility
if ( m_pIconCtrl )
{
vcl::ControlLayoutData aLayoutData;
- Rectangle aItemRect = GetBoundingBox_Impl();
+ tools::Rectangle aItemRect = GetBoundingBox_Impl();
m_pIconCtrl->RecordLayoutData( &aLayoutData, aItemRect );
Point aPnt( VCLPoint( aPoint ) );
aPnt += aItemRect.TopLeft();
@@ -455,7 +455,7 @@ namespace accessibility
long nLen = aLayoutData.m_aUnicodeBoundRects.size();
for ( long i = 0; i < nLen; ++i )
{
- Rectangle aRect = aLayoutData.GetCharacterBounds(i);
+ tools::Rectangle aRect = aLayoutData.GetCharacterBounds(i);
bool bInside = aRect.IsInside( aPnt );
if ( bInside )
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx
index 8f0b1ecf32cc..dc1c80299e51 100644
--- a/accessibility/source/extended/accessiblelistboxentry.cxx
+++ b/accessibility/source/extended/accessiblelistboxentry.cxx
@@ -108,9 +108,9 @@ namespace accessibility
}
- Rectangle AccessibleListBoxEntry::GetBoundingBox_Impl() const
+ tools::Rectangle AccessibleListBoxEntry::GetBoundingBox_Impl() const
{
- Rectangle aRect;
+ tools::Rectangle aRect;
SvTreeListEntry* pEntry = getListBox()->GetEntryFromPath( m_aEntryPath );
if ( pEntry )
{
@@ -121,23 +121,23 @@ namespace accessibility
// position relative to parent entry
Point aTopLeft = aRect.TopLeft();
aTopLeft -= getListBox()->GetBoundingRect( pParent ).TopLeft();
- aRect = Rectangle( aTopLeft, aRect.GetSize() );
+ aRect = tools::Rectangle( aTopLeft, aRect.GetSize() );
}
}
return aRect;
}
- Rectangle AccessibleListBoxEntry::GetBoundingBoxOnScreen_Impl() const
+ tools::Rectangle AccessibleListBoxEntry::GetBoundingBoxOnScreen_Impl() const
{
- Rectangle aRect;
+ tools::Rectangle aRect;
SvTreeListEntry* pEntry = getListBox()->GetEntryFromPath( m_aEntryPath );
if ( pEntry )
{
aRect = getListBox()->GetBoundingRect( pEntry );
Point aTopLeft = aRect.TopLeft();
aTopLeft += getListBox()->GetWindowExtentsRelative( nullptr ).TopLeft();
- aRect = Rectangle( aTopLeft, aRect.GetSize() );
+ aRect = tools::Rectangle( aTopLeft, aRect.GetSize() );
}
return aRect;
@@ -165,7 +165,7 @@ namespace accessibility
return bShowing;
}
- Rectangle AccessibleListBoxEntry::GetBoundingBox()
+ tools::Rectangle AccessibleListBoxEntry::GetBoundingBox()
{
SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
@@ -174,7 +174,7 @@ namespace accessibility
return GetBoundingBox_Impl();
}
- Rectangle AccessibleListBoxEntry::GetBoundingBoxOnScreen()
+ tools::Rectangle AccessibleListBoxEntry::GetBoundingBoxOnScreen()
{
SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
@@ -550,7 +550,7 @@ namespace accessibility
sal_Bool SAL_CALL AccessibleListBoxEntry::containsPoint( const awt::Point& rPoint )
{
- return Rectangle( Point(), GetBoundingBox().GetSize() ).IsInside( VCLPoint( rPoint ) );
+ return tools::Rectangle( Point(), GetBoundingBox().GetSize() ).IsInside( VCLPoint( rPoint ) );
}
Reference< XAccessible > SAL_CALL AccessibleListBoxEntry::getAccessibleAtPoint( const awt::Point& _aPoint )
@@ -565,7 +565,7 @@ namespace accessibility
Reference< XAccessible > xAcc;
AccessibleListBoxEntry* pAccEntry = new AccessibleListBoxEntry( *getListBox(), pEntry, this );
- Rectangle aRect = pAccEntry->GetBoundingBox_Impl();
+ tools::Rectangle aRect = pAccEntry->GetBoundingBox_Impl();
if ( aRect.IsInside( VCLPoint( _aPoint ) ) )
xAcc = pAccEntry;
return xAcc;
@@ -648,9 +648,9 @@ namespace accessibility
if ( pEntry )
{
vcl::ControlLayoutData aLayoutData;
- Rectangle aItemRect = GetBoundingBox();
+ tools::Rectangle aItemRect = GetBoundingBox();
getListBox()->RecordLayoutData( &aLayoutData, aItemRect );
- Rectangle aCharRect = aLayoutData.GetCharacterBounds( nIndex );
+ tools::Rectangle aCharRect = aLayoutData.GetCharacterBounds( nIndex );
aCharRect.Move( -aItemRect.Left(), -aItemRect.Top() );
aBounds = AWTRectangle( aCharRect );
}
@@ -670,7 +670,7 @@ namespace accessibility
if ( pEntry )
{
vcl::ControlLayoutData aLayoutData;
- Rectangle aItemRect = GetBoundingBox();
+ tools::Rectangle aItemRect = GetBoundingBox();
getListBox()->RecordLayoutData( &aLayoutData, aItemRect );
Point aPnt( VCLPoint( aPoint ) );
aPnt += aItemRect.TopLeft();
diff --git a/accessibility/source/extended/accessibletabbar.cxx b/accessibility/source/extended/accessibletabbar.cxx
index 246fd3c57769..66ffc402a915 100644
--- a/accessibility/source/extended/accessibletabbar.cxx
+++ b/accessibility/source/extended/accessibletabbar.cxx
@@ -150,7 +150,7 @@ namespace accessibility
{
awt::Rectangle aBounds;
if ( m_pTabBar )
- aBounds = AWTRectangle( Rectangle( m_pTabBar->GetPosPixel(), m_pTabBar->GetSizePixel() ) );
+ aBounds = AWTRectangle( tools::Rectangle( m_pTabBar->GetPosPixel(), m_pTabBar->GetSizePixel() ) );
return aBounds;
}
@@ -391,7 +391,7 @@ namespace accessibility
Reference< XAccessibleComponent > xComp( xAcc->getAccessibleContext(), UNO_QUERY );
if ( xComp.is() )
{
- Rectangle aRect = VCLRectangle( xComp->getBounds() );
+ tools::Rectangle aRect = VCLRectangle( xComp->getBounds() );
Point aPos = VCLPoint( rPoint );
if ( aRect.IsInside( aPos ) )
{
diff --git a/accessibility/source/extended/accessibletabbarpagelist.cxx b/accessibility/source/extended/accessibletabbarpagelist.cxx
index a683cb23aea6..8853ac58a8b7 100644
--- a/accessibility/source/extended/accessibletabbarpagelist.cxx
+++ b/accessibility/source/extended/accessibletabbarpagelist.cxx
@@ -528,7 +528,7 @@ namespace accessibility
Reference< XAccessibleComponent > xComp( xAcc->getAccessibleContext(), UNO_QUERY );
if ( xComp.is() )
{
- Rectangle aRect = VCLRectangle( xComp->getBounds() );
+ tools::Rectangle aRect = VCLRectangle( xComp->getBounds() );
Point aPos = VCLPoint( rPoint );
if ( aRect.IsInside( aPos ) )
{
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx
index 0a61a1a84991..754526db7b75 100644
--- a/accessibility/source/extended/textwindowaccessibility.cxx
+++ b/accessibility/source/extended/textwindowaccessibility.cxx
@@ -869,10 +869,10 @@ Document::retrieveCharacterBounds(Paragraph const * pParagraph,
}
else
{
- ::Rectangle aLeft(
+ ::tools::Rectangle aLeft(
m_rEngine.PaMtoEditCursor(::TextPaM(nNumber, nIndex)));
// XXX numeric overflow
- ::Rectangle aRight(
+ ::tools::Rectangle aRight(
m_rEngine.PaMtoEditCursor(::TextPaM(nNumber, nIndex + 1)));
// XXX numeric overflow (2x)
// FIXME If the vertical extends of the two cursors do not match, assume
diff --git a/accessibility/source/standard/accessiblemenubasecomponent.cxx b/accessibility/source/standard/accessiblemenubasecomponent.cxx
index baa097e2bb2d..3ee3a95a4a07 100644
--- a/accessibility/source/standard/accessiblemenubasecomponent.cxx
+++ b/accessibility/source/standard/accessiblemenubasecomponent.cxx
@@ -365,7 +365,7 @@ Reference< XAccessible > OAccessibleMenuBaseComponent::GetChildAt( const awt::Po
Reference< XAccessibleComponent > xComp( xAcc->getAccessibleContext(), UNO_QUERY );
if ( xComp.is() )
{
- Rectangle aRect = VCLRectangle( xComp->getBounds() );
+ tools::Rectangle aRect = VCLRectangle( xComp->getBounds() );
Point aPos = VCLPoint( rPoint );
if ( aRect.IsInside( aPos ) )
{
diff --git a/accessibility/source/standard/accessiblemenucomponent.cxx b/accessibility/source/standard/accessiblemenucomponent.cxx
index 67ddc2c48341..3d8204faaf3d 100644
--- a/accessibility/source/standard/accessiblemenucomponent.cxx
+++ b/accessibility/source/standard/accessiblemenucomponent.cxx
@@ -110,7 +110,7 @@ awt::Rectangle OAccessibleMenuComponent::implGetBounds()
if ( pWindow )
{
// get bounding rectangle of the window in screen coordinates
- Rectangle aRect = pWindow->GetWindowExtentsRelative( nullptr );
+ tools::Rectangle aRect = pWindow->GetWindowExtentsRelative( nullptr );
aBounds = AWTRectangle( aRect );
// get position of the accessible parent in screen coordinates
@@ -261,7 +261,7 @@ awt::Point OAccessibleMenuComponent::getLocationOnScreen( )
vcl::Window* pWindow = m_pMenu->GetWindow();
if ( pWindow )
{
- Rectangle aRect = pWindow->GetWindowExtentsRelative( nullptr );
+ tools::Rectangle aRect = pWindow->GetWindowExtentsRelative( nullptr );
aPos = AWTPoint( aRect.TopLeft() );
}
}
diff --git a/accessibility/source/standard/accessiblemenuitemcomponent.cxx b/accessibility/source/standard/accessiblemenuitemcomponent.cxx
index 2fafbb0e6e1d..98dca6573593 100644
--- a/accessibility/source/standard/accessiblemenuitemcomponent.cxx
+++ b/accessibility/source/standard/accessiblemenuitemcomponent.cxx
@@ -258,7 +258,7 @@ awt::Rectangle OAccessibleMenuItemComponent::implGetBounds()
vcl::Window* pWindow = m_pParent->GetWindow();
if ( pWindow )
{
- Rectangle aRect = pWindow->GetWindowExtentsRelative( nullptr );
+ tools::Rectangle aRect = pWindow->GetWindowExtentsRelative( nullptr );
awt::Point aWindowScreenLoc = AWTPoint( aRect.TopLeft() );
// get position of accessible parent in screen coordinates
diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx
index dce74975018e..e0ee6fe3f0a6 100644
--- a/accessibility/source/standard/vclxaccessibleedit.cxx
+++ b/accessibility/source/standard/vclxaccessibleedit.cxx
@@ -371,7 +371,7 @@ awt::Rectangle VCLXAccessibleEdit::getCharacterBounds( sal_Int32 nIndex )
// #108914# calculate virtual bounding rectangle
for ( sal_Int32 i = 0; i < nLength; ++i )
{
- Rectangle aRect = pControl->GetCharacterBounds( i );
+ tools::Rectangle aRect = pControl->GetCharacterBounds( i );
sal_Int32 nHeight = aRect.GetHeight();
if ( aBounds.Height < nHeight )
{
diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx
index 463dc45c5043..d53245dca36d 100644
--- a/accessibility/source/standard/vclxaccessiblelistitem.cxx
+++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx
@@ -304,7 +304,7 @@ sal_Bool SAL_CALL VCLXAccessibleListItem::containsPoint( const awt::Point& _aPoi
::accessibility::IComboListBoxHelper* pListBoxHelper = m_xParent.is() ? m_xParent->getListBoxHelper() : nullptr;
if (pListBoxHelper)
{
- Rectangle aRect(pListBoxHelper->GetBoundingRectangle((sal_uInt16)m_nIndexInParent));
+ tools::Rectangle aRect(pListBoxHelper->GetBoundingRectangle((sal_uInt16)m_nIndexInParent));
aRect.Move(-aRect.TopLeft().X(),-aRect.TopLeft().Y());
bInside = aRect.IsInside( VCLPoint( _aPoint ) );
}
@@ -338,7 +338,7 @@ awt::Point SAL_CALL VCLXAccessibleListItem::getLocation( )
::accessibility::IComboListBoxHelper* pListBoxHelper = m_xParent.is() ? m_xParent->getListBoxHelper() : nullptr;
if (pListBoxHelper)
{
- Rectangle aRect = pListBoxHelper->GetBoundingRectangle( (sal_uInt16)m_nIndexInParent );
+ tools::Rectangle aRect = pListBoxHelper->GetBoundingRectangle( (sal_uInt16)m_nIndexInParent );
aPoint = aRect.TopLeft();
}
return AWTPoint( aPoint );
@@ -353,7 +353,7 @@ awt::Point SAL_CALL VCLXAccessibleListItem::getLocationOnScreen( )
::accessibility::IComboListBoxHelper* pListBoxHelper = m_xParent.is() ? m_xParent->getListBoxHelper() : nullptr;
if (pListBoxHelper)
{
- Rectangle aRect = pListBoxHelper->GetBoundingRectangle((sal_uInt16)m_nIndexInParent);
+ tools::Rectangle aRect = pListBoxHelper->GetBoundingRectangle((sal_uInt16)m_nIndexInParent);
aPoint = aRect.TopLeft();
aPoint += pListBoxHelper->GetWindowExtentsRelative().TopLeft();
}
@@ -429,8 +429,8 @@ awt::Rectangle SAL_CALL VCLXAccessibleListItem::getCharacterBounds( sal_Int32 nI
::accessibility::IComboListBoxHelper* pListBoxHelper = m_xParent.is() ? m_xParent->getListBoxHelper() : nullptr;
if (pListBoxHelper)
{
- Rectangle aCharRect = pListBoxHelper->GetEntryCharacterBounds( m_nIndexInParent, nIndex );
- Rectangle aItemRect = pListBoxHelper->GetBoundingRectangle( (sal_uInt16)m_nIndexInParent );
+ tools::Rectangle aCharRect = pListBoxHelper->GetEntryCharacterBounds( m_nIndexInParent, nIndex );
+ tools::Rectangle aItemRect = pListBoxHelper->GetBoundingRectangle( (sal_uInt16)m_nIndexInParent );
aCharRect.Move( -aItemRect.Left(), -aItemRect.Top() );
aBounds = AWTRectangle( aCharRect );
}
@@ -456,7 +456,7 @@ sal_Int32 SAL_CALL VCLXAccessibleListItem::getIndexAtPoint( const awt::Point& aP
if (pListBoxHelper)
{
sal_Int32 nPos = LISTBOX_ENTRY_NOTFOUND;
- Rectangle aItemRect = pListBoxHelper->GetBoundingRectangle( (sal_uInt16)m_nIndexInParent );
+ tools::Rectangle aItemRect = pListBoxHelper->GetBoundingRectangle( (sal_uInt16)m_nIndexInParent );
Point aPnt( VCLPoint( aPoint ) );
aPnt += aItemRect.TopLeft();
sal_Int32 nI = pListBoxHelper->GetIndexForPoint( aPnt, nPos );
diff --git a/accessibility/source/standard/vclxaccessiblemenuitem.cxx b/accessibility/source/standard/vclxaccessiblemenuitem.cxx
index 3aca273605e7..7436716dedf8 100644
--- a/accessibility/source/standard/vclxaccessiblemenuitem.cxx
+++ b/accessibility/source/standard/vclxaccessiblemenuitem.cxx
@@ -247,8 +247,8 @@ awt::Rectangle VCLXAccessibleMenuItem::getCharacterBounds( sal_Int32 nIndex )
if ( m_pParent )
{
sal_uInt16 nItemId = m_pParent->GetItemId( m_nItemPos );
- Rectangle aItemRect = m_pParent->GetBoundingRectangle( m_nItemPos );
- Rectangle aCharRect = m_pParent->GetCharacterBounds( nItemId, nIndex );
+ tools::Rectangle aItemRect = m_pParent->GetBoundingRectangle( m_nItemPos );
+ tools::Rectangle aCharRect = m_pParent->GetCharacterBounds( nItemId, nIndex );
aCharRect.Move( -aItemRect.Left(), -aItemRect.Top() );
aBounds = AWTRectangle( aCharRect );
}
@@ -273,7 +273,7 @@ sal_Int32 VCLXAccessibleMenuItem::getIndexAtPoint( const awt::Point& aPoint )
if ( m_pParent )
{
sal_uInt16 nItemId = 0;
- Rectangle aItemRect = m_pParent->GetBoundingRectangle( m_nItemPos );
+ tools::Rectangle aItemRect = m_pParent->GetBoundingRectangle( m_nItemPos );
Point aPnt( VCLPoint( aPoint ) );
aPnt += aItemRect.TopLeft();
sal_Int32 nI = m_pParent->GetIndexForPoint( aPnt, nItemId );
diff --git a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
index e937415f18ed..7ebf8dbc2e29 100644
--- a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
+++ b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
@@ -134,7 +134,7 @@ OUString VCLXAccessibleStatusBarItem::GetItemText()
vcl::ControlLayoutData aLayoutData;
if ( m_pStatusBar )
{
- Rectangle aItemRect = m_pStatusBar->GetItemRect( m_nItemId );
+ tools::Rectangle aItemRect = m_pStatusBar->GetItemRect( m_nItemId );
m_pStatusBar->RecordLayoutData( &aLayoutData, aItemRect );
sText = aLayoutData.m_aDisplayText;
}
@@ -503,9 +503,9 @@ awt::Rectangle VCLXAccessibleStatusBarItem::getCharacterBounds( sal_Int32 nIndex
if ( m_pStatusBar )
{
vcl::ControlLayoutData aLayoutData;
- Rectangle aItemRect = m_pStatusBar->GetItemRect( m_nItemId );
+ tools::Rectangle aItemRect = m_pStatusBar->GetItemRect( m_nItemId );
m_pStatusBar->RecordLayoutData( &aLayoutData, aItemRect );
- Rectangle aCharRect = aLayoutData.GetCharacterBounds( nIndex );
+ tools::Rectangle aCharRect = aLayoutData.GetCharacterBounds( nIndex );
aCharRect.Move( -aItemRect.Left(), -aItemRect.Top() );
aBounds = AWTRectangle( aCharRect );
}
@@ -522,7 +522,7 @@ sal_Int32 VCLXAccessibleStatusBarItem::getIndexAtPoint( const awt::Point& aPoint
if ( m_pStatusBar )
{
vcl::ControlLayoutData aLayoutData;
- Rectangle aItemRect = m_pStatusBar->GetItemRect( m_nItemId );
+ tools::Rectangle aItemRect = m_pStatusBar->GetItemRect( m_nItemId );
m_pStatusBar->RecordLayoutData( &aLayoutData, aItemRect );
Point aPnt( VCLPoint( aPoint ) );
aPnt += aItemRect.TopLeft();
diff --git a/accessibility/source/standard/vclxaccessibletabpage.cxx b/accessibility/source/standard/vclxaccessibletabpage.cxx
index 4ccebc7eb3f9..7e33f49785cc 100644
--- a/accessibility/source/standard/vclxaccessibletabpage.cxx
+++ b/accessibility/source/standard/vclxaccessibletabpage.cxx
@@ -423,7 +423,7 @@ Reference< XAccessible > VCLXAccessibleTabPage::getAccessibleAtPoint( const awt:
Reference< XAccessibleComponent > xComp( xAcc->getAccessibleContext(), UNO_QUERY );
if ( xComp.is() )
{
- Rectangle aRect = VCLRectangle( xComp->getBounds() );
+ tools::Rectangle aRect = VCLRectangle( xComp->getBounds() );
Point aPos = VCLPoint( rPoint );
if ( aRect.IsInside( aPos ) )
{
@@ -575,8 +575,8 @@ awt::Rectangle VCLXAccessibleTabPage::getCharacterBounds( sal_Int32 nIndex )
awt::Rectangle aBounds( 0, 0, 0, 0 );
if ( m_pTabControl )
{
- Rectangle aPageRect = m_pTabControl->GetTabBounds( m_nPageId );
- Rectangle aCharRect = m_pTabControl->GetCharacterBounds( m_nPageId, nIndex );
+ tools::Rectangle aPageRect = m_pTabControl->GetTabBounds( m_nPageId );
+ tools::Rectangle aCharRect = m_pTabControl->GetCharacterBounds( m_nPageId, nIndex );
aCharRect.Move( -aPageRect.Left(), -aPageRect.Top() );
aBounds = AWTRectangle( aCharRect );
}
@@ -593,7 +593,7 @@ sal_Int32 VCLXAccessibleTabPage::getIndexAtPoint( const awt::Point& aPoint )
if ( m_pTabControl )
{
sal_uInt16 nPageId = 0;
- Rectangle aPageRect = m_pTabControl->GetTabBounds( m_nPageId );
+ tools::Rectangle aPageRect = m_pTabControl->GetTabBounds( m_nPageId );
Point aPnt( VCLPoint( aPoint ) );
aPnt += aPageRect.TopLeft();
sal_Int32 nI = m_pTabControl->GetIndexForPoint( aPnt, nPageId );
diff --git a/accessibility/source/standard/vclxaccessibletabpagewindow.cxx b/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
index c160ecd7aef0..c8edcab404f8 100644
--- a/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
+++ b/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
@@ -72,10 +72,10 @@ awt::Rectangle VCLXAccessibleTabPageWindow::implGetBounds()
if ( m_pTabControl )
{
- Rectangle aPageRect = m_pTabControl->GetTabBounds( m_nPageId );
+ tools::Rectangle aPageRect = m_pTabControl->GetTabBounds( m_nPageId );
if ( m_pTabPage )
{
- Rectangle aRect = Rectangle( m_pTabPage->GetPosPixel(), m_pTabPage->GetSizePixel() );
+ tools::Rectangle aRect = tools::Rectangle( m_pTabPage->GetPosPixel(), m_pTabPage->GetSizePixel() );
aRect.Move( -aPageRect.Left(), -aPageRect.Top() );
aBounds = AWTRectangle( aRect );
}
diff --git a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
index bebc04fddfef..4d836e03e69e 100644
--- a/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
+++ b/accessibility/source/standard/vclxaccessibletoolboxitem.cxx
@@ -467,8 +467,8 @@ awt::Rectangle SAL_CALL VCLXAccessibleToolBoxItem::getCharacterBounds( sal_Int32
awt::Rectangle aBounds( 0, 0, 0, 0 );
if ( m_pToolBox && m_pToolBox->GetButtonType() != ButtonType::SYMBOLONLY ) // symbol buttons have no character bounds
{
- Rectangle aCharRect = m_pToolBox->GetCharacterBounds( m_nItemId, nIndex );
- Rectangle aItemRect = m_pToolBox->GetItemRect( m_nItemId );
+ tools::Rectangle aCharRect = m_pToolBox->GetCharacterBounds( m_nItemId, nIndex );
+ tools::Rectangle aItemRect = m_pToolBox->GetItemRect( m_nItemId );
aCharRect.Move( -aItemRect.Left(), -aItemRect.Top() );
aBounds = AWTRectangle( aCharRect );
}
@@ -484,7 +484,7 @@ sal_Int32 SAL_CALL VCLXAccessibleToolBoxItem::getIndexAtPoint( const awt::Point&
if ( m_pToolBox && m_pToolBox->GetButtonType() != ButtonType::SYMBOLONLY ) // symbol buttons have no character bounds
{
sal_uInt16 nItemId = 0;
- Rectangle aItemRect = m_pToolBox->GetItemRect( m_nItemId );
+ tools::Rectangle aItemRect = m_pToolBox->GetItemRect( m_nItemId );
Point aPnt( VCLPoint( aPoint ) );
aPnt += aItemRect.TopLeft();
sal_Int32 nIdx = m_pToolBox->GetIndexForPoint( aPnt, nItemId );