Kaydet (Commit) c927a908 authored tarafından Christian Lippka's avatar Christian Lippka

#80304# vertical writing added

üst a77189b6
......@@ -2,9 +2,9 @@
*
* $RCSfile: xmlkywd.hxx,v $
*
* $Revision: 1.70 $
* $Revision: 1.71 $
*
* last change: $Author: sab $ $Date: 2000-12-07 17:09:34 $
* last change: $Author: cl $ $Date: 2000-12-07 19:21:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -848,6 +848,7 @@ XML_CONSTASCII_ACTION( sXML_logarithmic, "logarithmic" );
XML_CONSTASCII_ACTION( sXML_logbase, "logbase" );
XML_CONSTASCII_ACTION( sXML_long, "long" );
XML_CONSTASCII_ACTION( sXML_lowlimit, "lowlimit" );
XML_CONSTASCII_ACTION( sXML_lr_tb, "lr-tb" );
XML_CONSTASCII_ACTION( sXML_lt, "lt");
XML_CONSTASCII_ACTION( sXML_ltr, "ltr");
XML_CONSTASCII_ACTION( sXML_luminance , "luminance" );
......@@ -1361,6 +1362,7 @@ XML_CONSTASCII_ACTION( sXML_tanh, "tanh" );
XML_CONSTASCII_ACTION( sXML_target_cell_address, "target-cell-address");
XML_CONSTASCII_ACTION( sXML_target_frame_name, "target-frame-name" );
XML_CONSTASCII_ACTION( sXML_target_range_address, "target-range-address");
XML_CONSTASCII_ACTION( sXML_tb_rl, "tb-rl" );
XML_CONSTASCII_ACTION( sXML_techreport, "techreport" );
XML_CONSTASCII_ACTION( sXML_template, "template" );
XML_CONSTASCII_ACTION( sXML_template_name, "template-name" );
......@@ -1534,6 +1536,7 @@ XML_CONSTASCII_ACTION( sXML_wrap, "wrap" );
XML_CONSTASCII_ACTION( sXML_wrap_contour, "wrap-contour" );
XML_CONSTASCII_ACTION( sXML_wrap_contour_mode, "wrap-contour-mode" );
XML_CONSTASCII_ACTION( sXML_wrap_option, "wrap-option" );
XML_CONSTASCII_ACTION( sXML_writing_mode, "writing-mode" );
XML_CONSTASCII_ACTION( sXML_www, "www" );
XML_CONSTASCII_ACTION( sXML_x, "x" );
XML_CONSTASCII_ACTION( sXML_x1, "x1" );
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: sdpropls.cxx,v $
*
* $Revision: 1.10 $
* $Revision: 1.11 $
*
* last change: $Author: cl $ $Date: 2000-12-05 17:58:52 $
* last change: $Author: cl $ $Date: 2000-12-07 19:25:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -182,6 +182,7 @@ const XMLPropertyMapEntry aXMLSDProperties[] =
{ "FillTransparenceGradientName", XML_NAMESPACE_DRAW, sXML_transparency_name, XML_TYPE_STRING, 0 },
// text frame attributes
{ "TextWritingMode", XML_NAMESPACE_FO, sXML_writing_mode, XML_SD_TYPE_WRITINGMODE, CTF_WRITINGMODE },
// shadow attributes
{ "Shadow", XML_NAMESPACE_DRAW, sXML_shadow, XML_SD_TYPE_SHADOW, 0 },
......@@ -580,6 +581,13 @@ const XMLPropertyHandler* XMLSdPropHdlFactory::GetPropertyHandler( sal_Int32 nTy
pHdl = new XMLOpacityPropertyHdl();
break;
}
case XML_SD_TYPE_WRITINGMODE :
{
const OUString aTrueStr( OUString::createFromAscii(sXML_tb_rl) );
const OUString aFalseStr( OUString::createFromAscii(sXML_lr_tb) );
pHdl = new XMLNamedBoolPropertyHdl( aTrueStr, aFalseStr );
break;
}
// still missing:
// case XML_SD_TYPE_PRESPAGE_VISIBILITY :
// {
......@@ -641,6 +649,7 @@ const XMLPropertyHandler* XMLSdPropHdlFactory::GetPropertyHandler( sal_Int32 nTy
xCompare = xCompareFac->createAnyCompareByName( OUString( RTL_CONSTASCII_USTRINGPARAM( "NumberingRules" ) ) );
pHdl = new XMLNumRulePropHdl( xCompare );
break;
}
}
......@@ -716,6 +725,16 @@ void XMLShapeExportPropertyMapper::ContextFilter(
}
}
break;
case CTF_WRITINGMODE:
{
sal_Bool bWritingMode;
if( property->maValue >>= bWritingMode )
{
if( !bWritingMode )
property->mnIndex = -1;
}
}
break;
}
}
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: sdpropls.hxx,v $
*
* $Revision: 1.6 $
* $Revision: 1.7 $
*
* last change: $Author: cl $ $Date: 2000-12-05 17:58:52 $
* last change: $Author: cl $ $Date: 2000-12-07 19:25:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -130,20 +130,22 @@ extern const XMLPropertyMapEntry aXMLSDPresPageProps[];
#define XML_SD_TYPE_COLORMODE (XML_SD_TYPES_START + 15 )
#define XML_SD_TYPE_TEXT_CROSSEDOUT (XML_SD_TYPES_START + 16 )
#define XML_SD_TYPE_NUMBULLET (XML_SD_TYPES_START + 17 )
#define XML_SD_TYPE_WRITINGMODE (XML_SD_TYPES_START + 18 )
// 3D property types
#define XML_SD_TYPE_BACKFACE_CULLING (XML_SD_TYPES_START + 18 )
#define XML_SD_TYPE_NORMALS_KIND (XML_SD_TYPES_START + 19 )
#define XML_SD_TYPE_NORMALS_DIRECTION (XML_SD_TYPES_START + 20 )
#define XML_SD_TYPE_TEX_GENERATION_MODE_X (XML_SD_TYPES_START + 21 )
#define XML_SD_TYPE_TEX_GENERATION_MODE_Y (XML_SD_TYPES_START + 22 )
#define XML_SD_TYPE_TEX_KIND (XML_SD_TYPES_START + 23 )
#define XML_SD_TYPE_TEX_MODE (XML_SD_TYPES_START + 24 )
#define XML_SD_TYPE_BACKFACE_CULLING (XML_SD_TYPES_START + 19 )
#define XML_SD_TYPE_NORMALS_KIND (XML_SD_TYPES_START + 20 )
#define XML_SD_TYPE_NORMALS_DIRECTION (XML_SD_TYPES_START + 21 )
#define XML_SD_TYPE_TEX_GENERATION_MODE_X (XML_SD_TYPES_START + 22 )
#define XML_SD_TYPE_TEX_GENERATION_MODE_Y (XML_SD_TYPES_START + 23 )
#define XML_SD_TYPE_TEX_KIND (XML_SD_TYPES_START + 24 )
#define XML_SD_TYPE_TEX_MODE (XML_SD_TYPES_START + 25 )
//////////////////////////////////////////////////////////////////////////////
#define CTF_NUMBERINGRULES 1000
#define CTF_NUMBERINGRULES_NAME 1001
#define CTF_WRITINGMODE 1002
//////////////////////////////////////////////////////////////////////////////
// enum maps for attributes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment