001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035 #ifndef _SW_TYPEDETECT_HXX
036 #define _SW_TYPEDETECT_HXX
037
038 #ifndef _RTL_USTRING_HXX_
039 #include <rtl/ustring.hxx>
040 #endif
041
042 #ifndef _TOOLS_DEBUG_HXX
043 #include <tools/debug.hxx>
044 #endif
045
046 #ifndef _COM_SUN_STAR_DOCUMENT_XEXTENDEDFILTERDETECTION_HPP_
047 #include <com/sun/star/document/XExtendedFilterDetection.hpp>
048 #endif
049
050 #ifndef _COM_SUN_STAR_UNO_EXCEPTION_HPP_
051 #include <com/sun/star/uno/Exception.hpp>
052 #endif
053
054 #ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
055 #include <com/sun/star/uno/Reference.h>
056 #endif
057
058 #ifndef _CPPUHELPER_IMPLBASE2_HXX_
059 #include <cppuhelper/implbase2.hxx>
060 #endif
061
062 #include <com/sun/star/lang/XServiceInfo.hpp>
063 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
064 #include <cppuhelper/factory.hxx>
065 #include <tools/link.hxx>
066 #include <tools/string.hxx>
067
068 class SfxMedium;
069
070 namespace com
071 {
072 namespace sun
073 {
074 namespace star
075 {
076 namespace uno
077 {
078 class Any;
079 }
080 namespace lang
081 {
082 class XMultiServiceFactory;
083 }
084 namespace frame
085 {
086 class XFrame;
087 }
088 namespace beans
089 {
090 struct PropertyValue;
091 }
092 }
093 }
094 }
095
096 #include <sfx2/sfxuno.hxx>
097 class SfxMedium;
098 class SfxFilter;
099
100 #define REFERENCE ::com::sun::star::uno::Reference
101 #define SEQUENCE ::com::sun::star::uno::Sequence
102 #define RUNTIME_EXCEPTION ::com::sun::star::uno::RuntimeException
103
104 class SwFilterDetect : public ::cppu::WeakImplHelper2< ::com::sun::star::document::XExtendedFilterDetection, ::com::sun::star::lang::XServiceInfo >
105 {
106 static ULONG DetectFilter( SfxMedium& rMedium, const SfxFilter** ppFilter );
107 static ULONG GlobDetectFilter( SfxMedium& rMedium, const SfxFilter** ppFilter );
108 public:
109 SwFilterDetect( const REFERENCE < ::com::sun::star::lang::XMultiServiceFactory >& xFactory );
110 virtual ~SwFilterDetect();
111
112 SFX_DECL_XSERVICEINFO
113
114
115
116
117 virtual ::rtl::OUString SAL_CALL detect( SEQUENCE< ::com::sun::star::beans::PropertyValue >& lDescriptor ) throw( RUNTIME_EXCEPTION );
118 };
119
120 #endif