Kaydet (Commit) d015fe77 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Let's not use macro for this.

Change-Id: Ic66bcec853a7da638f3ce871749fbec955ce37c5
üst dcceacb5
...@@ -348,21 +348,6 @@ SfxMedium_Impl::~SfxMedium_Impl() ...@@ -348,21 +348,6 @@ SfxMedium_Impl::~SfxMedium_Impl()
delete pTempFile; delete pTempFile;
} }
//================================================================
#define IMPL_CTOR(rootVal,URLVal) \
eError( SVSTREAM_OK ), \
\
bRoot( rootVal ), \
bSetFilter( false ), \
bTriedStorage( false ), \
\
nStorOpenMode( SFX_STREAM_READWRITE ), \
pURLObj( URLVal ), \
pInStream(0), \
pOutStream( 0 )
//------------------------------------------------------------------
void SfxMedium::ResetError() void SfxMedium::ResetError()
{ {
eError = SVSTREAM_OK; eError = SVSTREAM_OK;
...@@ -2488,9 +2473,15 @@ void SfxMedium::Init_Impl() ...@@ -2488,9 +2473,15 @@ void SfxMedium::Init_Impl()
} }
//------------------------------------------------------------------ //------------------------------------------------------------------
SfxMedium::SfxMedium() SfxMedium::SfxMedium() :
: IMPL_CTOR( false, 0 ), // bRoot, pURLObj eError( SVSTREAM_OK ),
bRoot( false ),
bSetFilter( false ),
bTriedStorage( false ),
nStorOpenMode( SFX_STREAM_READWRITE ),
pURLObj(0),
pInStream(0),
pOutStream(0),
pFilter(0), pFilter(0),
pSet(0), pSet(0),
pImp(new SfxMedium_Impl( this )) pImp(new SfxMedium_Impl( this ))
...@@ -2832,13 +2823,15 @@ void SfxMedium::CompleteReOpen() ...@@ -2832,13 +2823,15 @@ void SfxMedium::CompleteReOpen()
pImp->bUseInteractionHandler = bUseInteractionHandler; pImp->bUseInteractionHandler = bUseInteractionHandler;
} }
//------------------------------------------------------------------ SfxMedium::SfxMedium(const String &rName, StreamMode nOpenMode, const SfxFilter *pFlt, SfxItemSet *pInSet) :
SfxMedium::SfxMedium eError( SVSTREAM_OK ),
( bRoot( false ),
const String &rName, StreamMode nOpenMode, bSetFilter( false ),
const SfxFilter *pFlt, SfxItemSet *pInSet bTriedStorage( false ),
) nStorOpenMode( SFX_STREAM_READWRITE ),
: IMPL_CTOR( false, 0 ), // bRoot, pURLObj pURLObj(0),
pInStream(0),
pOutStream(0),
pFilter(pFlt), pFilter(pFlt),
pSet( pInSet ), pSet( pInSet ),
pImp(new SfxMedium_Impl( this )) pImp(new SfxMedium_Impl( this ))
...@@ -2849,8 +2842,14 @@ SfxMedium::SfxMedium ...@@ -2849,8 +2842,14 @@ SfxMedium::SfxMedium
} }
SfxMedium::SfxMedium( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs ) SfxMedium::SfxMedium( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs ) :
: IMPL_CTOR( false, 0 ), // bRoot, pURLObj bRoot( false ),
bSetFilter( false ),
bTriedStorage( false ),
nStorOpenMode( SFX_STREAM_READWRITE ),
pURLObj(0),
pInStream(0),
pOutStream(0),
pFilter(0), pFilter(0),
pSet(0), pSet(0),
pImp(new SfxMedium_Impl( this )) pImp(new SfxMedium_Impl( this ))
...@@ -2905,8 +2904,14 @@ SfxMedium::SfxMedium( const ::com::sun::star::uno::Sequence< ::com::sun::star::b ...@@ -2905,8 +2904,14 @@ SfxMedium::SfxMedium( const ::com::sun::star::uno::Sequence< ::com::sun::star::b
//------------------------------------------------------------------ //------------------------------------------------------------------
SfxMedium::SfxMedium( const uno::Reference < embed::XStorage >& rStor, const String& rBaseURL, const SfxItemSet* p, sal_Bool bRootP ) SfxMedium::SfxMedium( const uno::Reference < embed::XStorage >& rStor, const String& rBaseURL, const SfxItemSet* p, sal_Bool bRootP ) :
: IMPL_CTOR( bRootP, 0 ), // bRoot, pURLObj bRoot( bRootP ),
bSetFilter( false ),
bTriedStorage( false ),
nStorOpenMode( SFX_STREAM_READWRITE ),
pURLObj(0),
pInStream(0),
pOutStream(0),
pSet(0), pSet(0),
pImp( new SfxMedium_Impl( this )) pImp( new SfxMedium_Impl( this ))
{ {
...@@ -2924,8 +2929,14 @@ SfxMedium::SfxMedium( const uno::Reference < embed::XStorage >& rStor, const Str ...@@ -2924,8 +2929,14 @@ SfxMedium::SfxMedium( const uno::Reference < embed::XStorage >& rStor, const Str
GetItemSet()->Put( *p ); GetItemSet()->Put( *p );
} }
SfxMedium::SfxMedium( const uno::Reference < embed::XStorage >& rStor, const String& rBaseURL, const String& rTypeName, const SfxItemSet* p, sal_Bool bRootP ) SfxMedium::SfxMedium( const uno::Reference < embed::XStorage >& rStor, const String& rBaseURL, const String& rTypeName, const SfxItemSet* p, sal_Bool bRootP ) :
: IMPL_CTOR( bRootP, 0 ), // bRoot, pURLObj bRoot( bRootP ),
bSetFilter( false ),
bTriedStorage( false ),
nStorOpenMode( SFX_STREAM_READWRITE ),
pURLObj(0),
pInStream(0),
pOutStream(0),
pSet(0), pSet(0),
pImp( new SfxMedium_Impl( this )) pImp( new SfxMedium_Impl( this ))
{ {
......
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