~ubuntu-branches/ubuntu/saucy/lazarus/saucy

« back to all changes in this revision

Viewing changes to examples/fpdocmanager/FilenameExtension.patch

  • Committer: Package Import Robot
  • Author(s): Paul Gevers, Abou Al Montacir, Bart Martens, Paul Gevers
  • Date: 2013-06-08 14:12:17 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20130608141217-7k0cy9id8ifcnutc
Tags: 1.0.8+dfsg-1
[ Abou Al Montacir ]
* New upstream major release and multiple maintenace release offering many
  fixes and new features marking a new milestone for the Lazarus development
  and its stability level.
  - The detailed list of changes can be found here:
    http://wiki.lazarus.freepascal.org/Lazarus_1.0_release_notes
    http://wiki.lazarus.freepascal.org/Lazarus_1.0_fixes_branch
* LCL changes:
  - LCL is now a normal package.
      + Platform independent parts of the LCL are now in the package LCLBase
      + LCL is automatically recompiled when switching the target platform,
        unless pre-compiled binaries for this target are already installed.
      + No impact on existing projects.
      + Linker options needed by LCL are no more added to projects that do
        not use the LCL package.
  - Minor changes in LCL basic classes behaviour
      + TCustomForm.Create raises an exception if a form resource is not
        found.
      + TNotebook and TPage: a new implementation of these classes was added.
      + TDBNavigator: It is now possible to have focusable buttons by setting
        Options = [navFocusableButtons] and TabStop = True, useful for
        accessibility and for devices with neither mouse nor touch screen.
      + Names of TControlBorderSpacing.GetSideSpace and GetSpace were swapped
        and are now consistent. GetSideSpace = Around + GetSpace.
      + TForm.WindowState=wsFullscreen was added
      + TCanvas.TextFitInfo was added to calculate how many characters will
        fit into a specified Width. Useful for word-wrapping calculations.
      + TControl.GetColorResolvingParent and
        TControl.GetRGBColorResolvingParent were added, simplifying the work
        to obtain the final color of the control while resolving clDefault
        and the ParentColor.
      + LCLIntf.GetTextExtentExPoint now has a good default implementation
        which works in any platform not providing a specific implementation.
        However, Widgetset specific implementation is better, when available.
      + TTabControl was reorganized. Now it has the correct class hierarchy
        and inherits from TCustomTabControl as it should.
  - New unit in the LCL:
      + lazdialogs.pas: adds non-native versions of various native dialogs,
        for example TLazOpenDialog, TLazSaveDialog, TLazSelectDirectoryDialog.
        It is used by widgetsets which either do not have a native dialog, or
        do not wish to use it because it is limited. These dialogs can also be
        used by user applications directly.
      + lazdeviceapis.pas: offers an interface to more hardware devices such
        as the accelerometer, GPS, etc. See LazDeviceAPIs
      + lazcanvas.pas: provides a TFPImageCanvas descendent implementing
        drawing in a LCL-compatible way, but 100% in Pascal.
      + lazregions.pas. LazRegions is a wholly Pascal implementation of
        regions for canvas clipping, event clipping, finding in which control
        of a region tree one an event should reach, for drawing polygons, etc.
      + customdrawncontrols.pas, customdrawndrawers.pas,
        customdrawn_common.pas, customdrawn_android.pas and
        customdrawn_winxp.pas: are the Lazarus Custom Drawn Controls -controls
        which imitate the standard LCL ones, but with the difference that they
        are non-native and support skinning.
  - New APIs added to the LCL to improve support of accessibility software
    such as screen readers.
* IDE changes:
  - Many improvments.
  - The detailed list of changes can be found here:
    http://wiki.lazarus.freepascal.org/New_IDE_features_since#v1.0_.282012-08-29.29
    http://wiki.lazarus.freepascal.org/Lazarus_1.0_release_notes#IDE_Changes
* Debugger / Editor changes:
  - Added pascal sources and breakpoints to the disassembler
  - Added threads dialog.
