/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef __SC_XML_CELLTEXTPARACONTEXT_HXX__ #define __SC_XML_CELLTEXTPARACONTEXT_HXX__ #include "importcontext.hxx" class ScXMLImport; class ScXMLTableRowCellContext; /** * This context handles element inside . */ class ScXMLCellTextParaContext : public ScXMLImportContext { ScXMLTableRowCellContext& mrParentCxt; OUString maContent; public: ScXMLCellTextParaContext(ScXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLName, ScXMLTableRowCellContext& rParent); virtual void StartElement(const com::sun::star::uno::Reference& xAttrList); virtual void EndElement(); virtual void Characters(const OUString& rChars); virtual SvXMLImportContext* CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const com::sun::star::uno::Reference& xAttrList); void PushSpan(const OUString& rSpan, const OUString& rStyleName); void PushFieldSheetName(); void PushFieldDate(); void PushFieldTitle(); void PushFieldURL(const OUString& rURL, const OUString& rRep); }; /** * This context handles element inside . */ class ScXMLCellTextSpanContext : public ScXMLImportContext { ScXMLCellTextParaContext& mrParentCxt; OUString maStyleName; OUString maContent; public: ScXMLCellTextSpanContext(ScXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLName, ScXMLCellTextParaContext& rParent); virtual void StartElement(const com::sun::star::uno::Reference& xAttrList); virtual void EndElement(); virtual void Characters(const OUString& rChars); virtual SvXMLImportContext* CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const com::sun::star::uno::Reference& xAttrList); }; /** * This context handles element inside . */ class ScXMLCellFieldSheetNameContext : public ScXMLImportContext { ScXMLCellTextParaContext& mrParentCxt; public: ScXMLCellFieldSheetNameContext(ScXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLName, ScXMLCellTextParaContext& rParent); virtual void StartElement(const com::sun::star::uno::Reference& xAttrList); virtual void EndElement(); virtual void Characters(const OUString& rChars); virtual SvXMLImportContext* CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const com::sun::star::uno::Reference& xAttrList); }; /** * This context handles element inside . */ class ScXMLCellFieldDateContext : public ScXMLImportContext { ScXMLCellTextParaContext& mrParentCxt; public: ScXMLCellFieldDateContext(ScXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLName, ScXMLCellTextParaContext& rParent); virtual void StartElement(const com::sun::star::uno::Reference& xAttrList); virtual void EndElement(); virtual void Characters(const OUString& rChars); virtual SvXMLImportContext* CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const com::sun::star::uno::Reference& xAttrList); }; /** * This context handles element inside . */ class ScXMLCellFieldTitleContext : public ScXMLImportContext { ScXMLCellTextParaContext& mrParentCxt; public: ScXMLCellFieldTitleContext(ScXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLName, ScXMLCellTextParaContext& rParent); virtual void StartElement(const com::sun::star::uno::Reference& xAttrList); virtual void EndElement(); virtual void Characters(const OUString& rChars); virtual SvXMLImportContext* CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const com::sun::star::uno::Reference& xAttrList); }; /** * This context handles element inside . */ class ScXMLCellFieldURLContext : public ScXMLImportContext { ScXMLCellTextParaContext& mrParentCxt; OUString maURL; OUString maRep; public: ScXMLCellFieldURLContext(ScXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLName, ScXMLCellTextParaContext& rParent); virtual void StartElement(const com::sun::star::uno::Reference& xAttrList); virtual void EndElement(); virtual void Characters(const OUString& rChars); virtual SvXMLImportContext* CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName, const com::sun::star::uno::Reference& xAttrList); }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */