Tag: cws_dev300_dba30d User: fs Date: 2008-06-10 11:04:43+0000 Modified: dba/dbaccess/source/ui/app/AppView.cxx dba/dbaccess/source/ui/app/AppView.hxx dba/dbaccess/source/ui/app/AppDetailView.cxx dba/dbaccess/source/ui/app/AppDetailView.hxx
Log: +describeCurrentSelectionForType File Changes: Directory: /dba/dbaccess/source/ui/app/ ======================================= File [changed]: AppView.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppView.cxx?r1=1.24.10.2&r2=1.24.10.3 Delta lines: +8 -2 ------------------- --- AppView.cxx 2008-06-01 21:02:33+0000 1.24.10.2 +++ AppView.cxx 2008-06-10 11:04:41+0000 1.24.10.3 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: AppView.cxx,v $ - * $Revision: 1.24.10.2 $ + * $Revision: 1.24.10.3 $ * * This file is part of OpenOffice.org. * @@ -499,12 +499,18 @@ getDetailView()->getSelectionElementNames( _rNames ); } // ----------------------------------------------------------------------------- -void OApplicationView::describeCurrentSelectionForControl( const Control& _rControl, Any& _out_rSelectedObjects ) +void OApplicationView::describeCurrentSelectionForControl( const Control& _rControl, Sequence< NamedDatabaseObject >& _out_rSelectedObjects ) { OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF"); getDetailView()->describeCurrentSelectionForControl( _rControl, _out_rSelectedObjects ); } // ----------------------------------------------------------------------------- +void OApplicationView::describeCurrentSelectionForType( const ElementType _eType, Sequence< NamedDatabaseObject >& _out_rSelectedObjects ) +{ + OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF"); + getDetailView()->describeCurrentSelectionForType( _eType, _out_rSelectedObjects ); +} +// ----------------------------------------------------------------------------- void OApplicationView::selectElements(const Sequence< ::rtl::OUString>& _aNames) { OSL_ENSURE(m_pWin && getDetailView(),"Detail view is NULL! -> GPF"); File [changed]: AppView.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppView.hxx?r1=1.16.30.2&r2=1.16.30.3 Delta lines: +12 -2 -------------------- --- AppView.hxx 2008-06-01 21:02:33+0000 1.16.30.2 +++ AppView.hxx 2008-06-10 11:04:41+0000 1.16.30.3 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: AppView.hxx,v $ - * $Revision: 1.16.30.2 $ + * $Revision: 1.16.30.3 $ * * This file is part of OpenOffice.org. * @@ -42,6 +42,9 @@ #ifndef _COM_SUN_STAR_UCB_XCONTENT_HPP_ #include <com/sun/star/ucb/XContent.hpp> #endif +#ifndef _COM_SUN_STAR_SDB_APPLICATION_NAMEDDATABASEOBJECT_HPP_ +#include <com/sun/star/sdb/application/NamedDatabaseObject.hpp> +#endif #ifndef _SV_FIXED_HXX #include <vcl/fixed.hxx> #endif @@ -225,7 +228,14 @@ */ void describeCurrentSelectionForControl( const Control& _rControl, - ::com::sun::star::uno::Any& _out_rSelectedObjects + ::com::sun::star::uno::Sequence< ::com::sun::star::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects + ); + + /** describes the current selection for the given ElementType + */ + void describeCurrentSelectionForType( + const ElementType _eType, + ::com::sun::star::uno::Sequence< ::com::sun::star::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects ); /** select all names on the currently selected container. Non existence names where ignored. File [changed]: AppDetailView.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppDetailView.cxx?r1=1.28.30.3&r2=1.28.30.4 Delta lines: +9 -2 ------------------- --- AppDetailView.cxx 2008-06-09 13:45:17+0000 1.28.30.3 +++ AppDetailView.cxx 2008-06-10 11:04:41+0000 1.28.30.4 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: AppDetailView.cxx,v $ - * $Revision: 1.28.30.3 $ + * $Revision: 1.28.30.4 $ * * This file is part of OpenOffice.org. * @@ -114,6 +114,7 @@ using namespace ::com::sun::star::container; using namespace ::com::sun::star::beans; using ::com::sun::star::util::URL; +using ::com::sun::star::sdb::application::NamedDatabaseObject; #define SPACEBETWEENENTRIES 4 @@ -901,12 +902,18 @@ m_pControlHelper->getSelectionElementNames( _rNames ); } // ----------------------------------------------------------------------------- -void OApplicationDetailView::describeCurrentSelectionForControl( const Control& _rControl, Any& _out_rSelectedObjects ) +void OApplicationDetailView::describeCurrentSelectionForControl( const Control& _rControl, Sequence< NamedDatabaseObject >& _out_rSelectedObjects ) { DBG_CHKTHIS(OApplicationDetailView,NULL); m_pControlHelper->describeCurrentSelectionForControl( _rControl, _out_rSelectedObjects ); } // ----------------------------------------------------------------------------- +void OApplicationDetailView::describeCurrentSelectionForType( const ElementType _eType, Sequence< NamedDatabaseObject >& _out_rSelectedObjects ) +{ + DBG_CHKTHIS(OApplicationDetailView,NULL); + m_pControlHelper->describeCurrentSelectionForType( _eType, _out_rSelectedObjects ); +} +// ----------------------------------------------------------------------------- void OApplicationDetailView::selectElements(const Sequence< ::rtl::OUString>& _aNames) { DBG_CHKTHIS(OApplicationDetailView,NULL); File [changed]: AppDetailView.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppDetailView.hxx?r1=1.19.30.1&r2=1.19.30.2 Delta lines: +12 -2 -------------------- --- AppDetailView.hxx 2008-06-01 21:02:33+0000 1.19.30.1 +++ AppDetailView.hxx 2008-06-10 11:04:41+0000 1.19.30.2 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: AppDetailView.hxx,v $ - * $Revision: 1.19.30.1 $ + * $Revision: 1.19.30.2 $ * * This file is part of OpenOffice.org. * @@ -42,6 +42,9 @@ #ifndef _COM_SUN_STAR_UCB_XCONTENT_HPP_ #include <com/sun/star/ucb/XContent.hpp> #endif +#ifndef _COM_SUN_STAR_SDB_APPLICATION_NAMEDDATABASEOBJECT_HPP_ +#include <com/sun/star/sdb/application/NamedDatabaseObject.hpp> +#endif #ifndef _SV_SPLIT_HXX #include <vcl/split.hxx> #endif @@ -298,7 +301,14 @@ */ void describeCurrentSelectionForControl( const Control& _rControl, - ::com::sun::star::uno::Any& _out_rSelectedObjects + ::com::sun::star::uno::Sequence< ::com::sun::star::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects + ); + + /** describes the current selection for the given ElementType + */ + void describeCurrentSelectionForType( + const ElementType _eType, + ::com::sun::star::uno::Sequence< ::com::sun::star::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects ); /** select all names on the currently selected container. Non existence names where ignored. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
