Kaydet (Commit) 68cb5e82 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS bgdlremove (1.45.204); FILE MERGED

2007/05/18 11:33:54 kso 1.45.204.1: #i77419# - cleanup of ucbhelper namespaces.
üst 8d727da4
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: galtheme.cxx,v $ * $RCSfile: galtheme.cxx,v $
* *
* $Revision: 1.45 $ * $Revision: 1.46 $
* *
* last change: $Author: kz $ $Date: 2006-12-12 16:37:39 $ * last change: $Author: ihi $ $Date: 2007-06-05 14:35:44 $
* *
* 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.
...@@ -76,12 +76,8 @@ ...@@ -76,12 +76,8 @@
// - Namespaces - // - Namespaces -
// -------------- // --------------
using namespace ::ucb;
using namespace ::rtl; using namespace ::rtl;
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
using namespace ::com::sun::star::ucb;
// ------------ // ------------
// - SgaTheme - // - SgaTheme -
...@@ -1020,7 +1016,7 @@ BOOL GalleryTheme::InsertModel( const FmFormModel& rModel, ULONG nInsertPos ) ...@@ -1020,7 +1016,7 @@ BOOL GalleryTheme::InsertModel( const FmFormModel& rModel, ULONG nInsertPos )
pFormModel->BurnInStyleSheetAttributes(); pFormModel->BurnInStyleSheetAttributes();
{ {
com::sun::star::uno::Reference< com::sun::star::io::XOutputStream > xDocOut( new utl::OOutputStreamWrapper( aMemStm ) ); uno::Reference< io::XOutputStream > xDocOut( new utl::OOutputStreamWrapper( aMemStm ) );
if( xDocOut.is() ) if( xDocOut.is() )
SvxDrawingLayerExport( pFormModel, xDocOut ); SvxDrawingLayerExport( pFormModel, xDocOut );
...@@ -1080,7 +1076,7 @@ BOOL GalleryTheme::GetModelStream( ULONG nPos, SotStorageStreamRef& rxModelStrea ...@@ -1080,7 +1076,7 @@ BOOL GalleryTheme::GetModelStream( ULONG nPos, SotStorageStreamRef& rxModelStrea
aModel.BurnInStyleSheetAttributes(); aModel.BurnInStyleSheetAttributes();
{ {
com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> xDocOut( new utl::OOutputStreamWrapper( *rxModelStream ) ); uno::Reference< io::XOutputStream > xDocOut( new utl::OOutputStreamWrapper( *rxModelStream ) );
if( SvxDrawingLayerExport( &aModel, xDocOut ) ) if( SvxDrawingLayerExport( &aModel, xDocOut ) )
rxModelStream->Commit(); rxModelStream->Commit();
...@@ -1190,7 +1186,7 @@ BOOL GalleryTheme::InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, ULONG ...@@ -1190,7 +1186,7 @@ BOOL GalleryTheme::InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, ULONG
try try
{ {
Content aCnt( rFileOrDirURL.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< XCommandEnvironment >() ); ::ucbhelper::Content aCnt( rFileOrDirURL.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment >() );
sal_Bool bFolder = false; sal_Bool bFolder = false;
aCnt.getPropertyValue( OUString::createFromAscii( "IsFolder" ) ) >>= bFolder; aCnt.getPropertyValue( OUString::createFromAscii( "IsFolder" ) ) >>= bFolder;
...@@ -1199,11 +1195,11 @@ BOOL GalleryTheme::InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, ULONG ...@@ -1199,11 +1195,11 @@ BOOL GalleryTheme::InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, ULONG
{ {
uno::Sequence< OUString > aProps( 1 ); uno::Sequence< OUString > aProps( 1 );
aProps.getArray()[ 0 ] = OUString::createFromAscii( "Url" ); aProps.getArray()[ 0 ] = OUString::createFromAscii( "Url" );
uno::Reference< sdbc::XResultSet > xResultSet( aCnt.createCursor( aProps, INCLUDE_DOCUMENTS_ONLY ) ); uno::Reference< sdbc::XResultSet > xResultSet( aCnt.createCursor( aProps, ::ucbhelper::INCLUDE_DOCUMENTS_ONLY ) );
if( xResultSet.is() ) if( xResultSet.is() )
{ {
uno::Reference< XContentAccess > xContentAccess( xResultSet, uno::UNO_QUERY ); uno::Reference< ucb::XContentAccess > xContentAccess( xResultSet, uno::UNO_QUERY );
if( xContentAccess.is() ) if( xContentAccess.is() )
{ {
...@@ -1218,13 +1214,13 @@ BOOL GalleryTheme::InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, ULONG ...@@ -1218,13 +1214,13 @@ BOOL GalleryTheme::InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, ULONG
else else
aURLVector.push_back( rFileOrDirURL ); aURLVector.push_back( rFileOrDirURL );
} }
catch( const ContentCreationException& ) catch( const ucb::ContentCreationException& )
{ {
} }
catch( const ::com::sun::star::uno::RuntimeException& ) catch( const uno::RuntimeException& )
{ {
} }
catch( const ::com::sun::star::uno::Exception& ) catch( const uno::Exception& )
{ {
} }
...@@ -1238,7 +1234,7 @@ BOOL GalleryTheme::InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, ULONG ...@@ -1238,7 +1234,7 @@ BOOL GalleryTheme::InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, ULONG
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
BOOL GalleryTheme::InsertTransferable( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rxTransferable, ULONG nInsertPos ) BOOL GalleryTheme::InsertTransferable( const uno::Reference< datatransfer::XTransferable >& rxTransferable, ULONG nInsertPos )
{ {
BOOL bRet = FALSE; BOOL bRet = FALSE;
......
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