diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-04-03 12:01:49 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-04-06 19:31:59 +0100 |
commit | 4c9611cb3d9f18322f8e77f8ba493799d77c0a0a (patch) | |
tree | d8b8fa3450ba94391d30ab61038ee97cfbabbc6d /platform/windows/gsview/TextBlock.cs | |
parent | 1ed4656f99a09f38216d11275fe85bb75c0d635a (diff) | |
download | mupdf-4c9611cb3d9f18322f8e77f8ba493799d77c0a0a.tar.xz |
Remove gsview from mupdf repo.
It has its own repo now. See http://git.ghostscript.com/?p=gsview.git
Diffstat (limited to 'platform/windows/gsview/TextBlock.cs')
-rw-r--r-- | platform/windows/gsview/TextBlock.cs | 121 |
1 files changed, 0 insertions, 121 deletions
diff --git a/platform/windows/gsview/TextBlock.cs b/platform/windows/gsview/TextBlock.cs deleted file mode 100644 index 55d3e744..00000000 --- a/platform/windows/gsview/TextBlock.cs +++ /dev/null @@ -1,121 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.ComponentModel; -using System.Collections.ObjectModel; - -namespace gsview -{ - public class TextBlock : INotifyPropertyChanged - { - double height; - double width; - double x; - double y; - double scale; - String color; - int page_number; - - public List<TextLine> TextLines; - - /* Determine intersection case of block with selection rectangle */ - public Intersection_t CheckIntersection(double rect_x, double rect_y, double rect_w, double rect_h) - { - if (rect_h == 0 || rect_y > y + height || rect_y + rect_h < y || - rect_x + rect_w < x || rect_x > x + width) - return Intersection_t.NONE; - - if (rect_y < y && y + height < rect_y + rect_h) - return Intersection_t.FULL; - - return Intersection_t.PARTIAL; - } - - public double Height - { - get { return height; } - set - { - height = value; - OnPropertyChanged("Height"); - } - } - - public double Width - { - get { return width; } - set - { - width = value; - OnPropertyChanged("Width"); - } - } - - public double X - { - get { return x; } - set - { - x = value; - OnPropertyChanged("X"); - } - } - - public double Y - { - get { return y; } - set - { - y = value; - OnPropertyChanged("Y"); - } - } - public double Scale - { - get { return scale; } - set { scale = value;} - } - - public int PageNumber - { - get { return page_number; } - set { page_number = value; } - } - - public String Color - { - get { return color; } - set - { - color = value; - OnPropertyChanged("Color"); - } - } - - public int GetNumberLines() - { - return TextLines.Count; - } - - public event PropertyChangedEventHandler PropertyChanged; - - // Create the OnPropertyChanged method to raise the event - protected void OnPropertyChanged(string name) - { - PropertyChangedEventHandler handler = PropertyChanged; - if (handler != null) - { - handler(this, new PropertyChangedEventArgs(name)); - } - } - } - - public class BlocksText : ObservableCollection<TextBlock> - { - public BlocksText() - : base() - { - } - } -} |