Kaydet (Commit) c22ec49d authored tarafından Noel Grandin's avatar Noel Grandin

inline SfxMediumRef typedef

Change-Id: Id6dc03a5957adf657d12db7941273593a9f7c10f
üst 14fc882e
......@@ -295,7 +295,7 @@ bool ODBFilter::implImport( const Sequence< PropertyValue >& rDescriptor )
{
uno::Reference<XComponent> xCom(GetModel(),UNO_QUERY);
SfxMediumRef pMedium(0);
tools::SvRef<SfxMedium> pMedium(0);
if (!xStorage.is())
{
OUString sStreamRelPath;
......
......@@ -264,8 +264,6 @@ public:
static sal_uInt32 CreatePasswordToModifyHash( const OUString& aPasswd, bool bWriter );
};
typedef tools::SvRef<SfxMedium> SfxMediumRef;
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -459,7 +459,7 @@ bool ORptFilter::implImport( const Sequence< PropertyValue >& rDescriptor )
{
uno::Reference<XComponent> xCom(GetModel(),UNO_QUERY);
SfxMediumRef pMedium = new SfxMedium(
tools::SvRef<SfxMedium> pMedium = new SfxMedium(
sFileName, ( StreamMode::READ | StreamMode::NOCREATE ) );
if( pMedium )
......
......@@ -96,7 +96,7 @@ bool SvFileObject::GetData( ::com::sun::star::uno::Any & rData,
case FILETYPE_GRF:
if( !bLoadError )
{
SfxMediumRef xTmpMed;
tools::SvRef<SfxMedium> xTmpMed;
if( SotClipboardFormatId::GDIMETAFILE == nFmt || SotClipboardFormatId::BITMAP == nFmt ||
SotClipboardFormatId::SVXB == nFmt )
......@@ -266,7 +266,7 @@ bool SvFileObject::LoadFile_Impl()
bLoadAgain = bDataReady = bInNewData = false;
bWaitForData = true;
SfxMediumRef xTmpMed = xMed;
tools::SvRef<SfxMedium> xTmpMed = xMed;
bInCallDownload = true;
xMed->Download( LINK( this, SvFileObject, LoadGrfReady_Impl ) );
bInCallDownload = false;
......@@ -485,7 +485,7 @@ IMPL_LINK_NOARG_TYPED( SvFileObject, LoadGrfReady_Impl, void*, void )
if( xMed.Is() )
{
xMed->SetDoneLink( Link<void*,void>() );
pDelMed = new SfxMediumRef(xMed);
pDelMed = new tools::SvRef<SfxMedium>(xMed);
nPostUserEventId = Application::PostUserEvent(
LINK( this, SvFileObject, DelMedium_Impl ),
pDelMed);
......@@ -496,7 +496,7 @@ IMPL_LINK_NOARG_TYPED( SvFileObject, LoadGrfReady_Impl, void*, void )
IMPL_LINK_TYPED( SvFileObject, DelMedium_Impl, void*, p, void )
{
SfxMediumRef* deleteMedium = static_cast<SfxMediumRef*>(p);
tools::SvRef<SfxMedium>* deleteMedium = static_cast<tools::SvRef<SfxMedium>*>(p);
nPostUserEventId = 0;
assert(pDelMed == deleteMedium);
pDelMed = NULL;
......
......@@ -28,14 +28,14 @@ namespace sfx2 { class FileDialogHelper; }
class SvFileObject : public sfx2::SvLinkSource
{
OUString sFileNm;
OUString sFilter;
OUString sReferer;
OUString sFileNm;
OUString sFilter;
OUString sReferer;
Link<const OUString&, void> aEndEditLink;
SfxMediumRef xMed;
ImplSVEvent* nPostUserEventId;
SfxMediumRef* pDelMed;
VclPtr<vcl::Window> pOldParent;
tools::SvRef<SfxMedium> xMed;
ImplSVEvent* nPostUserEventId;
tools::SvRef<SfxMedium>* pDelMed;
VclPtr<vcl::Window> pOldParent;
sal_uInt8 nType;
......
......@@ -34,12 +34,12 @@ class SvxMacroTableDtor;
class SwXMLTextBlocks : public SwImpBlocks
{
protected:
bool bAutocorrBlock;
bool bBlock;
SfxObjectShellRef xDocShellRef;
sal_uInt16 nFlags;
OUString aPackageName;
SfxMediumRef xMedium;
bool bAutocorrBlock;
bool bBlock;
SfxObjectShellRef xDocShellRef;
sal_uInt16 nFlags;
OUString aPackageName;
tools::SvRef<SfxMedium> xMedium;
void ReadInfo();
void WriteInfo();
......
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