LibreOffice Module sc (master)  1
celltextparacontext.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef INCLUDED_SC_SOURCE_FILTER_XML_CELLTEXTPARACONTEXT_HXX
11 #define INCLUDED_SC_SOURCE_FILTER_XML_CELLTEXTPARACONTEXT_HXX
12 
13 #include "importcontext.hxx"
14 
15 class ScXMLImport;
17 
22 {
24  OUString maContent;
25 public:
27 
28  virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
29  virtual void SAL_CALL characters( const OUString& aChars ) override;
30  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
31  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
32 
33  void PushSpan(const OUString& rSpan, const OUString& rStyleName);
34  void PushFieldSheetName(const OUString& rStyleName);
35  void PushFieldDate(const OUString& rStyleName);
36  void PushFieldTitle(const OUString& rStyleName);
37  void PushFieldURL(const OUString& rURL, const OUString& rRep, const OUString& rStyleName, const OUString& rTargetFrame);
38 };
39 
44 {
46  OUString maStyleName;
47  OUString maContent;
48 public:
50 
51  virtual void SAL_CALL startFastElement( sal_Int32 nElement,
52  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
53  virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
54  virtual void SAL_CALL characters( const OUString& aChars ) override;
55  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
56  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
57 };
58 
63 {
65  OUString maStyleName;
66 public:
68 
69  void SetStyleName(const OUString& rStyleName);
70 
71  virtual void SAL_CALL startFastElement( sal_Int32 nElement,
72  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
73  virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
74 };
75 
80 {
82  OUString maStyleName;
83 public:
85 
86  void SetStyleName(const OUString& rStyleName);
87 
88  virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
89 };
90 
95 {
97  OUString maStyleName;
98 public:
100 
101  void SetStyleName(const OUString& rStyleName);
102 
103  virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
104 };
105 
110 {
112  OUString maStyleName;
113  OUString maURL;
114  OUString maRep;
115  OUString maTargetFrame;
116 public:
118 
119  void SetStyleName(const OUString& rStyleName);
120 
121  virtual void SAL_CALL startFastElement( sal_Int32 nElement,
122  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
123  virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
124  virtual void SAL_CALL characters( const OUString& aChars ) override;
125 };
126 
131 {
133  OUString maStyleName;
134  sal_Int32 mnCount;
135 
136  void PushSpaces();
137 public:
139 
140  void SetStyleName(const OUString& rStyleName);
141 
142  virtual void SAL_CALL startFastElement( sal_Int32 nElement,
143  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
144  virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
145  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
146  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
147 };
148 
149 #endif
150 
151 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
ScXMLCellTextParaContext & mrParentCxt
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
void PushFieldURL(const OUString &rURL, const OUString &rRep, const OUString &rStyleName, const OUString &rTargetFrame)
ScXMLCellTextParaContext & mrParentCxt
ScXMLCellFieldTitleContext(ScXMLImport &rImport, ScXMLCellTextParaContext &rParent)
ScXMLCellFieldDateContext(ScXMLImport &rImport, ScXMLCellTextParaContext &rParent)
void SetStyleName(const OUString &rStyleName)
void PushFieldSheetName(const OUString &rStyleName)
ScXMLCellFieldSheetNameContext(ScXMLImport &rImport, ScXMLCellTextParaContext &rParent)
void PushFieldTitle(const OUString &rStyleName)
ScXMLCellTextParaContext & mrParentCxt
This context handles element inside or .
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
virtual void SAL_CALL characters(const OUString &aChars) override
ScXMLCellFieldURLContext(ScXMLImport &rImport, ScXMLCellTextParaContext &rParent)
This class exists only to provide GetScImport() to its derived classes.
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
This context handles element inside .
ScXMLCellFieldSContext(ScXMLImport &rImport, ScXMLCellTextParaContext &rParent)
This context handles element inside .
ScXMLCellTextParaContext & mrParentCxt
virtual void SAL_CALL characters(const OUString &aChars) override
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual void SAL_CALL characters(const OUString &aChars) override
ScXMLCellTextSpanContext(ScXMLImport &rImport, ScXMLCellTextParaContext &rParent)
void SetStyleName(const OUString &rStyleName)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
ScXMLCellTextParaContext & mrParentCxt
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
ScXMLCellTextParaContext & mrParentCxt
void SetStyleName(const OUString &rStyleName)
ScXMLTableRowCellContext & mrParentCxt
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
void SetStyleName(const OUString &rStyleName)
void SetStyleName(const OUString &rStyleName)
void PushFieldDate(const OUString &rStyleName)
This context handles element inside .
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
This context handles element inside .
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
void PushSpan(const OUString &rSpan, const OUString &rStyleName)
ScXMLCellTextParaContext(ScXMLImport &rImport, ScXMLTableRowCellContext &rParent)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
This context handles element inside or .
This context handles element inside .