~ubuntu-branches/ubuntu/edgy/monodevelop/edgy

« back to all changes in this revision

Viewing changes to Unused/ICSharpCode.TextEditor/src/Document/HighlightingStrategy/HighlightBackground.cs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-09-15 02:15:25 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060915021525-ngsnriip5e3uqi9d
Tags: 0.12-0ubuntu1
* New upstream release
* debian/patches/gtk-sharp-2.10.dpatch,
  debian/patches/versioncontrol_buildfix.dpatch:
  + Dropped, merged upstream
* debian/patches/use_nunit2.2.dpatch,
  debian/patches/firefox.dpatch:
  + Updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// <file>
2
 
//     <copyright see="prj:///doc/copyright.txt"/>
3
 
//     <license see="prj:///doc/license.txt"/>
4
 
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
5
 
//     <version value="$version"/>
6
 
// </file>
7
 
 
8
 
using System;
9
 
using System.Drawing;
10
 
using System.Diagnostics;
11
 
using System.Collections.Specialized;
12
 
using System.Collections;
13
 
using System.Globalization;
14
 
using System.IO;
15
 
using System.Reflection;
16
 
using System.Xml;
17
 
 
18
 
namespace MonoDevelop.TextEditor.Document
19
 
{
20
 
        /// <summary>
21
 
        /// Extens the highlighting color with a background image.
22
 
        /// </summary>
23
 
        public class HighlightBackground : HighlightColor
24
 
        {
25
 
                Image backgroundImage;
26
 
                
27
 
                /// <value>
28
 
                /// The image used as background
29
 
                /// </value>
30
 
                public Image BackgroundImage {
31
 
                        get {
32
 
                                return backgroundImage;
33
 
                        }
34
 
                }
35
 
                
36
 
                /// <summary>
37
 
                /// Creates a new instance of <see cref="HighlightBackground"/>
38
 
                /// </summary>
39
 
                public HighlightBackground(XmlElement el) : base(el)
40
 
                {
41
 
                        if (el.Attributes["image"] != null) {
42
 
                                backgroundImage = new Bitmap(el.Attributes["image"].InnerText);
43
 
                        }
44
 
                }
45
 
                
46
 
                /// <summary>
47
 
                /// Creates a new instance of <see cref="HighlightBackground"/>
48
 
                /// </summary>
49
 
                public HighlightBackground(Color color, Color backgroundcolor, bool bold, bool italic) : base(color, backgroundcolor, bold, italic)
50
 
                {
51
 
                }
52
 
                
53
 
                public HighlightBackground(string systemColor, string systemBackgroundColor, bool bold, bool italic) : base(systemColor, systemBackgroundColor, bold, italic)
54
 
                {
55
 
                }
56
 
        }
57
 
}