~ubuntu-branches/ubuntu/oneiric/pdfmod/oneiric

« back to all changes in this revision

Viewing changes to lib/PdfSharp/PdfSharp.Drawing.BarCodes/BarCode.cs

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2010-09-29 17:34:49 UTC
  • mfrom: (2.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100929173449-4ezagrzettatjk36
Tags: 0.9.0-1
* New upstream release
* debian/copyright: Document PdfSharp.SharpZipLib/*
* Drop all patches: committed upstream
* No change bump of Standards-Version from 3.8.4 to 3.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
// Authors:
4
4
//   Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com)
5
5
//
6
 
// Copyright (c) 2005-2008 empira Software GmbH, Cologne (Germany)
 
6
// Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany)
7
7
//
8
8
// http://www.pdfsharp.com
9
9
// http://sourceforge.net/projects/pdfsharp
67
67
          return new Code3of9Standard(text, size, direction);
68
68
 
69
69
        default:
 
70
#if !SILVERLIGHT
70
71
          throw new InvalidEnumArgumentException("type", (int)type, typeof(CodeType));
 
72
#else
 
73
          throw new ArgumentException("type", type.ToString());
 
74
#endif
71
75
      }
72
76
    }
73
77
 
98
102
    /// <summary>
99
103
    /// When overridden in a derived class gets or sets the wide narrow ratio.
100
104
    /// </summary>
101
 
    public virtual double WideNarrowRatio 
 
105
    public virtual double WideNarrowRatio
102
106
    {
103
107
      get { return 0; }
104
108
      set { }
125
129
    internal int dataLength;
126
130
 
127
131
    /// <summary>
128
 
    /// Gets or sets the optional start chararacter.
 
132
    /// Gets or sets the optional start character.
129
133
    /// </summary>
130
134
    public char StartChar
131
135
    {
135
139
    internal char startChar;
136
140
 
137
141
    /// <summary>
138
 
    /// Gets or sets the optional end chararacter.
 
142
    /// Gets or sets the optional end character.
139
143
    /// </summary>
140
144
    public char EndChar
141
145
    {
153
157
      get { return this.turboBit; }
154
158
      set { this.turboBit = value; }
155
159
    }
156
 
    internal bool turboBit = false;
 
160
    internal bool turboBit;
157
161
 
158
162
    internal virtual void InitRendering(BarCodeRenderInfo info)
159
163
    {