diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-08 09:02:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-11-07 22:01:02 +0100 |
commit | 6311f7ffce8f64b0773d2ad3ea7be3be683924c0 (patch) | |
tree | 67a59c93ca968838e86b63da214c75e98f8d0626 /accessibility | |
parent | 128bec2c4bf57c2d82ce61319cbd1778bcabfeb1 (diff) |
move SvTreeListBox to vcl
Change-Id: I04a146d3d8a428ac1678827dc883525c40240a44
Reviewed-on: https://gerrit.libreoffice.org/62787
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'accessibility')
6 files changed, 29 insertions, 23 deletions
diff --git a/accessibility/inc/extended/accessiblelistboxentry.hxx b/accessibility/inc/extended/accessiblelistboxentry.hxx index d4e85a755457..f70689a271fd 100644 --- a/accessibility/inc/extended/accessiblelistboxentry.hxx +++ b/accessibility/inc/extended/accessiblelistboxentry.hxx @@ -35,7 +35,7 @@ #include <cppuhelper/compbase9.hxx> #include <cppuhelper/basemutex.hxx> #include <comphelper/accessibletexthelper.hxx> -#include <svtools/treelistentry.hxx> +#include <vcl/treelistentry.hxx> #include <tools/gen.hxx> #include <extended/listboxaccessible.hxx> diff --git a/accessibility/inc/pch/precompiled_acc.hxx b/accessibility/inc/pch/precompiled_acc.hxx index 718113060eec..064002780e2a 100644 --- a/accessibility/inc/pch/precompiled_acc.hxx +++ b/accessibility/inc/pch/precompiled_acc.hxx @@ -343,11 +343,6 @@ #include <svtools/headbar.hxx> #include <svtools/svtdllapi.h> #include <svtools/tabbar.hxx> -#include <svtools/transfer.hxx> -#include <svtools/treelist.hxx> -#include <svtools/treelistbox.hxx> -#include <svtools/treelistentries.hxx> -#include <svtools/viewdataentry.hxx> #include <toolkit/awt/vclxaccessiblecomponent.hxx> #include <toolkit/awt/vclxwindow.hxx> #include <toolkit/awt/vclxwindows.hxx> @@ -385,5 +380,10 @@ #include <unotools/resmgr.hxx> #include <unotools/syslocale.hxx> #include <unotools/unotoolsdllapi.h> +#include <vcl/transfer.hxx> +#include <vcl/treelist.hxx> +#include <vcl/treelistbox.hxx> +#include <vcl/treelistentries.hxx> +#include <vcl/viewdataentry.hxx> /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index 0ef5168141a5..63f7ff87ac10 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -19,8 +19,8 @@ #include <extended/accessiblelistbox.hxx> #include <extended/accessiblelistboxentry.hxx> -#include <svtools/treelistbox.hxx> -#include <svtools/treelistentry.hxx> +#include <vcl/treelistbox.hxx> +#include <vcl/treelistentry.hxx> #include <com/sun/star/awt/Point.hpp> #include <com/sun/star/awt/Rectangle.hpp> #include <com/sun/star/awt/Size.hpp> diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index 8e11b4587e10..4a74477badb6 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -18,9 +18,9 @@ */ #include <extended/accessiblelistboxentry.hxx> -#include <svtools/treelistbox.hxx> +#include <vcl/treelistbox.hxx> #include <svtools/stringtransfer.hxx> -#include <svtools/svlbitm.hxx> +#include <vcl/svlbitm.hxx> #include <com/sun/star/awt/Point.hpp> #include <com/sun/star/awt/Rectangle.hpp> #include <com/sun/star/awt/Size.hpp> diff --git a/accessibility/source/extended/listboxaccessible.cxx b/accessibility/source/extended/listboxaccessible.cxx index 781412078835..edff82759c6e 100644 --- a/accessibility/source/extended/listboxaccessible.cxx +++ b/accessibility/source/extended/listboxaccessible.cxx @@ -18,7 +18,7 @@ */ #include <extended/listboxaccessible.hxx> -#include <svtools/treelistbox.hxx> +#include <vcl/treelistbox.hxx> #include <vcl/svapp.hxx> namespace accessibility diff --git a/accessibility/source/helper/acc_factory.cxx b/accessibility/source/helper/acc_factory.cxx index 3c4dbd064b25..9ce18c4924f3 100644 --- a/accessibility/source/helper/acc_factory.cxx +++ b/accessibility/source/helper/acc_factory.cxx @@ -55,6 +55,7 @@ #include <extended/accessibleeditbrowseboxcell.hxx> #include <vcl/lstbox.hxx> #include <vcl/combobox.hxx> +#include <vcl/treelistbox.hxx> #include <extended/AccessibleGridControl.hxx> #include <svtools/accessibletable.hxx> #include <vcl/popupmenuwindow.hxx> @@ -145,12 +146,6 @@ public: ) const override; virtual css::uno::Reference< css::accessibility::XAccessible > - createAccessibleTreeListBox( - SvTreeListBox& _rListBox, - const css::uno::Reference< css::accessibility::XAccessible >& _xParent - ) const override; - - virtual css::uno::Reference< css::accessibility::XAccessible > createAccessibleBrowseBoxHeaderBar( const css::uno::Reference< css::accessibility::XAccessible >& rxParent, IAccessibleTableProvider& _rOwningTable, @@ -314,6 +309,23 @@ Reference< XAccessibleContext > AccessibleFactory::createAccessibleContext( VCLX xContext = static_cast<XAccessibleContext*>(new VCLXAccessibleTabControl( _pXWindow )); } + else if ( nType == WindowType::TREELISTBOX ) + { + vcl::Window* pParent = pWindow->GetAccessibleParentWindow(); + DBG_ASSERT(pParent, "SvTreeListBox::CreateAccessible - accessible parent not found"); + if (pParent) + { + css::uno::Reference< XAccessible > xAccParent = pParent->GetAccessible(); + DBG_ASSERT(xAccParent.is(), "SvTreeListBox::CreateAccessible - accessible parent not found"); + if (xAccParent.is()) + { + xContext = static_cast<XAccessibleContext*>(new AccessibleListBox(*static_cast<SvTreeListBox*>(pWindow.get()), xAccParent)); + return xContext; + } + } + xContext = static_cast<XAccessibleContext*>(new VCLXAccessibleComponent( _pXWindow )); + } + else if ( nType == WindowType::TABPAGE && pWindow->GetAccessibleParentWindow() && pWindow->GetAccessibleParentWindow()->GetType() == WindowType::TABCONTROL ) { xContext = new VCLXAccessibleTabPageWindow( _pXWindow ); @@ -393,12 +405,6 @@ Reference< XAccessibleContext > AccessibleFactory::createAccessibleTextWindowCon return new Document( pVclXWindow, rEngine, rView ); } -Reference< XAccessible > AccessibleFactory::createAccessibleTreeListBox( - SvTreeListBox& _rListBox, const Reference< XAccessible >& _xParent ) const -{ - return new AccessibleListBox( _rListBox, _xParent ); -} - Reference< XAccessible > AccessibleFactory::createAccessibleBrowseBoxHeaderBar( const Reference< XAccessible >& rxParent, IAccessibleTableProvider& _rOwningTable, AccessibleBrowseBoxObjType _eObjType ) const |