Lines Matching refs:xDiagramProps
155 bool lcl_isLightScheme( const uno::Reference< beans::XPropertySet >& xDiagramProps, bool bRealistic… in lcl_isLightScheme() argument
157 if(!xDiagramProps.is()) in lcl_isLightScheme()
161 xDiagramProps->getPropertyValue( C2U( UNO_NAME_3D_SCENE_LIGHTON_2 ) ) >>= bIsOn; in lcl_isLightScheme()
165 uno::Reference< chart2::XDiagram > xDiagram( xDiagramProps, uno::UNO_QUERY ); in lcl_isLightScheme()
169 xDiagramProps->getPropertyValue( C2U( UNO_NAME_3D_SCENE_LIGHTCOLOR_2 ) ) >>= nColor; in lcl_isLightScheme()
174 xDiagramProps->getPropertyValue( C2U( UNO_NAME_3D_SCENE_AMBIENTCOLOR ) ) >>= nAmbientColor; in lcl_isLightScheme()
179 xDiagramProps->getPropertyValue( C2U( UNO_NAME_3D_SCENE_LIGHTDIRECTION_2 ) ) >>= aDirection; in lcl_isLightScheme()
188 xDiagramProps->getPropertyValue( C2U("RightAngledAxes")) >>= bRightAngledAxes; in lcl_isLightScheme()
194 ::basegfx::B3DHomMatrix aRotation( lcl_getCompleteRotationMatrix( xDiagramProps ) ); in lcl_isLightScheme()
206 bool lcl_isRealisticLightScheme( const uno::Reference< beans::XPropertySet >& xDiagramProps ) in lcl_isRealisticLightScheme() argument
208 return lcl_isLightScheme( xDiagramProps, true /*bRealistic*/ ); in lcl_isRealisticLightScheme()
210 bool lcl_isSimpleLightScheme( const uno::Reference< beans::XPropertySet >& xDiagramProps ) in lcl_isSimpleLightScheme() argument
212 return lcl_isLightScheme( xDiagramProps, false /*bRealistic*/ ); in lcl_isSimpleLightScheme()
214 void lcl_setLightsForScheme( const uno::Reference< beans::XPropertySet >& xDiagramProps, const Thre… in lcl_setLightsForScheme() argument
216 if(!xDiagramProps.is()) in lcl_setLightsForScheme()
221 xDiagramProps->setPropertyValue( C2U( UNO_NAME_3D_SCENE_LIGHTON_2 ), uno::makeAny( sal_True ) ); in lcl_setLightsForScheme()
223 uno::Reference< chart2::XDiagram > xDiagram( xDiagramProps, uno::UNO_QUERY ); in lcl_setLightsForScheme()
229 xDiagramProps->setPropertyValue( C2U( UNO_NAME_3D_SCENE_LIGHTDIRECTION_2 ), aADirection ); in lcl_setLightsForScheme()
233 xDiagramProps->getPropertyValue( C2U("RightAngledAxes")) >>= bRightAngledAxes; in lcl_setLightsForScheme()
238 ::basegfx::B3DHomMatrix aRotation( lcl_getCompleteRotationMatrix( xDiagramProps ) ); in lcl_setLightsForScheme()
240 …lcl_RotateLightSource( xDiagramProps, C2U("D3DSceneLightDirection2"), C2U("D3DSceneLightOn2"), aRo… in lcl_setLightsForScheme()
246 … xDiagramProps->setPropertyValue( C2U( UNO_NAME_3D_SCENE_LIGHTCOLOR_2 ), uno::makeAny( nColor ) ); in lcl_setLightsForScheme()
249 …xDiagramProps->setPropertyValue( C2U( UNO_NAME_3D_SCENE_AMBIENTCOLOR ), uno::makeAny( nAmbientColo… in lcl_setLightsForScheme()
1211 uno::Reference< beans::XPropertySet > xDiagramProps( xDiagram, uno::UNO_QUERY ); in detectScheme() local
1214 if( xDiagramProps.is() ) in detectScheme()
1215 xDiagramProps->getPropertyValue( C2U( "D3DSceneShadeMode" ) )>>= aShadeMode; in detectScheme()
1224 if( lcl_isSimpleLightScheme(xDiagramProps) ) in detectScheme()
1229 if( lcl_isRealisticLightScheme(xDiagramProps) ) in detectScheme()