diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 17:33:52 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-03 17:33:52 +0000 |
commit | 4dbf66f2546890842a4f8db0c56d8fb02344effe (patch) | |
tree | 21551915ba93194b8aff6b9bb14294ab4ece59fb /svx/source/dialog/impgrf.cxx | |
parent | INTEGRATION: CWS dialogdiet (1.5.490); FILE MERGED (diff) | |
download | core-4dbf66f2546890842a4f8db0c56d8fb02344effe.tar.gz core-4dbf66f2546890842a4f8db0c56d8fb02344effe.zip |
INTEGRATION: CWS dialogdiet (1.18.302); FILE MERGED
2003/11/28 17:22:25 mba 1.18.302.1: #i22972#: moved static filter access method from svx to svtools
Diffstat (limited to 'svx/source/dialog/impgrf.cxx')
-rw-r--r-- | svx/source/dialog/impgrf.cxx | 37 |
1 files changed, 3 insertions, 34 deletions
diff --git a/svx/source/dialog/impgrf.cxx b/svx/source/dialog/impgrf.cxx index 2b59d6b57542..40083ebdd422 100644 --- a/svx/source/dialog/impgrf.cxx +++ b/svx/source/dialog/impgrf.cxx @@ -2,9 +2,9 @@ * * $RCSfile: impgrf.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: vg $ $Date: 2003-04-17 17:42:23 $ + * last change: $Author: hr $ $Date: 2004-02-03 18:33:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -124,40 +124,9 @@ using namespace com::sun::star::uno; #define IMPGRF_INIKEY_PREVIEW "ImportGraphicPreview" #define IMPGRF_CONFIGNAME String(DEFINE_CONST_UNICODE("ImportGraphicDialog")) - -// ----------------------------------------------------------------------- - -GraphicFilter* DialogsResMgr::GetGrfFilter_Impl() -{ - if( !pGrapicFilter ) - { -#ifndef SVX_LIGHT - pGrapicFilter = new GraphicFilter; -#else - pGrapicFilter = new GraphicFilter(sal_False); -#endif - ::FillFilter( *pGrapicFilter ); - } - const Link aLink; - pGrapicFilter->SetStartFilterHdl( aLink ); - pGrapicFilter->SetEndFilterHdl( aLink ); - pGrapicFilter->SetUpdatePercentHdl( aLink ); - return pGrapicFilter; -} - -// ----------------------------------------------------------------------- - GraphicFilter* GetGrfFilter() { - return (*(DialogsResMgr**)GetAppData(SHL_SVX))->GetGrfFilter_Impl(); -} - -// ----------------------------------------------------------------------- - -USHORT FillFilter( GraphicFilter& rFilter ) -{ - ResMgr* pMgr = DIALOG_MGR(); - return rFilter.GetImportFormatCount(); + return GraphicFilter::GetGraphicFilter(); } // ----------------------------------------------------------------------- |