Bump for 3.6-28
[LibreOffice.git] / xmloff / source / text / XMLIndexBibliographySourceContext.cxx
blob66364d963c5f1a311f2b2aa4fbee6f52df31c426
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 ************************************************************************/
31 #include "XMLIndexBibliographySourceContext.hxx"
32 #include <com/sun/star/beans/XPropertySet.hpp>
33 #include <com/sun/star/container/XIndexReplace.hpp>
34 #include "XMLIndexTemplateContext.hxx"
35 #include "XMLIndexTitleTemplateContext.hxx"
36 #include "XMLIndexTOCStylesContext.hxx"
37 #include <xmloff/xmlictxt.hxx>
38 #include <xmloff/xmlimp.hxx>
39 #include <xmloff/txtimp.hxx>
40 #include "xmloff/xmlnmspe.hxx"
41 #include <xmloff/nmspmap.hxx>
42 #include <xmloff/xmltoken.hxx>
43 #include <xmloff/xmluconv.hxx>
44 #include <rtl/ustring.hxx>
47 using namespace ::xmloff::token;
49 using ::rtl::OUString;
50 using ::com::sun::star::beans::XPropertySet;
51 using ::com::sun::star::uno::Reference;
52 using ::com::sun::star::uno::Any;
53 using ::com::sun::star::xml::sax::XAttributeList;
56 TYPEINIT1(XMLIndexBibliographySourceContext, XMLIndexSourceBaseContext);
59 XMLIndexBibliographySourceContext::XMLIndexBibliographySourceContext(
60 SvXMLImport& rImport,
61 sal_uInt16 nPrfx,
62 const OUString& rLocalName,
63 Reference<XPropertySet> & rPropSet) :
64 XMLIndexSourceBaseContext(rImport, nPrfx, rLocalName,
65 rPropSet, sal_False)
69 XMLIndexBibliographySourceContext::~XMLIndexBibliographySourceContext()
73 void XMLIndexBibliographySourceContext::ProcessAttribute(
74 enum IndexSourceParamEnum,
75 const OUString&)
77 // We have no attributes. Who wants attributes, anyway?
81 void XMLIndexBibliographySourceContext::EndElement()
83 // No attributes, no properties.
87 SvXMLImportContext* XMLIndexBibliographySourceContext::CreateChildContext(
88 sal_uInt16 nPrefix,
89 const OUString& rLocalName,
90 const Reference<XAttributeList> & xAttrList )
92 if ( ( XML_NAMESPACE_TEXT == nPrefix ) &&
93 ( IsXMLToken( rLocalName, XML_BIBLIOGRAPHY_ENTRY_TEMPLATE ) ) )
95 return new XMLIndexTemplateContext(GetImport(), rIndexPropertySet,
96 nPrefix, rLocalName,
97 aLevelNameBibliographyMap,
98 XML_BIBLIOGRAPHY_TYPE,
99 aLevelStylePropNameBibliographyMap,
100 aAllowedTokenTypesBibliography);
102 else
104 return XMLIndexSourceBaseContext::CreateChildContext(nPrefix,
105 rLocalName,
106 xAttrList);
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */