typegroupconverter.cxx (ca5ec200) | typegroupconverter.cxx (3a5971bb) |
---|---|
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 --- 432 unchanged lines hidden (view full) --- 441{ 442 if( !isSeriesFrameFormat() ) 443 { 444 namespace cssc = ::com::sun::star::chart2; 445 446 // symbol style 447 cssc::Symbol aSymbol; 448 aSymbol.Style = cssc::SymbolStyle_STANDARD; | 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 --- 432 unchanged lines hidden (view full) --- 441{ 442 if( !isSeriesFrameFormat() ) 443 { 444 namespace cssc = ::com::sun::star::chart2; 445 446 // symbol style 447 cssc::Symbol aSymbol; 448 aSymbol.Style = cssc::SymbolStyle_STANDARD; |
449 switch( nOoxSymbol ) | 449 switch( nOoxSymbol ) // compare with XclChPropSetHelper::WriteMarkerProperties in xlchart.cxx |
450 { 451 case XML_auto: aSymbol.Style = cssc::SymbolStyle_AUTO; break; 452 case XML_none: aSymbol.Style = cssc::SymbolStyle_NONE; break; 453 case XML_square: aSymbol.StandardSymbol = 0; break; // square 454 case XML_diamond: aSymbol.StandardSymbol = 1; break; // diamond 455 case XML_triangle: aSymbol.StandardSymbol = 3; break; // arrow up | 450 { 451 case XML_auto: aSymbol.Style = cssc::SymbolStyle_AUTO; break; 452 case XML_none: aSymbol.Style = cssc::SymbolStyle_NONE; break; 453 case XML_square: aSymbol.StandardSymbol = 0; break; // square 454 case XML_diamond: aSymbol.StandardSymbol = 1; break; // diamond 455 case XML_triangle: aSymbol.StandardSymbol = 3; break; // arrow up |
456 case XML_x: aSymbol.StandardSymbol = 6; break; // bow tie 457 case XML_star: aSymbol.StandardSymbol = 7; break; // sand glass | 456 case XML_x: aSymbol.StandardSymbol = 10; break; // X, legacy bow tie 457 case XML_star: aSymbol.StandardSymbol = 12; break; // asterisk, legacy sand glass |
458 case XML_dot: aSymbol.StandardSymbol = 4; break; // arrow right | 458 case XML_dot: aSymbol.StandardSymbol = 4; break; // arrow right |
459 case XML_dash: aSymbol.StandardSymbol = 2; break; // arrow down 460 case XML_circle: aSymbol.StandardSymbol = 4; break; // arrow right 461 case XML_plus: aSymbol.StandardSymbol = 5; break; // arrow left | 459 case XML_dash: aSymbol.StandardSymbol = 13; break; // horizontal bar, legacy arrow down 460 case XML_circle: aSymbol.StandardSymbol = 8; break; // circle, legacy arrow right 461 case XML_plus: aSymbol.StandardSymbol = 11; break; // plus, legacy arrow left |
462 } 463 464 // symbol size (points in OOXML, 1/100 mm in Chart2) 465 sal_Int32 nSize = static_cast< sal_Int32 >( nOoxSize * (2540.0 / 72.0) + 0.5 ); 466 aSymbol.Size.Width = aSymbol.Size.Height = nSize; 467 468 // set the property 469 rPropSet.setProperty( PROP_Symbol, aSymbol ); --- 93 unchanged lines hidden --- | 462 } 463 464 // symbol size (points in OOXML, 1/100 mm in Chart2) 465 sal_Int32 nSize = static_cast< sal_Int32 >( nOoxSize * (2540.0 / 72.0) + 0.5 ); 466 aSymbol.Size.Width = aSymbol.Size.Height = nSize; 467 468 // set the property 469 rPropSet.setProperty( PROP_Symbol, aSymbol ); --- 93 unchanged lines hidden --- |