sdpropls.cxx (c0739476) sdpropls.cxx (26734c99)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 37 unchanged lines hidden (view full) ---

46#include "numithdl.hxx"
47#include "XMLBitmapRepeatOffsetPropertyHandler.hxx"
48#include "XMLFillBitmapSizePropertyHandler.hxx"
49#include "XMLBitmapLogicalSizePropertyHandler.hxx"
50#include <com/sun/star/drawing/TextAnimationKind.hpp>
51#include <com/sun/star/drawing/TextAnimationDirection.hpp>
52#include <com/sun/star/drawing/TextHorizontalAdjust.hpp>
53#include <com/sun/star/drawing/TextVerticalAdjust.hpp>
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 37 unchanged lines hidden (view full) ---

46#include "numithdl.hxx"
47#include "XMLBitmapRepeatOffsetPropertyHandler.hxx"
48#include "XMLFillBitmapSizePropertyHandler.hxx"
49#include "XMLBitmapLogicalSizePropertyHandler.hxx"
50#include <com/sun/star/drawing/TextAnimationKind.hpp>
51#include <com/sun/star/drawing/TextAnimationDirection.hpp>
52#include <com/sun/star/drawing/TextHorizontalAdjust.hpp>
53#include <com/sun/star/drawing/TextVerticalAdjust.hpp>
54#include <com/sun/star/drawing/TextFitToSizeType.hpp>
54#include <com/sun/star/drawing/MeasureTextHorzPos.hpp>
55#include <com/sun/star/drawing/MeasureTextVertPos.hpp>
56#include <xmloff/controlpropertyhdl.hxx>
57#include <xmloff/xmltoken.hxx>
58#include "sdpropls.hxx"
59#include "propimp0.hxx"
60#include <xmloff/xmlexp.hxx>
61#include <xmloff/xmlnmspe.hxx>

--- 74 unchanged lines hidden (view full) ---

136 GMAP( "FillBitmapOffsetX", XML_NAMESPACE_DRAW, XML_TILE_REPEAT_OFFSET, XML_SD_TYPE_BITMAPREPOFFSETX|MID_FLAG_MULTI_PROPERTY, CTF_REPEAT_OFFSET_X ),
137 GMAP( "FillBitmapOffsetY", XML_NAMESPACE_DRAW, XML_TILE_REPEAT_OFFSET, XML_SD_TYPE_BITMAPREPOFFSETY|MID_FLAG_MULTI_PROPERTY, CTF_REPEAT_OFFSET_Y ),
138
139 // text frame attributes
140 GMAP( "TextHorizontalAdjust", XML_NAMESPACE_DRAW, XML_TEXTAREA_HORIZONTAL_ALIGN, XML_SD_TYPE_TEXT_ALIGN, 0 ),
141 GMAP( "TextVerticalAdjust", XML_NAMESPACE_DRAW, XML_TEXTAREA_VERTICAL_ALIGN, XML_SD_TYPE_VERTICAL_ALIGN, 0 ),
142 GMAP( "TextAutoGrowHeight", XML_NAMESPACE_DRAW, XML_AUTO_GROW_HEIGHT, XML_TYPE_BOOL, 0 ),
143 GMAP( "TextAutoGrowWidth", XML_NAMESPACE_DRAW, XML_AUTO_GROW_WIDTH, XML_TYPE_BOOL, 0 ),
55#include <com/sun/star/drawing/MeasureTextHorzPos.hpp>
56#include <com/sun/star/drawing/MeasureTextVertPos.hpp>
57#include <xmloff/controlpropertyhdl.hxx>
58#include <xmloff/xmltoken.hxx>
59#include "sdpropls.hxx"
60#include "propimp0.hxx"
61#include <xmloff/xmlexp.hxx>
62#include <xmloff/xmlnmspe.hxx>

--- 74 unchanged lines hidden (view full) ---

