2011-01-22 5 views
0

OpenOffice SDK를 사용하여 ppt 및 pptx 파일을 열고 구문 분석합니다. 이제 ppt 파일을 열고 모양을 추출 할 수 있습니다. 나는 모양 유형 등 사각형, 타원, 위해를 얻을 수 있습니다,하지만 난 com.sun.star.drawing.CustomShape를 얻을 수 위의 코드를 사용하여OpenOffice SDK에서 사용자 정의 모양 유형을 얻는 방법?

XShape xShape = (XShape) UnoRuntime.queryInterface(
    XShape.class, xShapes.getByIndex(j)); 
String type = xShape.getShapeType(); 

.

직사각형, 타원형 등과 같이 모양 유형을 가져 오는 방법이 있습니까? 내가 찾을 수

답변

0

유일한 방법은 재산 UINameSingular을 받고있다

XPropertySet xShapeProperties = (XPropertySet) 
    UnoRuntime.queryInterface(XPropertySet.class, xShape); 
String uiName = (String) xShapeProperties.getPropertyValue("UINameSingular"); 
관련 문제