Tag: cws_src680_dba25 User: fs Date: 05/03/14 05:30:43 Modified: /dba/dbaccess/source/ui/browser/ unodatbr.cxx
Log: RESYNC: (1.167-1.168); FILE MERGED File Changes: Directory: /dba/dbaccess/source/ui/browser/ =========================================== File [changed]: unodatbr.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/unodatbr.cxx?r1=1.166.4.3&r2=1.166.4.4 Delta lines: +8 -18 -------------------- --- unodatbr.cxx 8 Mar 2005 09:01:51 -0000 1.166.4.3 +++ unodatbr.cxx 14 Mar 2005 13:30:40 -0000 1.166.4.4 @@ -2933,10 +2933,7 @@ { SvLBoxEntry* pElements = m_pTreeModel->FirstChild(pContainers); if ( pElements ) - { - m_pTreeView->getListBox()->SetCursor( pElements ); m_pTreeView->getListBox()->Collapse(pContainers); - } m_pTreeView->getListBox()->EnableExpandHandler(pContainers); // and delete their children (they are connection-relative) for (; pElements; ) @@ -3389,7 +3386,6 @@ // get the desktop object sal_Int32 nFrameSearchFlag = FrameSearchFlag::ALL | FrameSearchFlag::GLOBAL ; Reference< XComponentLoader > xFrameLoader(getORB()->createInstance(SERVICE_FRAME_DESKTOP),UNO_QUERY); - ::rtl::OUString sTarget = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("_default")); if ( xFrameLoader.is() ) { @@ -3401,25 +3397,19 @@ if (pTopLevelSelected) sInitialSelection = getDataSourceAcessor( pTopLevelSelected ); - INetURLObject aURLParser( sInitialSelection ); - ::rtl::OUString sURL; - if ( aURLParser.GetProtocol() != INET_PROT_NOT_VALID ) - sURL = aURLParser.GetMainURL( INetURLObject::NO_DECODE ); - else if ( m_xDatabaseContext->hasByName( sInitialSelection ) ) - { - Reference< XModel > xDocumentModel = - getDataSourceByName_displayError( m_xDatabaseContext, sInitialSelection, getView(), getORB(), true ); - if ( xDocumentModel.is() ) - sURL = xDocumentModel->getURL(); - } + Reference< XModel > xDocumentModel( + getDataSourceOrModel(getDataSourceByName_displayError( m_xDatabaseContext, sInitialSelection, getView(), getORB(), true )),UNO_QUERY); - if ( sURL.getLength() ) + if ( xDocumentModel.is() ) { + Sequence<PropertyValue > aArgs(1); + aArgs[0].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Model")); + aArgs[0].Value <<= xDocumentModel; xFrameLoader->loadComponentFromURL( - sURL, + xDocumentModel->getURL(), ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("_default")), nFrameSearchFlag, - Sequence<PropertyValue >() + aArgs ); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