137 GMAP( "FillBitmapOffsetX", XML_NAMESPACE_DRAW, XML_TILE_REPEAT_OFFSET, XML_SD_TYPE_BITMAPREPOFFSETX|MID_FLAG_MULTI_PROPERTY, CTF_REPEAT_OFFSET_X ),
138 GMAP( "FillBitmapOffsetY", XML_NAMESPACE_DRAW, XML_TILE_REPEAT_OFFSET, XML_SD_TYPE_BITMAPREPOFFSETY|MID_FLAG_MULTI_PROPERTY, CTF_REPEAT_OFFSET_Y ),
139
140 // text frame attributes
141 GMAP( "TextHorizontalAdjust", XML_NAMESPACE_DRAW, XML_TEXTAREA_HORIZONTAL_ALIGN, XML_SD_TYPE_TEXT_ALIGN, 0 ),
142 GMAP( "TextVerticalAdjust", XML_NAMESPACE_DRAW, XML_TEXTAREA_VERTICAL_ALIGN, XML_SD_TYPE_VERTICAL_ALIGN, 0 ),
143 GMAP( "TextAutoGrowHeight", XML_NAMESPACE_DRAW, XML_AUTO_GROW_HEIGHT, XML_TYPE_BOOL, 0 ),
144 GMAP( "TextAutoGrowWidth", XML_NAMESPACE_DRAW, XML_AUTO_GROW_WIDTH, XML_TYPE_BOOL, 0 ),
144 GMAP( "TextFitToSize", XML_NAMESPACE_DRAW, XML_FIT_TO_SIZE, XML_TYPE_BOOL, 0 ),
145 GMAP( "TextFitToSize", XML_NAMESPACE_DRAW, XML_FIT_TO_SIZE, XML_SD_TYPE_FITTOSIZE, 0 ),
145 GMAP( "TextContourFrame", XML_NAMESPACE_DRAW, XML_FIT_TO_CONTOUR, XML_TYPE_BOOL, 0 ),
146 GMAP( "TextMaximumFrameHeight", XML_NAMESPACE_FO, XML_MAX_HEIGHT, XML_TYPE_MEASURE, 0 ),
147 GMAP( "TextMaximumFrameWidth", XML_NAMESPACE_FO, XML_MAX_WIDTH, XML_TYPE_MEASURE, 0 ),
148 GMAP( "TextMinimumFrameHeight", XML_NAMESPACE_FO, XML_MIN_HEIGHT, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, 0 ), // exists in SW, too
149 GMAP( "TextMinimumFrameWidth", XML_NAMESPACE_FO, XML_MIN_WIDTH, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, 0 ),
150 GMAP( "TextUpperDistance", XML_NAMESPACE_FO, XML_PADDING_TOP, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, 0 ), // exists in SW, too
151 GMAP( "TextLowerDistance", XML_NAMESPACE_FO, XML_PADDING_BOTTOM, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, 0 ), // exists in SW, too
152 GMAP( "TextLeftDistance", XML_NAMESPACE_FO, XML_PADDING_LEFT, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, 0 ), // exists in SW, too

--- 468 unchanged lines hidden (view full) ---

621{
622 { XML_TOP, drawing::TextVerticalAdjust_TOP },
623 { XML_MIDDLE, drawing::TextVerticalAdjust_CENTER },
624 { XML_BOTTOM, drawing::TextVerticalAdjust_BOTTOM },
625 { XML_JUSTIFY, drawing::TextVerticalAdjust_BLOCK },
626 { XML_TOKEN_INVALID, 0 }
627};
628
146 GMAP( "TextContourFrame", XML_NAMESPACE_DRAW, XML_FIT_TO_CONTOUR, XML_TYPE_BOOL, 0 ),
147 GMAP( "TextMaximumFrameHeight", XML_NAMESPACE_FO, XML_MAX_HEIGHT, XML_TYPE_MEASURE, 0 ),
148 GMAP( "TextMaximumFrameWidth", XML_NAMESPACE_FO, XML_MAX_WIDTH, XML_TYPE_MEASURE, 0 ),
149 GMAP( "TextMinimumFrameHeight", XML_NAMESPACE_FO, XML_MIN_HEIGHT, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, 0 ), // exists in SW, too
150 GMAP( "TextMinimumFrameWidth", XML_NAMESPACE_FO, XML_MIN_WIDTH, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, 0 ),
151 GMAP( "TextUpperDistance", XML_NAMESPACE_FO, XML_PADDING_TOP, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, 0 ), // exists in SW, too
152 GMAP( "TextLowerDistance", XML_NAMESPACE_FO, XML_PADDING_BOTTOM, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, 0 ), // exists in SW, too
153 GMAP( "TextLeftDistance", XML_NAMESPACE_FO, XML_PADDING_LEFT, XML_TYPE_MEASURE|MID_FLAG_MULTI_PROPERTY, 0 ), // exists in SW, too

--- 468 unchanged lines hidden (view full) ---

