Kaydet (Commit) 7ffe9f7e authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS dba24c (1.5.40); FILE MERGED

2007/09/13 11:37:51 fs 1.5.40.1: #i49183# also allow to edit a view's command, if it supports the XAlterView interface
üst 0bd1e179
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: databaseobjectview.cxx,v $ * $RCSfile: databaseobjectview.cxx,v $
* *
* $Revision: 1.5 $ * $Revision: 1.6 $
* *
* last change: $Author: rt $ $Date: 2007-07-06 08:36:01 $ * last change: $Author: ihi $ $Date: 2007-11-21 16:08:55 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -235,9 +235,9 @@ namespace dbaui ...@@ -235,9 +235,9 @@ namespace dbaui
//---------------------------------------------------------------------- //----------------------------------------------------------------------
QueryDesigner::QueryDesigner( const Reference< XMultiServiceFactory >& _rxORB, const Reference< XDatabaseDocumentUI >& _rxApplication, QueryDesigner::QueryDesigner( const Reference< XMultiServiceFactory >& _rxORB, const Reference< XDatabaseDocumentUI >& _rxApplication,
const Reference< XFrame >& _rxParentFrame, const Reference< XFrame >& _rxParentFrame,
sal_Bool _bCreateView, sal_Bool _bPreferSQLView ) bool _bCreateView, sal_Bool _bPreferSQLView )
:DatabaseObjectView( _rxORB, _rxApplication, _rxParentFrame, static_cast< ::rtl::OUString >( URL_COMPONENT_QUERYDESIGN ) ) :DatabaseObjectView( _rxORB, _rxApplication, _rxParentFrame, static_cast< ::rtl::OUString >( URL_COMPONENT_QUERYDESIGN ) )
,m_bCreateView( _bCreateView ) ,m_nCommandType( _bCreateView ? CommandType::TABLE : CommandType::QUERY )
,m_bPreferSQLView( _bPreferSQLView ) ,m_bPreferSQLView( _bPreferSQLView )
{ {
} }
...@@ -251,18 +251,17 @@ namespace dbaui ...@@ -251,18 +251,17 @@ namespace dbaui
sal_Bool bIncludeQueryName = 0 != _rObjectName.getLength(); sal_Bool bIncludeQueryName = 0 != _rObjectName.getLength();
sal_Int32 nPos = _rDispatchArguments.getLength(); sal_Int32 nPos = _rDispatchArguments.getLength();
_rDispatchArguments.realloc(_rDispatchArguments.getLength() + 2 + (bIncludeQueryName ? 1 : 0) ); _rDispatchArguments.realloc(_rDispatchArguments.getLength() + 2 + ( bIncludeQueryName ? 1 : 0 ) );
_rDispatchArguments[nPos ].Name = PROPERTY_GRAPHICAL_DESIGN;
_rDispatchArguments[nPos++].Value <<= ::cppu::bool2any( !m_bPreferSQLView );
_rDispatchArguments[nPos ].Name = PROPERTY_QUERYDESIGNVIEW; _rDispatchArguments[nPos ].Name = PROPERTY_COMMANDTYPE;
_rDispatchArguments[nPos++].Value <<= ::cppu::bool2any(!m_bPreferSQLView); _rDispatchArguments[nPos++].Value <<= m_nCommandType;
_rDispatchArguments[nPos ].Name = PROPERTY_CREATEVIEW;
_rDispatchArguments[nPos++].Value <<= ::cppu::bool2any(m_bCreateView);
if (bIncludeQueryName) if ( bIncludeQueryName )
{ {
_rDispatchArguments[nPos ].Name = PROPERTY_CURRENTQUERY; _rDispatchArguments[nPos ].Name = PROPERTY_COMMAND;
_rDispatchArguments[nPos++].Value <<= _rObjectName; _rDispatchArguments[nPos++].Value <<= _rObjectName;
} }
} }
...@@ -395,10 +394,10 @@ namespace dbaui ...@@ -395,10 +394,10 @@ namespace dbaui
{ {
} }
//====================================================================== //======================================================================
//= OReportDesigner //= ReportDesigner
//====================================================================== //======================================================================
//---------------------------------------------------------------------- //----------------------------------------------------------------------
OReportDesigner::OReportDesigner( const Reference< XMultiServiceFactory >& _rxORB, const Reference< XDatabaseDocumentUI >& _rxApplication , const Reference< XFrame >& _rxParentFrame) ReportDesigner::ReportDesigner( const Reference< XMultiServiceFactory >& _rxORB, const Reference< XDatabaseDocumentUI >& _rxApplication , const Reference< XFrame >& _rxParentFrame)
:DatabaseObjectView( _rxORB, _rxApplication, _rxParentFrame,static_cast< ::rtl::OUString >( URL_COMPONENT_REPORTDESIGN ) ) :DatabaseObjectView( _rxORB, _rxApplication, _rxParentFrame,static_cast< ::rtl::OUString >( URL_COMPONENT_REPORTDESIGN ) )
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment