Update ooo320-m1
[ooovba.git] / xmloff / source / transform / Oasis2OOo.hxx
blob8c05a8aa88434fbf7c5a10d9cb30d4b84e0562e4
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: Oasis2OOo.hxx,v $
10 * $Revision: 1.5.56.1 $
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 ************************************************************************/
31 #ifndef _XMLOFF_OASIS2OOO_HXX
32 #define _XMLOFF_OASIS2OOO_HXX
34 #include "ActionMapTypesOASIS.hxx"
35 #ifndef _XMLOFF_TRANSFORMERBASE_HXX_
36 #include "TransformerBase.hxx"
37 #endif
39 class XMLTransformerOASISEventMap_Impl;
41 class Oasis2OOoTransformer : public XMLTransformerBase
43 XMLTransformerActions *m_aActions[MAX_OASIS_ACTIONS];
44 XMLTransformerOASISEventMap_Impl *m_pEventMap;
45 XMLTransformerOASISEventMap_Impl *m_pFormEventMap;
47 protected:
49 virtual XMLTransformerContext *CreateUserDefinedContext(
50 const TransformerAction_Impl& rAction,
51 const ::rtl::OUString& rQName,
52 sal_Bool bPersistent=sal_False );
54 virtual XMLTransformerActions *GetUserDefinedActions( sal_uInt16 n );
56 public:
57 Oasis2OOoTransformer () throw();
58 virtual ~Oasis2OOoTransformer() throw();
60 static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
62 // XServiceInfo
63 virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
64 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
65 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
67 // XUnoTunnel
68 virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
70 virtual ::rtl::OUString GetEventName( const ::rtl::OUString& rName,
71 sal_Bool bForm );
74 #endif // _XMLOFF_OASIS2OOO_HXX