Ejemplo n.º 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;
        }
Ejemplo n.º 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;
                }
            }
        }
Ejemplo n.º 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);
             }
         }
     }
 }
Ejemplo n.º 4
0
 public CDVAtom(CDVAtom parent)
 {
     Parent = parent;
 }
Ejemplo n.º 5
0
 public CDVWord(CDVAtom owner) : base(owner)
 {
     ContentRect = Rectangle.Empty;
 }
Ejemplo n.º 6
0
 public CDVPara(CDVAtom owner) : base(owner)
 {
 }
Ejemplo n.º 7
0
 public void Add(CDVAtom atom)
 {
     atom.Parent = this;
     Words.Add(atom);
 }
Ejemplo n.º 8
0
 public CDVRuler(CDVAtom parent, int width): base(parent)
 {
     Value = 0;
     Width = Width;
 }
Ejemplo n.º 9
0
 public CDVRuler(CDVAtom parent): base(parent)
 {
     Value = 0;
     Width = 6;
 }