2003-09-19 07:48:39 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-09 10:19:39 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2003-09-19 07:48:39 +00:00
|
|
|
*
|
2005-09-09 10:19:39 +00:00
|
|
|
* $RCSfile: swdetect.hxx,v $
|
2003-09-19 07:48:39 +00:00
|
|
|
*
|
2006-08-14 17:00:06 +00:00
|
|
|
* $Revision: 1.4 $
|
2003-09-19 07:48:39 +00:00
|
|
|
*
|
2006-08-14 17:00:06 +00:00
|
|
|
* last change: $Author: hr $ $Date: 2006-08-14 18:00:06 $
|
2003-09-19 07:48:39 +00:00
|
|
|
*
|
2005-09-09 10:19:39 +00:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2003-09-19 07:48:39 +00:00
|
|
|
*
|
|
|
|
*
|
2005-09-09 10:19:39 +00:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2003-09-19 07:48:39 +00:00
|
|
|
*
|
2005-09-09 10:19:39 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2003-09-19 07:48:39 +00:00
|
|
|
*
|
2005-09-09 10:19:39 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2003-09-19 07:48:39 +00:00
|
|
|
*
|
2005-09-09 10:19:39 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2003-09-19 07:48:39 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _SW_TYPEDETECT_HXX
|
|
|
|
#define _SW_TYPEDETECT_HXX
|
|
|
|
|
|
|
|
#ifndef _RTL_USTRING_HXX_
|
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _TOOLS_DEBUG_HXX
|
|
|
|
#include <tools/debug.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _COM_SUN_STAR_DOCUMENT_XEXTENDEDFILTERDETECTION_HPP_
|
|
|
|
#include <com/sun/star/document/XExtendedFilterDetection.hpp>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _COM_SUN_STAR_UNO_EXCEPTION_HPP_
|
|
|
|
#include <com/sun/star/uno/Exception.hpp>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
|
|
|
|
#include <com/sun/star/uno/Reference.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _CPPUHELPER_IMPLBASE2_HXX_
|
|
|
|
#include <cppuhelper/implbase2.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
|
|
|
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
|
|
|
|
#include <cppuhelper/factory.hxx>
|
|
|
|
#include <tools/link.hxx>
|
|
|
|
#include <tools/string.hxx>
|
|
|
|
|
|
|
|
class SfxMedium;
|
|
|
|
|
|
|
|
namespace com
|
|
|
|
{
|
|
|
|
namespace sun
|
|
|
|
{
|
|
|
|
namespace star
|
|
|
|
{
|
|
|
|
namespace uno
|
|
|
|
{
|
|
|
|
class Any;
|
|
|
|
}
|
|
|
|
namespace lang
|
|
|
|
{
|
|
|
|
class XMultiServiceFactory;
|
|
|
|
}
|
|
|
|
namespace frame
|
|
|
|
{
|
|
|
|
class XFrame;
|
|
|
|
}
|
|
|
|
namespace beans
|
|
|
|
{
|
|
|
|
struct PropertyValue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#include <sfx2/sfxuno.hxx>
|
|
|
|
class SfxMedium;
|
|
|
|
class SfxFilter;
|
|
|
|
|
|
|
|
#define REFERENCE ::com::sun::star::uno::Reference
|
|
|
|
#define SEQUENCE ::com::sun::star::uno::Sequence
|
|
|
|
#define RUNTIME_EXCEPTION ::com::sun::star::uno::RuntimeException
|
|
|
|
|
|
|
|
class SwFilterDetect : public ::cppu::WeakImplHelper2< ::com::sun::star::document::XExtendedFilterDetection, ::com::sun::star::lang::XServiceInfo >
|
|
|
|
{
|
|
|
|
static ULONG DetectFilter( SfxMedium& rMedium, const SfxFilter** ppFilter );
|
|
|
|
static ULONG GlobDetectFilter( SfxMedium& rMedium, const SfxFilter** ppFilter );
|
|
|
|
public:
|
|
|
|
SwFilterDetect( const REFERENCE < ::com::sun::star::lang::XMultiServiceFactory >& xFactory );
|
|
|
|
virtual ~SwFilterDetect();
|
|
|
|
|
|
|
|
SFX_DECL_XSERVICEINFO
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------------
|
|
|
|
// XExtendedFilterDetect
|
|
|
|
//----------------------------------------------------------------------------------
|
|
|
|
virtual ::rtl::OUString SAL_CALL detect( SEQUENCE< ::com::sun::star::beans::PropertyValue >& lDescriptor ) throw( RUNTIME_EXCEPTION );
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|