1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: svgcom.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
34 #include <cppuhelper/weak.hxx>
35 #ifndef __RTL_USTRING_HXX_
36 #include <rtl/ustring.hxx>
38 #include <tools/debug.hxx>
39 #include <tools/stream.hxx>
40 #include <tools/string.hxx>
41 #include <tools/urlobj.hxx>
42 #include <tools/stack.hxx>
44 #include <vcl/salbtype.hxx>
47 #include <vcl/gdimtf.hxx>
50 #include <vcl/metaact.hxx>
53 #include <com/sun/star/uno/Reference.h>
54 #include <com/sun/star/uno/RuntimeException.hpp>
55 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
56 #include <com/sun/star/lang/XComponent.hpp>
57 #include <com/sun/star/registry/XRegistryKey.hpp>
58 #include <com/sun/star/lang/XComponent.hpp>
59 #include <com/sun/star/io/XInputStream.hpp>
60 #include <com/sun/star/io/XOutputStream.hpp>
61 #include <com/sun/star/xml/sax/XDocumentHandler.hpp>
62 #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
63 #include <com/sun/star/svg/XSVGWriter.hpp>
64 #include <com/sun/star/svg/XSVGPrinter.hpp>
65 #include <xmloff/xmlexp.hxx>
66 #include <xmloff/nmspmap.hxx>
68 // -----------------------------------------------------------------------------
70 #define NMSP_CPPU cppu
72 #define NMSP_UNO com::sun::star::uno
73 #define NMSP_LANG com::sun::star::lang
74 #define NMSP_SAX com::sun::star::xml::sax
75 #define NMSP_SVG com::sun::star::svg
76 #define NMSP_REGISTRY com::sun::star::registry
79 #define REF( _def_Obj ) NMSP_UNO::Reference< _def_Obj >
80 #define SEQ( _def_Obj ) NMSP_UNO::Sequence< _def_Obj >
81 #define ANY NMSP_UNO::Any
82 #define B2UCONST( _def_pChar ) (NMSP_RTL::OUString(RTL_CONSTASCII_USTRINGPARAM(_def_pChar )))
83 #define SVG_DTD_STRING B2UCONST( "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">" )
85 #endif // _SYNCCOM_HXX