diff options
author | Daniel Vogelheim <dvo@openoffice.org> | 2002-02-04 17:14:48 +0000 |
---|---|---|
committer | Daniel Vogelheim <dvo@openoffice.org> | 2002-02-04 17:14:48 +0000 |
commit | 60fa3bab62c31504d3bed09bf320c71fd1583f50 (patch) | |
tree | 30795560496b31140aaa19d5d4af665b00bd139e /xmloff/source/style/prhdlfac.cxx | |
parent | fea9abcfac2ebfe18b44a7824bc88fbe330b89f8 (diff) |
#96678# load/save writing mode
Diffstat (limited to 'xmloff/source/style/prhdlfac.cxx')
-rw-r--r-- | xmloff/source/style/prhdlfac.cxx | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/xmloff/source/style/prhdlfac.cxx b/xmloff/source/style/prhdlfac.cxx index e182c83a6542..0784485fe244 100644 --- a/xmloff/source/style/prhdlfac.cxx +++ b/xmloff/source/style/prhdlfac.cxx @@ -2,9 +2,9 @@ * * $RCSfile: prhdlfac.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: dvo $ $Date: 2001-06-29 21:07:17 $ + * last change: $Author: dvo $ $Date: 2002-02-04 18:14:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -65,6 +65,9 @@ #ifndef _COM_SUN_STAR_TEXT_HORIZONTALADJUST_HPP_ #include <com/sun/star/text/HorizontalAdjust.hpp> #endif +#ifndef _COM_SUN_STAR_TEXT_WRITINGMODE2_HPP_ +#include <com/sun/star/text/WritingMode2.hpp> +#endif #ifndef _TOOLS_DEBUG_HXX #include <tools/debug.hxx> @@ -179,6 +182,22 @@ SvXMLEnumMapEntry __READONLY_DATA aXML_HorizontalAdjust_Enum[] = { XML_TOKEN_INVALID, 0 } }; +// aXML_WritingDirection_Enum is used with and without 'page' +// attribute, so you'll find uses of aXML_WritingDirection_Enum as +// well as &(aXML_WritingDirection_Enum[1]) +SvXMLEnumMapEntry __READONLY_DATA aXML_WritingDirection_Enum[] = +{ + { XML_PAGE, text::WritingMode2_PAGE }, + { XML_LR_TB, text::WritingMode2_LR_TB }, + { XML_RL_TB, text::WritingMode2_LR_TB }, + { XML_TB_RL, text::WritingMode2_TB_RL }, + { XML_TB_LR, text::WritingMode2_TB_LR }, + { XML_LR, text::WritingMode2_LR_TB }, + { XML_RL, text::WritingMode2_LR_TB }, + { XML_TB, text::WritingMode2_TB_RL }, + { XML_TOKEN_INVALID, 0 } +}; + /////////////////////////////////////////////////////////////////////////// // @@ -430,6 +449,16 @@ const XMLPropertyHandler* XMLPropertyHandlerFactory::GetBasicHandler( sal_Int32 case XML_TYPE_TEXT_DRAW_ASPECT: pPropHdl = new DrawAspectHdl; break; + case XML_TYPE_TEXT_WRITING_MODE: + pPropHdl = new XMLEnumPropertyHdl( + &(aXML_WritingDirection_Enum[1]), + ::getCppuType((const text::WritingMode2*)0) ); + break; + case XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT: + pPropHdl = new XMLEnumPropertyHdl( + aXML_WritingDirection_Enum, + ::getCppuType((const text::WritingMode2*)0) ); + break; } if( pPropHdl ) |