summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-05-07 14:59:41 +0000
committerRüdiger Timm <rt@openoffice.org>2004-05-07 14:59:41 +0000
commitfbb4a8a70aa7f3e23c638ce0939b4d870d802074 (patch)
tree35c4871493ab2443e25a410553a7a194233ba9f6 /xmloff
parent127485587946e05079e93b9a8ef3c2921e3a1905 (diff)
INTEGRATION: CWS frmcontrols03 (1.21.52); FILE MERGED
2004/03/02 09:51:21 fs 1.21.52.2: #i24387# proper im/export of a rich text control 2004/02/17 15:38:38 fs 1.21.52.1: #i24387# import text paragraphs of a rich text control
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/forms/elementimport.hxx24
1 files changed, 22 insertions, 2 deletions
diff --git a/xmloff/source/forms/elementimport.hxx b/xmloff/source/forms/elementimport.hxx
index 71f058786359..258c5e4b3b0f 100644
--- a/xmloff/source/forms/elementimport.hxx
+++ b/xmloff/source/forms/elementimport.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: elementimport.hxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: kz $ $Date: 2003-12-11 12:08:45 $
+ * last change: $Author: rt $ $Date: 2004-05-07 15:59:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -71,6 +71,11 @@
#ifndef _XMLOFF_FORMS_VALUEPROPERTIES_HXX_
#include "valueproperties.hxx"
#endif
+
+/** === begin UNO includes === **/
+#ifndef _COM_SUN_STAR_TEXT_XTEXTCURSOR_HPP_
+#include <com/sun/star/text/XTextCursor.hpp>
+#endif
#ifndef _COM_SUN_STAR_CONTAINER_XNAMECONTAINER_HPP_
#include <com/sun/star/container/XNameContainer.hpp>
#endif
@@ -83,6 +88,8 @@
#ifndef _COM_SUN_STAR_SCRIPT_XEVENTATTACHERMANAGER_HPP_
#include <com/sun/star/script/XEventAttacherManager.hpp>
#endif
+/** === end UNO includes === **/
+
#ifndef _COMPHELPER_STLTYPES_HXX_
#include <comphelper/stl_types.hxx>
#endif
@@ -471,6 +478,11 @@ namespace xmloff
*/
class OTextLikeImport : public OControlImport
{
+ private:
+ ::com::sun::star::uno::Reference< com::sun::star::text::XTextCursor > m_xCursor;
+ ::com::sun::star::uno::Reference< com::sun::star::text::XTextCursor > m_xOldCursor;
+ bool m_bEncounteredTextPara;
+
public:
OTextLikeImport(
IFormsImportContext& _rImport, IEventAttacherManager& _rEventManager, sal_uInt16 _nPrefix, const ::rtl::OUString& _rName,
@@ -481,6 +493,14 @@ namespace xmloff
// SvXMLImportContext overridables
virtual void StartElement(
const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& _rxAttrList);
+ virtual SvXMLImportContext* CreateChildContext(
+ sal_uInt16 _nPrefix, const ::rtl::OUString& _rLocalName,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& _rxAttrList);
+ virtual void EndElement();
+
+ private:
+ void adjustDefaultControlProperty();
+ void removeRedundantCurrentValue();
};
//=====================================================================