heViewerUI, notDetachable;

/* At the top of the template's UI tree is a subclassed ViewerDialog */
@object MyViewerDialogClass TVDialog = {
  GI_comp = @TVLabel, @TVCloseTrigger, 
            @TVAddend0, @TVAddend1, @TVSum ;
  GI_states = @default & ~GS_USABLE;
}

/* A GenGlyph to display the document name. */
@object GenGlyphClass TVLabel = { 
  GI_visMoniker = "docName"; 
  @localize not;
} 

/* In this example, the document's data consists of two numbers, 
   which the program adds together.  These two 