622{
623 { XML_TOP, drawing::TextVerticalAdjust_TOP },
624 { XML_MIDDLE, drawing::TextVerticalAdjust_CENTER },
625 { XML_BOTTOM, drawing::TextVerticalAdjust_BOTTOM },
626 { XML_JUSTIFY, drawing::TextVerticalAdjust_BLOCK },
627 { XML_TOKEN_INVALID, 0 }
628};
629
630SvXMLEnumMapEntry __READONLY_DATA pXML_FitToSize_Enum[] =
631{
632 { XML_FALSE, drawing::TextFitToSizeType_NONE },
633 { XML_TRUE, drawing::TextFitToSizeType_PROPORTIONAL },
634 { XML_TRUE, drawing::TextFitToSizeType_ALLLINES },
635 { XML_TRUE, drawing::TextFitToSizeType_RESIZEATTR },
636 { XML_TOKEN_INVALID, 0 }
637};
638
629SvXMLEnumMapEntry __READONLY_DATA pXML_MeasureUnit_Enum[] =
630{
631 { XML_AUTOMATIC, 0 },
632 { XML_UNIT_MM, 1 },
633 { XML_UNIT_CM, 2 },
634 { XML_UNIT_M, 3 },
635 { XML_UNIT_KM, 4 },
636 { XML_UNIT_PT, 6 },

--- 407 unchanged lines hidden (view full) ---

1044 pHdl = new XMLTextAnimationStepPropertyHdl;
1045 break;
1046 case XML_SD_TYPE_TEXT_ALIGN:
1047 pHdl = new XMLEnumPropertyHdl( pXML_TextAlign_Enum, ::getCppuType((const com::sun::star::drawing::TextHorizontalAdjust*)0) );
1048 break;
1049 case XML_SD_TYPE_VERTICAL_ALIGN:
1050 pHdl = new XMLEnumPropertyHdl( pXML_VerticalAlign_Enum, ::getCppuType((const com::sun::star::drawing::TextVerticalAdjust*)0) );
1051 break;
639SvXMLEnumMapEntry __READONLY_DATA pXML_MeasureUnit_Enum[] =
640{
641 { XML_AUTOMATIC, 0 },
642 { XML_UNIT_MM, 1 },
643 { XML_UNIT_CM, 2 },
644 { XML_UNIT_M, 3 },
645 { XML_UNIT_KM, 4 },
646 { XML_UNIT_PT, 6 },

--- 407 unchanged lines hidden (view full) ---

1054 pHdl = new XMLTextAnimationStepPropertyHdl;
1055 break;
1056 case XML_SD_TYPE_TEXT_ALIGN:
1057 pHdl = new XMLEnumPropertyHdl( pXML_TextAlign_Enum, ::getCppuType((const com::sun::star::drawing::TextHorizontalAdjust*)0) );
1058 break;
1059 case XML_SD_TYPE_VERTICAL_ALIGN:
1060 pHdl = new XMLEnumPropertyHdl( pXML_VerticalAlign_Enum, ::getCppuType((const com::sun::star::drawing::TextVerticalAdjust*)0) );
1061 break;
1062 case XML_SD_TYPE_FITTOSIZE:
1063 pHdl = new XMLEnumPropertyHdl( pXML_FitToSize_Enum, ::getCppuType((const com::sun::star::drawing::TextFitToSizeType*)0) );
1064 break;
1052 case XML_SD_TYPE_MEASURE_UNIT:
1053 pHdl = new XMLEnumPropertyHdl( pXML_MeasureUnit_Enum, ::getCppuType((const sal_Int32*)0) );
1054 break;
1055 case XML_SD_TYPE_MEASURE_HALIGN:
1056 pHdl = new XMLEnumPropertyHdl( pXML_Measure_HAlign_Enum, ::getCppuType((const com::sun::star::drawing::MeasureTextHorzPos*)0) );
1057 break;
1058 case XML_SD_TYPE_MEASURE_VALIGN:
1059 pHdl = new XMLEnumPropertyHdl( pXML_Measure_VAlign_Enum, ::getCppuType((const com::sun::star::drawing::MeasureTextVertPos*)0) );

--- 703 unchanged lines hidden ---
1065 case XML_SD_TYPE_MEASURE_UNIT:
1066 pHdl = new XMLEnumPropertyHdl( pXML_MeasureUnit_Enum, ::getCppuType((const sal_Int32*)0) );
1067 break;
1068 case XML_SD_TYPE_MEASURE_HALIGN:
1069 pHdl = new XMLEnumPropertyHdl( pXML_Measure_HAlign_Enum, ::getCppuType((const com::sun::star::drawing::MeasureTextHorzPos*)0) );
1070 break;
1071 case XML_SD_TYPE_MEASURE_VALIGN:
1072 pHdl = new XMLEnumPropertyHdl( pXML_Measure_VAlign_Enum, ::getCppuType((const com::sun::star::drawing::MeasureTextVertPos*)0) );

--- 703 unchanged lines hidden ---