Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/gendiapo/editor/GenDiapoEditor.java


1   package org.gendiapo.editor;
2    
3   import java.util.List;
4   import javax.swing.*;
5   import javax.swing.text.*;
6   import javax.swing.text.html.*;
7   import org.merlotxml.merlot.*;
8   import org.merlotxml.util.xml.*; 
9   
10  public interface GenDiapoEditor extends MerlotDOMEditor
11  {
12      static int EDITION_TREE   = 0;
13      static int EDITION_STYLE  = 1;
14      static int EDITION_CUSTOM = 2;
15      
16      /**
17       * A implementer pour faire le plugin
18       */
19      public boolean suppressTag(MerlotDOMNode node, String name);            
20      
21      /**
22       * Supprime le tag de l'arbre et la possibilite de l'ajouter
23       * @deprecated use suppressTag(MerlotDOMNode, String)
24       */
25      public boolean suppressTag(String name);    
26          
27      /**
28       * Utiliser par GenDoc
29       */
30      public boolean suppressAddType(MerlotDOMNode node, DTDElement el);
31      
32  
33      /**
34       * ViewFactory pour la vue stylee
35       *
36       */
37      public ViewFactory getViewFactory(MerlotDOMNode node);
38  
39      /**
40       * StyleSheet pour la vue stylee
41       *
42       */
43      public StyleSheet getStyleSheet(MerlotDOMNode node);
44  
45      /**
46       * editionType : indique si l'edition est en arbre ou style
47       * @return EDITION_TREE, EDITON_STYLE, EDITION_CUSTOM
48       *         for edition custo
49       *
50       */
51      public int editionType(MerlotDOMNode node);    
52      
53      /**
54       * @return NodeControler if editionType return
55       *         null otherwise
56       */
57      public NodeControler getNodeControler(MerlotDOMNode node);
58      
59      /**
60       * @return if void element must be add in styled view
61       *
62       **/
63      public boolean addVoid(MerlotDOMNode node);
64  
65  
66      /**
67       * @return list of DTDAttribute in styled view
68       *
69       */    
70      public List    attributesInStyledView(MerlotDOMNode node);
71      
72      /** 
73       * Permet d'obtenir une description courte d'un noeud
74       * 
75       */
76      public String getUserName(MerlotDOMNode node);
77      public String getUserName(DTDElement element);
78      public String getUserName(MerlotDOMNode node, DTDElement element);
79      public String getUserName(MerlotDOMNode node, DTDAttribute attribute);    
80  }