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 endFastElement( sal_Int32 nElement ) override;
72 };
73 
78 {
80  OUString maStyleName;
81 public:
83 
84  void SetStyleName(const OUString& rStyleName);
85 
86  virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
87 };
88 
93 {
95  OUString maStyleName;
96 public:
98 
99  void SetStyleName(const OUString& rStyleName);
100 
101  virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
102 };
103 
108 {
110  OUString maStyleName;
111  OUString maURL;
112  OUString maRep;
113  OUString maTargetFrame;
114 public:
116 
117  void SetStyleName(const OUString& rStyleName);
118 
119  virtual void SAL_CALL startFastElement( sal_Int32 nElement,
120  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
121  virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
122  virtual void SAL_CALL characters( const OUString& aChars ) override;
123 };
124 
129 {
131  OUString maStyleName;
132  sal_Int32 mnCount;
133 
134  void PushSpaces();
135 public:
137 
138  void SetStyleName(const OUString& rStyleName);
139 
140  virtual void SAL_CALL startFastElement( sal_Int32 nElement,
141  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
142  virtual void SAL_CALL endFastElement( sal_Int32 nElement ) override;
143  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
144  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
145 };
146 
147 #endif
148 
149 /* 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
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 .