/// <summary>
/// Summary description for PaperSize.
/// </summary>
+#if NET_2_0
+ [Serializable]
+#endif
public class PaperSize
{
string name;
int width;
int height;
PaperKind kind;
+ internal bool is_default;
+#if NET_2_0
+ public PaperSize ()
+ {
+
+ }
+#endif
public PaperSize(string name, int width, int height)
{
this.width = width;
this.name = name;
this.kind = PaperKind.Custom;
}
+
+ internal PaperSize(string name, int width, int height, PaperKind kind, bool isDefault)
+ {
+ this.width = width;
+ this.height = height;
+ this.name = name;
+ this.kind = PaperKind.Custom;
+ this.is_default = isDefault;
+ }
+
public int Width{
get{
return width;
return kind;
}
}
+#if NET_2_0
+ [MonoTODO]
+ public int RawKind {
+ get { throw new NotImplementedException(); }
+ set { throw new NotImplementedException(); }
+ }\r
+
+#endif
+
+ internal bool IsDefault {
+ get { return this.is_default; }
+ set { this.is_default = value; }
+ }
+
+
+ internal void SetKind (PaperKind k) {kind = k;}
public override string ToString(){
string ret = "[PaperSize {0} Kind={1} Height={2} Width={3}]";