~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/ipelets/align/align.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2007-01-09 23:14:51 UTC
  • mfrom: (3.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20070109231451-3nd095g7ishc108l
Tags: 6.0pre27-3
* debian/gsfonts-fontmap.xml: New.  Fontmap for fonts from gsfonts package.
* debian/rules: Use gsfonts-fontmap.xml instead of tetex-fontmap.xml.
* debian/control: Add texlive-latex-base dependency as alternative to
  tetex-bin (for pdflatex) and replace tetex-extra by gsfonts (for font
  files).  Patch courtesy of Norbert Preining.  Closes: #378537.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
/*
5
5
 
6
6
    This file is part of the extensible drawing editor Ipe.
7
 
    Copyright (C) 1993-2004  Otfried Cheong
 
7
    Copyright (C) 1993-2005  Otfried Cheong
8
8
 
9
9
    Ipe is free software; you can redistribute it and/or modify it
10
10
    under the terms of the GNU General Public License as published by
42
42
  virtual int NumFunctions() const { return 8; }
43
43
  virtual const char *Label() const { return "Align"; }
44
44
  virtual const char *SubLabel(int function) const;
45
 
  virtual const char *KeySequence(int function) const;
46
45
  virtual void Run(int, IpePage *page, IpeletHelper *helper);
47
46
};
48
47
 
59
58
  "Baseline"
60
59
};
61
60
 
62
 
const char * const shortcut[] = {
63
 
  "Shift+T", "Shift+B", "Shift+L", "Shift+R",
64
 
  "Shift+C", "Shift+H", "Shift+V", 0 };
65
 
 
66
61
const char *AlignIpelet::SubLabel(int function) const
67
62
{
68
63
  return sublabel[function];
69
64
}
70
65
 
71
 
const char *AlignIpelet::KeySequence(int function) const
72
 
{
73
 
  return shortcut[function];
74
 
}
75
 
 
76
66
// --------------------------------------------------------------------
77
67
 
78
68
void AlignIpelet::Run(int fn, IpePage *page, IpeletHelper *helper)