1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _PPTCOM_HXX 25 #define _PPTCOM_HXX 26 27 #include <rtl/ustring.hxx> 28 #include <tools/debug.hxx> 29 #include <tools/stream.hxx> 30 #include <tools/string.hxx> 31 #include <tools/urlobj.hxx> 32 #include <tools/stack.hxx> 33 34 #include <com/sun/star/uno/Reference.h> 35 #include <com/sun/star/uno/RuntimeException.hpp> 36 #include <com/sun/star/lang/XMultiServiceFactory.hpp> 37 #include <com/sun/star/lang/XComponent.hpp> 38 #include <com/sun/star/registry/XRegistryKey.hpp> 39 #include <com/sun/star/lang/XComponent.hpp> 40 #include <com/sun/star/io/XInputStream.hpp> 41 #include <com/sun/star/xml/sax/XDocumentHandler.hpp> 42 #include <xmloff/xmlexp.hxx> 43 #include <xmloff/nmspmap.hxx> 44 #include <cppuhelper/implbase1.hxx> 45 #include <cppuhelper/implbase4.hxx> 46 #include <com/sun/star/document/XFilter.hpp> 47 #include <com/sun/star/document/XImporter.hpp> 48 #include <com/sun/star/lang/XInitialization.hpp> 49 #include <com/sun/star/lang/XServiceInfo.hpp> 50 51 // ----------------------------------------------------------------------------- 52 53 #define NMSP_CPPU cppu 54 #define NMSP_RTL rtl 55 #define NMSP_UTL utl 56 #define NMSP_COMPHELPER comphelper 57 #define NMSP_UNO com::sun::star::uno 58 #define NMSP_BEANS com::sun::star::beans 59 #define NMSP_LANG com::sun::star::lang 60 #define NMSP_IO com::sun::star::io 61 #define NMSP_SAX com::sun::star::xml::sax 62 #define NMSP_PRES com::sun::star::presentation 63 #define NMSP_REGISTRY com::sun::star::registry 64 #define NMSP_DOCUMENT com::sun::star::document 65 66 67 #define REF( _def_Obj ) NMSP_UNO::Reference< _def_Obj > 68 #define SEQ( _def_Obj ) NMSP_UNO::Sequence< _def_Obj > 69 #define ANY NMSP_UNO::Any 70 #define B2UCONST( _def_pChar ) (NMSP_RTL::OUString(RTL_CONSTASCII_USTRINGPARAM(_def_pChar ))) 71 #define PPT_DTD_STRING B2UCONST( "<!DOCTYPE office:document-styles PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"office.dtd\">" 72 #endif 73