Interface OfficeViewer


  • @Role
    @Deprecated
    public interface OfficeViewer
    Deprecated.
    since 5.4.6/6.2.2, use OfficeResourceViewer instead
    The component responsible for creating XDOM views from office attachments.
    Since:
    2.5M2
    Version:
    $Id: 4e1b0a30c04740bd52027fd7cbea04ca7ec90f78 $
    • Method Detail

      • createView

        org.xwiki.rendering.block.XDOM createView​(org.xwiki.model.reference.AttachmentReference attachmentReference,
                                                  Map<String,​String> parameters)
                                           throws Exception
        Deprecated.
        Creates a XDOM view of the specified office attachment.
        Parameters:
        attachmentReference - reference to the office attachment to be viewed
        parameters - implementation specific view parameters
        Returns:
        XDOM representation of the specified office document
        Throws:
        Exception - if an error occurs while accessing the office attachment or while creating the view