* Components changes:
  - TAChart: many fixes and new features
  - CodeTool: support Delphi style generics and new syntax extensions.
  - AggPas: removed to honor free licencing. (Closes: Bug#708695)
[Bart Martens]
* New debian/watch file fixing issues with upstream RC release.
[Abou Al Montacir]
* Avoid changing files in .pc hidden directory, these are used by quilt for
  internal purpose and could lead to surprises during build.
[Paul Gevers]
* Updated get-orig-source target and it compinion script orig-tar.sh so that they
  repack the source file, allowing bug 708695 to be fixed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: dw_ipflin.pas
 
2
===================================================================
 
3
--- dw_ipflin.pas       (revision 20081)
 
4
+++ dw_ipflin.pas       (working copy)
 
5
@@ -89,7 +89,6 @@
 
6
     procedure EndOverview; override;
 
7
     procedure WriteOverviewMember(const ALabel,AName,Access,ADescr : String); override;
 
8
     procedure WriteOverviewMember(const ALabel,AName,ADescr : String); override;
 
9
-    class function FileNameExtension: string; override;
 
10
     procedure DescrBeginURL(const AURL: DOMString); override;
 
11
     procedure DescrEndURL; override;
 
12
     // Description node conversion. Overrides for TFPDocWriter.
 
13
@@ -141,6 +140,7 @@
 
14
     // TFPDocWriter class methods
 
15
   public
 
16
     constructor Create(APackage: TPasPackage; AEngine: TFPDocEngine); override;
 
17
+    class function FileNameExtension: string; override;
 
18
   end;
 
19
 
 
20
 
 
21
Index: dw_latex.pp
 
22
===================================================================
 
23
--- dw_latex.pp (revision 20081)
 
24
+++ dw_latex.pp (working copy)
 
25
@@ -79,7 +79,6 @@
 
26
     procedure EndOverview; override;
 
27
     procedure WriteOverviewMember(const ALabel,AName,Access,ADescr : String); override;
 
28
     procedure WriteOverviewMember(const ALabel,AName,ADescr : String); override;
 
29
-    Class Function FileNameExtension : String; override;
 
30
     // Description node conversion
 
31
     procedure DescrBeginBold; override;
 
32
     procedure DescrEndBold; override;
 
33
@@ -131,6 +130,8 @@
 
34
     // TFPDocWriter class methods
 
35
     Function InterPretOption(Const Cmd,Arg : String) : boolean; override;
 
36
     Property ImageDir : String Read FImageDir Write FImageDir;
 
37
+  public
 
38
+    Class Function FileNameExtension : String; override;
 
39
   end;
 
40
 
 
41
 
 
42
Index: dw_linrtf.pp
 
43
===================================================================
 
44
--- dw_linrtf.pp        (revision 20081)
 
45
+++ dw_linrtf.pp        (working copy)
 
46
@@ -114,7 +114,6 @@
 
47
     procedure WriteOverviewMember(const ALabel,AName,Access,ADescr : String); override;
 
48
     procedure WriteOverviewMember(const ALabel,AName,ADescr : String); override;
 
49
     procedure EndOverview; override;
 
50
-    Class Function FileNameExtension : String; override;
 
51
     // Description node conversion
 
52
     procedure DescrBeginBold; override;
 
53
     procedure DescrEndBold; override;
 
54
@@ -162,6 +161,8 @@
 
55
     procedure DescrEndTableCell; override;
 
56
     // TFPDocWriter class methods
 
57
     Function InterPretOption(Const Cmd,Arg : String) : boolean; override;
 
58
+  public
 
59
+    Class Function FileNameExtension : String; override;
 
60
   end;
 
61
 
 
62
 
 
63
Index: dw_lintmpl.pp
 
64
===================================================================
 
65
--- dw_lintmpl.pp       (revision 20081)
 
66
+++ dw_lintmpl.pp       (working copy)
 
67
@@ -91,7 +91,6 @@
 
68
     procedure EndOverview; override;
 
69
     procedure WriteOverviewMember(const ALabel,AName,Access,ADescr : String); override;
 
70
     procedure WriteOverviewMember(const ALabel,AName,ADescr : String); override;
 
71
-    Class Function FileNameExtension : String; override;
 
72
     // Description node conversion. Overrides for TFPDocWriter.
 
73
     procedure DescrBeginBold; override;
 
74
     procedure DescrEndBold; override;
 
75
@@ -139,6 +138,8 @@
 
76
     procedure DescrEndTableCell; override;
 
77
     // TFPDocWriter class methods
 
78
     Function InterPretOption(Const Cmd,Arg : String) : boolean; override;
 
79
+  public
 
80
+    Class Function FileNameExtension : String; override;
 
81
     Class procedure Usage(List: TStrings); override;
 
82
   end;
 
83
 
 
84
Index: dw_man.pp
 
85
===================================================================
 
86
--- dw_man.pp   (revision 20081)
 
87
+++ dw_man.pp   (working copy)
 
88
@@ -97,7 +97,6 @@
 
89
     procedure WriteCommentLine;
 
90
     procedure WriteComment(Comment : String);
 
91
     Procedure WriteExampleFile(FN : String); virtual;
 
92
-    Class Function FileNameExtension : String;virtual;
 
93
     procedure WriteExample(ADocNode: TDocNode);
 
94
     procedure WriteSeeAlso(ADocNode: TDocNode; Comma : Boolean);
 
95
   Public
 
96
@@ -178,6 +177,7 @@
 
97
     procedure DescrBeginTableCell; override;
 
98
     procedure DescrEndTableCell; override;
 
99
     Function InterPretOption(Const Cmd,Arg : String) : boolean; override;
 
100
+    Class Function FileNameExtension : String; override;
 
101
     Class procedure Usage(List: TStrings); override;
 
102
   end;
 
103
 
 
104
Index: dw_template.pp
 
105
===================================================================
 
106
--- dw_template.pp      (revision 20081)
 
107
+++ dw_template.pp      (working copy)
 
108
@@ -161,7 +161,7 @@
 
109
     // Provide feedback about usage of this backend.
 
110
     Class procedure Usage(List: TStrings); override;
 
111
     // For info only. See linear writer for an example.
 
112
-    Class Function FileNameExtension : String;virtual;
 
113
+    Class Function FileNameExtension : String; override;
 
114
   end;
 
115
 
 
116
 implementation
 
117
Index: dw_txt.pp
 
118
===================================================================
 
119
--- dw_txt.pp   (revision 20081)
 
120
+++ dw_txt.pp   (working copy)
 
121
@@ -82,7 +82,6 @@
 
122
     procedure EndOverview; override;
 
123
     procedure WriteOverviewMember(const ALabel,AName,Access,ADescr : String); override;
 
124
     procedure WriteOverviewMember(const ALabel,AName,ADescr : String); override;
 
125
-    Class Function FileNameExtension : String; override;
 
126
     // Description node conversion
 
127
     procedure DescrBeginBold; override;
 
128
     procedure DescrEndBold; override;
 
129
@@ -130,6 +129,7 @@
 
130
     procedure DescrEndTableCell; override;
 
131
   Public
 
132
     Constructor Create(APackage: TPasPackage; AEngine: TFPDocEngine); override;
 
133
+    Class Function FileNameExtension : String; override;
 
134
     Class Procedure Usage(List : TStrings) ; override;
 
135
     Function InterpretOption(Const Cmd,Arg : String) : Boolean; override;
 
136
   end;
 
137
Index: dwlinear.pp
 
138
===================================================================
 
139
--- dwlinear.pp (revision 20081)
 
140
+++ dwlinear.pp (working copy)
 
141
@@ -85,7 +85,6 @@
 
142
     procedure StartUnitOverview(AModuleName,AModuleLabel : String);virtual; Abstract;
 
143
     procedure WriteUnitEntry(UnitRef : TPasType);virtual; Abstract;
 
144
     procedure EndUnitOverview; virtual; Abstract;
 
145
-    Class Function FileNameExtension : String;virtual; Abstract;
 
146
     Property LastURL : DomString Read FLastURL Write FLastURL;
 
147
   Public
 
148
     Constructor Create(APackage: TPasPackage; AEngine: TFPDocEngine); override;
 
149
Index: dwriter.pp
 
150
===================================================================
 
151
--- dwriter.pp  (revision 20081)
 
152
+++ dwriter.pp  (working copy)
 
153
@@ -160,6 +160,7 @@
 
154
     Property ImageExtension : String Read FImgExt Write FImgExt;
 
155
     // Should return True if option was succesfully interpreted.
 
156
     Function InterpretOption(Const Cmd,Arg : String) : Boolean; Virtual;
 
157
+    Class Function FileNameExtension : String; virtual;
 
158
     Class Procedure Usage(List : TStrings); virtual;
 
159
     procedure WriteDoc; virtual; Abstract;
 
160
     Function WriteDescr(Element: TPasElement) : TDocNode;
 
161
@@ -350,6 +351,12 @@
 
162
   Result:=False;
 
163
 end;
 
164
 
 
165
+class function TFPDocWriter.FileNameExtension: String;
 
166
+begin
 
167
+//Override in linear writers with the expected extension.
 
168
+  Result := ''; //Output must not contain an extension.
 
169
+end;
 
170
+
 
171
 Class procedure TFPDocWriter.Usage(List: TStrings);
 
172
 begin
 
173
   // Do nothing.