WrappedStockProperties.cxx (cde9e8dc) | WrappedStockProperties.cxx (9ec58d04) |
---|---|
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 --- 158 unchanged lines hidden (view full) --- 167 { 168 Reference< lang::XMultiServiceFactory > xFact( xChartDoc->getChartTypeManager(), uno::UNO_QUERY ); 169 DiagramHelper::tTemplateWithServiceName aTemplateAndService = 170 DiagramHelper::getTemplateForDiagram( xDiagram, xFact ); 171 172 if( aTemplateAndService.second.equals( C2U( "com.sun.star.chart2.template.StockVolumeLowHighClose" ) ) 173 || aTemplateAndService.second.equals( C2U( "com.sun.star.chart2.template.StockVolumeOpenLowHighClose" ) ) ) 174 m_aOuterValue <<= sal_Bool(sal_True); | 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 --- 158 unchanged lines hidden (view full) --- 167 { 168 Reference< lang::XMultiServiceFactory > xFact( xChartDoc->getChartTypeManager(), uno::UNO_QUERY ); 169 DiagramHelper::tTemplateWithServiceName aTemplateAndService = 170 DiagramHelper::getTemplateForDiagram( xDiagram, xFact ); 171 172 if( aTemplateAndService.second.equals( C2U( "com.sun.star.chart2.template.StockVolumeLowHighClose" ) ) 173 || aTemplateAndService.second.equals( C2U( "com.sun.star.chart2.template.StockVolumeOpenLowHighClose" ) ) ) 174 m_aOuterValue <<= sal_Bool(sal_True); |
175 else if( aTemplateAndService.second.getLength() || !m_aOuterValue.hasValue() ) | 175 else if( !aTemplateAndService.second.isEmpty() || !m_aOuterValue.hasValue() ) |
176 m_aOuterValue <<= sal_Bool(sal_False); 177 } 178 else if(!m_aOuterValue.hasValue()) 179 m_aOuterValue <<= sal_Bool(sal_False); 180 } 181 return m_aOuterValue; 182} 183 --- 56 unchanged lines hidden (view full) --- 240 { 241 Reference< lang::XMultiServiceFactory > xFact( xChartDoc->getChartTypeManager(), uno::UNO_QUERY ); 242 DiagramHelper::tTemplateWithServiceName aTemplateAndService = 243 DiagramHelper::getTemplateForDiagram( xDiagram, xFact ); 244 245 if( aTemplateAndService.second.equals( C2U( "com.sun.star.chart2.template.StockOpenLowHighClose" ) ) 246 || aTemplateAndService.second.equals( C2U( "com.sun.star.chart2.template.StockVolumeOpenLowHighClose" ) ) ) 247 m_aOuterValue <<= sal_Bool(sal_True); | 176 m_aOuterValue <<= sal_Bool(sal_False); 177 } 178 else if(!m_aOuterValue.hasValue()) 179 m_aOuterValue <<= sal_Bool(sal_False); 180 } 181 return m_aOuterValue; 182} 183 --- 56 unchanged lines hidden (view full) --- 240 { 241 Reference< lang::XMultiServiceFactory > xFact( xChartDoc->getChartTypeManager(), uno::UNO_QUERY ); 242 DiagramHelper::tTemplateWithServiceName aTemplateAndService = 243 DiagramHelper::getTemplateForDiagram( xDiagram, xFact ); 244 245 if( aTemplateAndService.second.equals( C2U( "com.sun.star.chart2.template.StockOpenLowHighClose" ) ) 246 || aTemplateAndService.second.equals( C2U( "com.sun.star.chart2.template.StockVolumeOpenLowHighClose" ) ) ) 247 m_aOuterValue <<= sal_Bool(sal_True); |
248 else if( aTemplateAndService.second.getLength() || !m_aOuterValue.hasValue() ) | 248 else if( !aTemplateAndService.second.isEmpty() || !m_aOuterValue.hasValue() ) |
249 m_aOuterValue <<= sal_Bool(sal_False); 250 } 251 else if(!m_aOuterValue.hasValue()) 252 m_aOuterValue <<= sal_Bool(sal_False); 253 } 254 return m_aOuterValue; 255} 256uno::Reference< chart2::XChartTypeTemplate > WrappedUpDownProperty::getNewTemplate( sal_Bool bNewValue, const rtl::OUString& rCurrentTemplate, const Reference< lang::XMultiServiceFactory >& xFactory ) const --- 68 unchanged lines hidden --- | 249 m_aOuterValue <<= sal_Bool(sal_False); 250 } 251 else if(!m_aOuterValue.hasValue()) 252 m_aOuterValue <<= sal_Bool(sal_False); 253 } 254 return m_aOuterValue; 255} 256uno::Reference< chart2::XChartTypeTemplate > WrappedUpDownProperty::getNewTemplate( sal_Bool bNewValue, const rtl::OUString& rCurrentTemplate, const Reference< lang::XMultiServiceFactory >& xFactory ) const --- 68 unchanged lines hidden --- |