mirror of
https://github.com/Rayerd/dfl.git
synced 2025-04-26 13:09:57 +03:00
Change the body keyword to the do keyword (For DMD v2.097.0)
This commit is contained in:
parent
904e887790
commit
c959f221ef
2 changed files with 11 additions and 11 deletions
|
@ -3239,7 +3239,7 @@ class Graphics // docmain
|
||||||
{
|
{
|
||||||
assert(_hdc);
|
assert(_hdc);
|
||||||
}
|
}
|
||||||
body
|
do
|
||||||
{
|
{
|
||||||
return GetDeviceCaps(_hdc, LOGPIXELSX); // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()).
|
return GetDeviceCaps(_hdc, LOGPIXELSX); // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()).
|
||||||
}
|
}
|
||||||
|
@ -3250,7 +3250,7 @@ class Graphics // docmain
|
||||||
{
|
{
|
||||||
assert(_hdc);
|
assert(_hdc);
|
||||||
}
|
}
|
||||||
body
|
do
|
||||||
{
|
{
|
||||||
return GetDeviceCaps(_hdc, LOGPIXELSY); // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()).
|
return GetDeviceCaps(_hdc, LOGPIXELSY); // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()).
|
||||||
}
|
}
|
||||||
|
@ -3262,7 +3262,7 @@ class Graphics // docmain
|
||||||
{
|
{
|
||||||
assert(_hdc);
|
assert(_hdc);
|
||||||
}
|
}
|
||||||
body
|
do
|
||||||
{
|
{
|
||||||
const int dpiHor = this.dpiX; // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()).
|
const int dpiHor = this.dpiX; // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()).
|
||||||
const int dpiVer = this.dpiY; // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()).
|
const int dpiVer = this.dpiY; // NOTE: Allways return 96 in video display (View document of SetProcessDPIAware()).
|
||||||
|
|
|
@ -1233,7 +1233,7 @@ class PageSettings
|
||||||
assert(this.paperSize);
|
assert(this.paperSize);
|
||||||
assert(this.margins);
|
assert(this.margins);
|
||||||
}
|
}
|
||||||
body
|
do
|
||||||
{
|
{
|
||||||
int width = this.paperSize.width - this.margins.left - this.margins.right;
|
int width = this.paperSize.width - this.margins.left - this.margins.right;
|
||||||
int height = this.paperSize.height - this.margins.top - this.margins.bottom;
|
int height = this.paperSize.height - this.margins.top - this.margins.bottom;
|
||||||
|
@ -2106,7 +2106,7 @@ class PrintPreviewControl : Control
|
||||||
{
|
{
|
||||||
assert(doc);
|
assert(doc);
|
||||||
}
|
}
|
||||||
body
|
do
|
||||||
{
|
{
|
||||||
_document = doc;
|
_document = doc;
|
||||||
_columns = 1;
|
_columns = 1;
|
||||||
|
@ -2121,7 +2121,7 @@ class PrintPreviewControl : Control
|
||||||
{
|
{
|
||||||
assert(doc);
|
assert(doc);
|
||||||
}
|
}
|
||||||
body
|
do
|
||||||
{
|
{
|
||||||
_document = doc;
|
_document = doc;
|
||||||
}
|
}
|
||||||
|
@ -2187,7 +2187,7 @@ class PrintPreviewControl : Control
|
||||||
{
|
{
|
||||||
assert(document);
|
assert(document);
|
||||||
}
|
}
|
||||||
body
|
do
|
||||||
{
|
{
|
||||||
PAGESETUPDLG pd;
|
PAGESETUPDLG pd;
|
||||||
bool isOK = _createPagesetupdlgFromPrinterSettings(pd, document.printerSettings);
|
bool isOK = _createPagesetupdlgFromPrinterSettings(pd, document.printerSettings);
|
||||||
|
@ -2287,7 +2287,7 @@ class PrintPreviewDialog : Form
|
||||||
{
|
{
|
||||||
assert(doc);
|
assert(doc);
|
||||||
}
|
}
|
||||||
body
|
do
|
||||||
{
|
{
|
||||||
this.text = "Print Preview";
|
this.text = "Print Preview";
|
||||||
|
|
||||||
|
@ -2519,7 +2519,7 @@ class PrintPreviewDialog : Form
|
||||||
assert(doc);
|
assert(doc);
|
||||||
assert(_previewControl);
|
assert(_previewControl);
|
||||||
}
|
}
|
||||||
body
|
do
|
||||||
{
|
{
|
||||||
_previewControl.document = doc;
|
_previewControl.document = doc;
|
||||||
}
|
}
|
||||||
|
@ -2529,7 +2529,7 @@ class PrintPreviewDialog : Form
|
||||||
{
|
{
|
||||||
assert(_previewControl);
|
assert(_previewControl);
|
||||||
}
|
}
|
||||||
body
|
do
|
||||||
{
|
{
|
||||||
return _previewControl.document;
|
return _previewControl.document;
|
||||||
}
|
}
|
||||||
|
@ -2605,7 +2605,7 @@ class PreviewPrintController : PrintController
|
||||||
{
|
{
|
||||||
assert(previewControl);
|
assert(previewControl);
|
||||||
}
|
}
|
||||||
body
|
do
|
||||||
{
|
{
|
||||||
_previewControl = previewControl;
|
_previewControl = previewControl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue