home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / Notes.jar / lotus / notes / RichTextStyle.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-15  |  3.6 KB  |  159 lines

  1. package lotus.notes;
  2.  
  3. public class RichTextStyle extends NotesBase {
  4.    private transient Session session;
  5.    public static final int EFFECTS_NONE = 0;
  6.    public static final int EFFECTS_SUPERSCRIPT = 1;
  7.    public static final int EFFECTS_SUBSCRIPT = 2;
  8.    public static final int EFFECTS_SHADOW = 3;
  9.    public static final int EFFECTS_EMBOSS = 4;
  10.    public static final int EFFECTS_EXTRUDE = 5;
  11.    public static final int COLOR_BLACK = 0;
  12.    public static final int COLOR_WHITE = 1;
  13.    public static final int COLOR_RED = 2;
  14.    public static final int COLOR_GREEN = 3;
  15.    public static final int COLOR_BLUE = 4;
  16.    public static final int COLOR_MAGENTA = 5;
  17.    public static final int COLOR_YELLOW = 6;
  18.    public static final int COLOR_CYAN = 7;
  19.    public static final int COLOR_DARK_RED = 8;
  20.    public static final int COLOR_DARK_GREEN = 9;
  21.    public static final int COLOR_DARK_BLUE = 10;
  22.    public static final int COLOR_DARK_MAGENTA = 11;
  23.    public static final int COLOR_DARK_YELLOW = 12;
  24.    public static final int COLOR_DARK_CYAN = 13;
  25.    public static final int COLOR_GRAY = 14;
  26.    public static final int COLOR_LIGHT_GRAY = 15;
  27.    public static final int FONT_ROMAN = 0;
  28.    public static final int FONT_HELV = 1;
  29.    public static final int FONT_COURIER = 4;
  30.    public static final int STYLE_NO_CHANGE = 255;
  31.    public static final int YES = 1;
  32.    // $FF: renamed from: NO int
  33.    public static final int field_0 = 0;
  34.    public static final int MAYBE = 255;
  35.  
  36.    protected RichTextStyle() throws NotesException {
  37.    }
  38.  
  39.    protected RichTextStyle(Session var1, int var2) throws NotesException {
  40.       super(var2, 24);
  41.       if (var1 == null) {
  42.          throw new NotesException(JavaString.resource.getString("missing_session_object"));
  43.       } else {
  44.          this.session = var1;
  45.          this.session.AddObject(this);
  46.       }
  47.    }
  48.  
  49.    protected void InternalFinalize() throws NotesException {
  50.       super.finalize();
  51.    }
  52.  
  53.    public void finalize() throws NotesException {
  54.       this.session.RemoveObject(this);
  55.       this.InternalFinalize();
  56.    }
  57.  
  58.    public void recycle() throws NotesException {
  59.       try {
  60.          this.session.RemoveObject(this);
  61.       } catch (NotesException var5) {
  62.       } finally {
  63.          super.Recycle();
  64.       }
  65.  
  66.    }
  67.  
  68.    public int GetCppObj() {
  69.       return super.GetCppObj();
  70.    }
  71.  
  72.    public void remove() throws NotesException {
  73.       ((NotesBase)this).CheckObject();
  74.       this.session.RemoveObject(this);
  75.       super.cpp_object = 0;
  76.       this.finalize();
  77.    }
  78.  
  79.    public int getBold() throws NotesException {
  80.       ((NotesBase)this).CheckObject();
  81.       return ((NotesBase)this).PropGetInt(1805);
  82.    }
  83.  
  84.    public void setBold(int var1) throws NotesException {
  85.       ((NotesBase)this).CheckObject();
  86.       ((NotesBase)this).PropSetInt(1805, var1);
  87.    }
  88.  
  89.    public int getItalic() throws NotesException {
  90.       ((NotesBase)this).CheckObject();
  91.       return ((NotesBase)this).PropGetInt(1806);
  92.    }
  93.  
  94.    public void setItalic(int var1) throws NotesException {
  95.       ((NotesBase)this).CheckObject();
  96.       ((NotesBase)this).PropSetInt(1806, var1);
  97.    }
  98.  
  99.    public int getUnderline() throws NotesException {
  100.       ((NotesBase)this).CheckObject();
  101.       return ((NotesBase)this).PropGetInt(1807);
  102.    }
  103.  
  104.    public void setUnderline(int var1) throws NotesException {
  105.       ((NotesBase)this).CheckObject();
  106.       ((NotesBase)this).PropSetInt(1807, var1);
  107.    }
  108.  
  109.    public int getStrikeThrough() throws NotesException {
  110.       ((NotesBase)this).CheckObject();
  111.       return ((NotesBase)this).PropGetInt(1808);
  112.    }
  113.  
  114.    public void setStrikeThrough(int var1) throws NotesException {
  115.       ((NotesBase)this).CheckObject();
  116.       ((NotesBase)this).PropSetInt(1808, var1);
  117.    }
  118.  
  119.    public int getEffects() throws NotesException {
  120.       ((NotesBase)this).CheckObject();
  121.       return ((NotesBase)this).PropGetInt(1810);
  122.    }
  123.  
  124.    public void setEffects(int var1) throws NotesException {
  125.       ((NotesBase)this).CheckObject();
  126.       ((NotesBase)this).PropSetInt(1810, var1);
  127.    }
  128.  
  129.    public int getFont() throws NotesException {
  130.       ((NotesBase)this).CheckObject();
  131.       return ((NotesBase)this).PropGetInt(1809);
  132.    }
  133.  
  134.    public void setFont(int var1) throws NotesException {
  135.       ((NotesBase)this).CheckObject();
  136.       ((NotesBase)this).PropSetInt(1809, var1);
  137.    }
  138.  
  139.    public int getFontSize() throws NotesException {
  140.       ((NotesBase)this).CheckObject();
  141.       return ((NotesBase)this).PropGetInt(1811);
  142.    }
  143.  
  144.    public void setFontSize(int var1) throws NotesException {
  145.       ((NotesBase)this).CheckObject();
  146.       ((NotesBase)this).PropSetInt(1811, var1);
  147.    }
  148.  
  149.    public int getColor() throws NotesException {
  150.       ((NotesBase)this).CheckObject();
  151.       return ((NotesBase)this).PropGetInt(1812);
  152.    }
  153.  
  154.    public void setColor(int var1) throws NotesException {
  155.       ((NotesBase)this).CheckObject();
  156.       ((NotesBase)this).PropSetInt(1812, var1);
  157.    }
  158. }
  159.