User: kz Date: 2008-05-05 15:59:29+0000 Modified: dba/dbaccess/source/ui/inc/linkeddocuments.hxx
Log: INTEGRATION: CWS dba30b (1.16.24); FILE MERGED 2008/04/15 22:13:48 fs 1.16.24.2: RESYNC: (1.16-1.17); FILE MERGED 2008/03/16 14:05:51 fs 1.16.24.1: #i86996# support for passing additional parameters File Changes: Directory: /dba/dbaccess/source/ui/inc/ ======================================= File [changed]: linkeddocuments.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/linkeddocuments.hxx?r1=1.17&r2=1.18 Delta lines: +55 -41 --------------------- --- linkeddocuments.hxx 2008-04-10 15:39:07+0000 1.17 +++ linkeddocuments.hxx 2008-05-05 15:59:26+0000 1.18 @@ -31,6 +31,8 @@ #ifndef _DBAUI_LINKEDDOCUMENTS_HXX_ #define _DBAUI_LINKEDDOCUMENTS_HXX_ +#include "AppElementType.hxx" + #ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_ #include <com/sun/star/container/XNameAccess.hpp> #endif @@ -59,6 +61,9 @@ #ifndef _STRING_HXX #include <tools/string.hxx> #endif +#ifndef COMPHELPER_NAMEDVALUECOLLECTION_HXX +#include <comphelper/namedvaluecollection.hxx> +#endif class Window; //...................................................................... @@ -96,47 +101,42 @@ ); ~OLinkedDocumentsAccess(); - enum EOpenMode - { - OPEN_NORMAL, - OPEN_DESIGN, - OPEN_FORMAIL - }; - inline sal_Bool isConnected() const { return m_xConnection.is(); } - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> open(const ::rtl::OUString& _rLinkName - ,::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>& _xDefinition - , EOpenMode _eOpenMode = OPEN_NORMAL); - - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> newDocument(sal_Int32 _nNewFormId - ,::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>& _xDefinition - ,const sal_Int32 _nCommandType - ,const ::rtl::OUString& _sObjectName); - - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> newWithPilot( - const char* _pWizardService - ,::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>& _xDefinition - ,const sal_Int32 _nCommandType = -1 - ,const ::rtl::OUString& _rObjectName = ::rtl::OUString() - ); - - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> newFormWithPilot( - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>& _xDefinition - ,const sal_Int32 _nCommandType = -1 - ,const ::rtl::OUString& _rObjectName = ::rtl::OUString() - ); - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> newReportWithPilot( - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>& _xDefinition - ,const sal_Int32 _nCommandType = -1 - ,const ::rtl::OUString& _rObjectName = ::rtl::OUString() - ); - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> newQueryWithPilot( - const sal_Int32 _nCommandType = -1 - ,const ::rtl::OUString& _rObjectName = ::rtl::OUString() + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> + open( + const ::rtl::OUString& _rLinkName, + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>& _xDefinition, + ElementOpenMode _eOpenMode, + const ::comphelper::NamedValueCollection& _rAdditionalArgs + ); + + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > + newDocument( + sal_Int32 _nNewFormId, + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>& _xDefinition, + const sal_Int32 _nCommandType, + const ::rtl::OUString& _sObjectName ); - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> newTableWithPilot(); + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > + newFormWithPilot( + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>& _xDefinition, + const sal_Int32 _nCommandType = -1, + const ::rtl::OUString& _rObjectName = ::rtl::OUString() + ); + + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > + newReportWithPilot( + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>& _xDefinition, + const sal_Int32 _nCommandType = -1, + const ::rtl::OUString& _rObjectName = ::rtl::OUString() + ); + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > + newQueryWithPilot(); + + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > + newTableWithPilot(); enum RESULT { @@ -144,9 +144,23 @@ SUCCESS, CANCEL }; - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> implOpen(const ::rtl::OUString& _rLinkName - ,::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>& _xDefinition - , EOpenMode _eOpenMode); + private: + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > + impl_open( + const ::rtl::OUString& _rLinkName, + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>& _xDefinition, + ElementOpenMode _eOpenMode, + const ::comphelper::NamedValueCollection& _rAdditionalArgs + ); + + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > + impl_newWithPilot( + const char* _pWizardService, + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& _xDefinition, + const sal_Int32 _nCommandType, + const ::rtl::OUString& _rObjectName + ); + }; //...................................................................... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
