To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=88695





------- Additional comments from [EMAIL PROTECTED] Thu Apr 24 14:00:50 +0000 
2008 -------
Code that I use to create the comment:

public void setComentario(String comentario) {
        // referencia à planilha
        XSpreadsheet sheet = //.. get the spreedsheet here
        // endereço da célula
        XCellAddressable xCellAddr = (XCellAddressable) UnoRuntime
                        .queryInterface(XCellAddressable.class, cell);
        CellAddress aAddress = xCellAddr.getCellAddress();
        // fornecedor de anotações
        XSheetAnnotationsSupplier xAnnotationsSupp = (XSheetAnnotationsSupplier)
UnoRuntime.queryInterface(XSheetAnnotationsSupplier.class, sheet);
        XSheetAnnotations xAnnotations = xAnnotationsSupp.getAnnotations();
        // insere o comentário no dado endereço da célula
        xAnnotations.insertNew(aAddress, comentario);
        // permite a visualização do comentário
        XSheetAnnotationAnchor xAnnotAnchor = (XSheetAnnotationAnchor)
UnoRuntime.queryInterface(XSheetAnnotationAnchor.class, cell);
        XSheetAnnotation xAnnotation = xAnnotAnchor.getAnnotation();
        xAnnotation.setIsVisible(true);
}

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to