1. /*
  2. * @(#)Constants.java 1.8 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing.text.rtf;
  8. /**
  9. Class to hold dictionary keys used by the RTF reader/writer.
  10. These should be moved into StyleConstants.
  11. */
  12. class Constants
  13. {
  14. /** An array of TabStops */
  15. static final String Tabs = "tabs";
  16. /** The name of the character set the original RTF file was in */
  17. static final String RTFCharacterSet = "rtfCharacterSet";
  18. /** Indicates the domain of a Style */
  19. static final String StyleType = "style:type";
  20. /** Value for StyleType indicating a section style */
  21. static final String STSection = "section";
  22. /** Value for StyleType indicating a paragraph style */
  23. static final String STParagraph = "paragraph";
  24. /** Value for StyleType indicating a character style */
  25. static final String STCharacter = "character";
  26. /** The style of the text following this style */
  27. static final String StyleNext = "style:nextStyle";
  28. /** Whether the style is additive */
  29. static final String StyleAdditive = "style:additive";
  30. /** Whether the style is hidden from the user */
  31. static final String StyleHidden = "style:hidden";
  32. /* Miscellaneous character attributes */
  33. static final String Caps = "caps";
  34. static final String Deleted = "deleted";
  35. static final String Outline = "outl";
  36. static final String SmallCaps = "scaps";
  37. static final String Shadow = "shad";
  38. static final String Strikethrough = "strike";
  39. static final String Hidden = "v";
  40. /* Miscellaneous document attributes */
  41. static final String PaperWidth = "paperw";
  42. static final String PaperHeight = "paperh";
  43. static final String MarginLeft = "margl";
  44. static final String MarginRight = "margr";
  45. static final String MarginTop = "margt";
  46. static final String MarginBottom = "margb";
  47. static final String GutterWidth = "gutter";
  48. /* This is both a document and a paragraph attribute */
  49. static final String WidowControl = "widowctrl";
  50. }