<?xml version="1.0" encoding="UTF-8"?>
<!-- Licensed Materials - Property of IBM

     IBM SPSS Products: Text Analytics

     (C) Copyright IBM Corp. 2003, 2011

     US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP
     Schedule Contract with IBM Corp.  -->
<Extension version="1.0" debug="false">
  <ExtensionDetails id="file_viewer" label="File Viewer" version="1.0" providerTag="SPSS Inc." copyright="(c) 2006 SPSS Inc." description="SPSS File Viewer Node" />
  <Resources>
    <HelpInfo id="help" type="native" path="/ta_guide_ddita/"/>
    <Bundle id="translations.fileviewer" type="properties" path="messages"/>
    <SharedLibrary id="TMWBFileViewer" path="spss.TMWBServer/bin/FileViewer" />
  </Resources>
  <CommonObjects>
    <ContainerTypes>
      <DocumentType id="htmloutput">
      </DocumentType>
    </ContainerTypes>
  </CommonObjects>
  <UserInterface>
    <Palettes>
      <Palette id="text_mining" />
    </Palettes>
  </UserInterface>
  <Node id="fileviewer" type="documentBuilder" customPalette="text_mining" label="File Viewer" labelKey="fileviewernode.LABEL" helpLink="textmining/tmfc/tmfc_viewer_node_intro.htm" description="Displays file based data in a web browser" descriptionKey="fileviewernode_tooltip.LABEL">
    <Properties>
      <Property name="doc_field" valueType="string" />
      <Property name="title" valueType="string" defaultValueKey="listOfDocuments.VALUE"/>
    </Properties>
    <UserInterface>
      <Icons>
        <Icon type="smallNode" imagePath="sm_fileviewer.gif" />
        <Icon type="standardNode" imagePath="lg_fileviewer.gif" />
      </Icons>
      <Tabs>
        <Tab label="Settings" labelKey="settingsTab.LABEL" helpLink="textmining/tmfc/tmfc_viewer_node_settings.htm">
          <PropertiesPanel>
            <SingleFieldChooserControl property="doc_field" label="Document field" labelKey="doc_field.LABEL" />
            <TextBoxControl property="title" label="Title for generated HTML page" labelKey="title.LABEL">
              <Layout rowIncrement="0" gridColumn="0" gridWidth="1" columnWeight="0.001" />
            </TextBoxControl>
          </PropertiesPanel>
        </Tab>
      </Tabs>
    </UserInterface>
    <Execution>
      <Module libraryId="TMWBFileViewer" name="TMFileViewer">
        <StatusCodes>
          <StatusCode code="0" status="error" message="Initialization Error" messageKey="initError.LABEL"/>
          <StatusCode code="1" status="error" message="Internal Error" messageKey="internalError.LABEL"/>
          <StatusCode code="2" status="error" message="Invalid input data" messageKey="invalidInputError.LABEL"/>
        </StatusCodes>
      </Module>
      <Properties>
        <Property name="tempfile" valueType="string">
          <DefaultValue>
            <ServerTempFile basename="htmloutput" />
          </DefaultValue>
        </Property>
      </Properties>
      <OutputFiles>
        <ContainerFile id="htmloutput" path="${tempfile}" containerType="htmloutput" />
      </OutputFiles>
      <Constructors>
        <CreateDocumentOutput type="htmloutput">
          <CreateDocument type="htmloutput" target="output" sourceFile="htmloutput" />
        </CreateDocumentOutput>
      </Constructors>
    </Execution>
    <DocumentBuilder>
    </DocumentBuilder>
  </Node>
  <DocumentOutput id="htmloutput" labelKey="textReportOfTextMining.LABEL">
    <Containers>
      <Container name="output" />
    </Containers>
    <UserInterface>
      <Icons>
        <Icon type="standardWindow" imagePath="sw_fileview.gif" />
      </Icons>
      <Tabs>
        <Tab label="Advanced" labelKey="advancedTab.LABEL">
          <TextBrowserPanel container="output" textFormat="html" />
        </Tab>
      </Tabs>
    </UserInterface>
  </DocumentOutput>
</Extension>