org.xwiki.rendering.internal.macro.office
Class OfficeMacro

java.lang.Object
  extended by org.xwiki.rendering.macro.AbstractMacro<OfficeMacroParameters>
      extended by org.xwiki.rendering.internal.macro.office.OfficeMacro
All Implemented Interfaces:
java.lang.Comparable<org.xwiki.rendering.macro.Macro<?>>, org.xwiki.component.phase.Initializable, org.xwiki.rendering.macro.Macro<OfficeMacroParameters>

@Component
@Named(value="office")
@Singleton
public class OfficeMacro
extends org.xwiki.rendering.macro.AbstractMacro<OfficeMacroParameters>

View office attachments (doc, ppt, xls, odt, odp, ods etc.) inside wiki pages without downloading or importing them.

Since:
2.5M2
Version:
$Id$

Field Summary
 
Fields inherited from class org.xwiki.rendering.macro.AbstractMacro
beanManager, DEFAULT_CATEGORY_CONTENT, DEFAULT_CATEGORY_DEVELOPMENT, DEFAULT_CATEGORY_FORMATTING, DEFAULT_CATEGORY_NAVIGATION
 
Constructor Summary
OfficeMacro()
          Default constructor.
 
Method Summary
 java.util.List<Block> execute(OfficeMacroParameters parameters, java.lang.String content, org.xwiki.rendering.transformation.MacroTransformationContext context)
          
 boolean supportsInlineMode()
          
 
Methods inherited from class org.xwiki.rendering.macro.AbstractMacro
compareTo, getDescriptor, getPriority, initialize, setDefaultCategory, setDescriptor, setPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfficeMacro

public OfficeMacro()
Default constructor.

Method Detail

execute

public java.util.List<Block> execute(OfficeMacroParameters parameters,
                                     java.lang.String content,
                                     org.xwiki.rendering.transformation.MacroTransformationContext context)
                              throws org.xwiki.rendering.macro.MacroExecutionException

Throws:
org.xwiki.rendering.macro.MacroExecutionException
See Also:
Macro.execute(Object, String, MacroTransformationContext)

supportsInlineMode

public boolean supportsInlineMode()

See Also:
Macro.supportsInlineMode()


Copyright © 2004-2011 XWiki. All Rights Reserved.