Exemple #1
0
        public void InsertKey(string key, string prevKey, string nextKey, CDVAtom cellContent)
        {
            CDVDocumentCell cell = new CDVDocumentCell();

            cell.Key           = key;
            cell.NextKey       = nextKey;
            cell.PrevKey       = prevKey;
            cell.Item          = cellContent;
            cellContent.Parent = this;
        }
Exemple #2
0
        public CDVWord(CDVAtom owner, params object[] args) : base(owner)
        {
            ContentRect = Rectangle.Empty;

            foreach (object obj in args)
            {
                if (obj is CDVTextStyle)
                {
                    this.TextStyle = (CDVTextStyle)obj;
                }
                else if (obj is CDVParaStyle)
                {
                    this.ParaStyle = (CDVParaStyle)obj;
                }
                else if (obj is CDVSpan)
                {
                    this.SpanWidth = (CDVSpan)obj;
                }
                else if (obj is string)
                {
                    this.Text = (string)obj;
                }
            }
        }
Exemple #3
0
 public CDVPara(CDVAtom owner, params object[] args) : base(owner)
 {
     foreach (object obj in args)
     {
         if (obj is CDVParaStyle)
         {
             this.ParaStyle = (CDVParaStyle)obj;
         }
         else if (obj is CDVOrientation)
         {
             this.Orientation = (CDVOrientation)obj;
         }
         else if (obj is CDVTextStyle)
         {
             this.TextStyle = (CDVTextStyle)obj;
         }
         else if (obj is CDVSpan)
         {
             this.SpanWidth = (CDVSpan)obj;
         }
         else if (obj is CDVAtom)
         {
             CDVAtom atom = (CDVAtom)obj;
             atom.Parent = this;
             Words.Add(atom);
         }
         else if (obj is CDVAtom[])
         {
             foreach (CDVAtom atom in (CDVAtom[])obj)
             {
                 atom.Parent = this;
                 Words.Add(atom);
             }
         }
     }
 }
Exemple #4
0
 public CDVAtom(CDVAtom parent)
 {
     Parent = parent;
 }
Exemple #5
0
 public CDVWord(CDVAtom owner) : base(owner)
 {
     ContentRect = Rectangle.Empty;
 }
Exemple #6
0
 public CDVPara(CDVAtom owner) : base(owner)
 {
 }
Exemple #7
0
 public void Add(CDVAtom atom)
 {
     atom.Parent = this;
     Words.Add(atom);
 }
Exemple #8
0
 public CDVRuler(CDVAtom parent, int width): base(parent)
 {
     Value = 0;
     Width = Width;
 }
Exemple #9
0
 public CDVRuler(CDVAtom parent): base(parent)
 {
     Value = 0;
     Width = 6;
 }