Bump for 3.6-28
[LibreOffice.git] / xmloff / source / text / XMLChangeInfoContext.hxx
blobc347d4a4221a96bba810a16111fc1a24d9db0563
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
30 #ifndef _XMLOFF_XMLCHANGEINFOCONTEXT_HXX
31 #define _XMLOFF_XMLCHANGEINFOCONTEXT_HXX
33 #include <xmloff/xmlictxt.hxx>
34 #include <com/sun/star/uno/Reference.h>
35 #include <rtl/ustring.hxx>
36 #include <rtl/ustrbuf.hxx>
38 namespace com { namespace sun { namespace star {
39 namespace xml { namespace sax { class XAttributeList; } }
40 } } }
41 class XMLChangedRegionImportContext;
45 /**
46 * Import <office:change-info> elements as children of <text:changed-region>
47 * elements. The attribute values will be passed to the enclosing
48 * XMLChangedRegionImportContext (which has to be passed down in the
49 * constructor).
51 class XMLChangeInfoContext : public SvXMLImportContext
53 const ::rtl::OUString& rType;
55 ::rtl::OUStringBuffer sAuthorBuffer;
56 ::rtl::OUStringBuffer sDateTimeBuffer;
57 ::rtl::OUStringBuffer sCommentBuffer;
59 XMLChangedRegionImportContext& rChangedRegion;
61 public:
63 TYPEINFO();
65 XMLChangeInfoContext(
66 SvXMLImport& rImport,
67 sal_uInt16 nPrefix,
68 const ::rtl::OUString& rLocalName,
69 XMLChangedRegionImportContext& rChangedRegion,
70 const ::rtl::OUString& rChangeType);
72 ~XMLChangeInfoContext();
74 virtual void StartElement(
75 const ::com::sun::star::uno::Reference<
76 ::com::sun::star::xml::sax::XAttributeList> & xAttrList);
78 virtual SvXMLImportContext *CreateChildContext(
79 sal_uInt16 nPrefix,
80 const ::rtl::OUString& rLocalName,
81 const ::com::sun::star::uno::Reference<
82 ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
84 virtual void EndElement();
88 #endif
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */