質問

OpenOffice SDKを使用して、PPTおよびPPTXファイルを開き、解析しています。これで、PPTファイルを開き、形状を抽出できます。

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

上記のコードを使用することで、形状のタイプを取得し、長方形、楕円などを取得できますが、 com.sun.star.drawing.CustomShape.

長方形、楕円などの形状タイプを取得する方法はありますか?

役に立ちましたか?

解決

私が見つけることができる唯一の方法は得ることです uinamesingular 財産

XPropertySet xShapeProperties = (XPropertySet) 
    UnoRuntime.queryInterface(XPropertySet.class, xShape);
String uiName = (String) xShapeProperties.getPropertyValue("UINameSingular");
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top