home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / jfc.bin / Constants.java < prev    next >
Text File  |  1998-02-26  |  3KB  |  74 lines

  1. /*
  2.  * @(#)Constants.java    1.1 97/11/14
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20. package com.sun.java.swing.text.rtf;
  21.  
  22. /**
  23.    Class to hold dictionary keys used by the RTF reader/writer.
  24.    These should be moved into StyleConstants.
  25. */
  26. class Constants
  27. {
  28.     /** An array of TabStops */
  29.     static final String Tabs = "tabs";
  30.  
  31.     /** The name of the character set the original RTF file was in */
  32.     static final String RTFCharacterSet = "rtfCharacterSet";
  33.  
  34.     /** Indicates the domain of a Style */
  35.     static final String StyleType = "style:type";
  36.  
  37.     /** Value for StyleType indicating a section style */
  38.     static final String STSection = "section";
  39.     /** Value for StyleType indicating a paragraph style */
  40.     static final String STParagraph = "paragraph";
  41.     /** Value for StyleType indicating a character style */
  42.     static final String STCharacter = "character";
  43.  
  44.     /** The style of the text following this style */
  45.     static final String StyleNext = "style:nextStyle";
  46.  
  47.     /** Whether the style is additive */
  48.     static final String StyleAdditive = "style:additive";
  49.  
  50.     /** Whether the style is hidden from the user */
  51.     static final String StyleHidden = "style:hidden";
  52.  
  53.     /* Miscellaneous character attributes */
  54.     static final String Caps          = "caps";
  55.     static final String Deleted       = "deleted";
  56.     static final String Outline       = "outl";
  57.     static final String SmallCaps     = "scaps";
  58.     static final String Shadow        = "shad";
  59.     static final String Strikethrough = "strike";
  60.     static final String Hidden        = "v";
  61.  
  62.     /* Miscellaneous document attributes */
  63.     static final String PaperWidth    = "paperw";
  64.     static final String PaperHeight   = "paperh";
  65.     static final String MarginLeft    = "margl";
  66.     static final String MarginRight   = "margr";
  67.     static final String MarginTop     = "margt";
  68.     static final String MarginBottom  = "margb";
  69.     static final String GutterWidth   = "gutter";
  70.  
  71.     /* This is both a document and a paragraph attribute */
  72.     static final String WidowControl  = "widowctrl";
  73. }
  74.