EnhancedCustomShape2d.cxx (f566f36c) EnhancedCustomShape2d.cxx (4d2151e5)
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

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

84 nNewValue = (sal_uInt16)nDat;
85 rParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
86 }
87 else
88 rParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
89 rParameter.Value <<= nNewValue;
90}
91
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

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

84 nNewValue = (sal_uInt16)nDat;
85 rParameter.Type = EnhancedCustomShapeParameterType::EQUATION;
86 }
87 else
88 rParameter.Type = EnhancedCustomShapeParameterType::NORMAL;
89 rParameter.Value <<= nNewValue;
90}
91
92rtl::OUString EnhancedCustomShape2d::GetEquation( const sal_uInt16 nFlags, sal_Int16 nP1, sal_Int16 nP2, sal_Int16 nP3 )
92rtl::OUString EnhancedCustomShape2d::GetEquation( const sal_uInt16 nFlags, sal_Int32 nP1, sal_Int32 nP2, sal_Int32 nP3 )
93{
94 rtl::OUString aEquation;
95 sal_Bool b1Special = ( nFlags & 0x2000 ) != 0;
96 sal_Bool b2Special = ( nFlags & 0x4000 ) != 0;
97 sal_Bool b3Special = ( nFlags & 0x8000 ) != 0;
98 switch( nFlags & 0xff )
99 {
100 case 0 :

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

330 EnhancedCustomShape2d::AppendEnhancedCustomShapeEquationParameter( aEquation, nP2, b2Special );
331 aEquation += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "-10800))+10800" ) );
332 }
333 break;
334 }
335 return aEquation;
336}
337
93{
94 rtl::OUString aEquation;
95 sal_Bool b1Special = ( nFlags & 0x2000 ) != 0;
96 sal_Bool b2Special = ( nFlags & 0x4000 ) != 0;
97 sal_Bool b3Special = ( nFlags & 0x8000 ) != 0;
98 switch( nFlags & 0xff )
99 {
100 case 0 :

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

330 EnhancedCustomShape2d::AppendEnhancedCustomShapeEquationParameter( aEquation, nP2, b2Special );
331 aEquation += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "-10800))+10800" ) );
332 }
333 break;
334 }
335 return aEquation;
336}
337
338void EnhancedCustomShape2d::AppendEnhancedCustomShapeEquationParameter( rtl::OUString& rParameter, const sal_Int16 nPara, const sal_Bool bIsSpecialValue )
338void EnhancedCustomShape2d::AppendEnhancedCustomShapeEquationParameter( rtl::OUString& rParameter, const sal_Int32 nPara, const sal_Bool bIsSpecialValue )
339{
340 if ( bIsSpecialValue )
341 {
342 if ( nPara & 0x400 )
343 {
344 rParameter += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "?" ) );
345 rParameter += rtl::OUString::valueOf( (sal_Int32)( nPara & 0xff ) );
346 rParameter += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( " " ) );

--- 1896 unchanged lines hidden ---
339{
340 if ( bIsSpecialValue )
341 {
342 if ( nPara & 0x400 )
343 {
344 rParameter += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "?" ) );
345 rParameter += rtl::OUString::valueOf( (sal_Int32)( nPara & 0xff ) );
346 rParameter += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( " " ) );

--- 1896 unchanged lines hidden ---