Eric Mellino
c28c8a5a58
Move Unix Printing types into regular folder structure.
...
Commit migrated from https://github.com/dotnet/corefx/commit/04efcad64f3731801eeabe10661c430ae51aa42a
2017-09-11 15:38:05 -07:00
Eric Mellino
13815ba9a5
Allow libcups to be absent.
...
Commit migrated from https://github.com/dotnet/corefx/commit/359cf6ed31bea58fa5a68841a63f8356b02ce3cc
2017-09-11 14:32:19 -07:00
Eric Mellino
19881df8d9
Use manually-loaded libcups functions.
...
Commit migrated from https://github.com/dotnet/corefx/commit/ea29f0ad53cd14bd2463db7b1a5d365d31393bb9
2017-09-11 14:29:32 -07:00
Eric Mellino
6bdb31de64
Move FunctionWrapper into Common folder.
...
Commit migrated from https://github.com/dotnet/corefx/commit/50bafd080289e6ef67cdc77bb19020849eb27b7f
2017-09-11 13:49:59 -07:00
Eric Mellino
ce3ecd6252
Disable failing PrinterSettings test on Unix.
...
Commit migrated from https://github.com/dotnet/corefx/commit/f88f21cd4ba71daca48be7325f7b239d11497a39
2017-09-11 12:21:27 -07:00
Eric Mellino
25401ee54c
Correct issues in System.Drawing.Printing tests.
...
* The condition for these test cases was wrong. They were disabled if any
printer was installed, rather than when no printers are installed.
* Some assertions were faulty -- I've fixed them based on observed
behavior on Windows.
Commit migrated from https://github.com/dotnet/corefx/commit/7cc3b0c323b55bbed940040bccb2350508b34b74
2017-09-11 12:16:29 -07:00
Eric Mellino
52bc0c01e1
Simplify Unix implementation for System.Drawing.Printing types.
...
* Previously, PrintingServices had an implementation which was hidden
behind a layer of indirection, one for Windows and one for Unix.
Realistically, the types involved with this were purely static, and the
indirection was never useful at runtime. By that, I mean that the
implementation was known at build time -- it is either Windows or Unix.
* I've removed the layer of indirection and deleted all of mono's
Win32-specific code from the System.Drawing.Printing namespace. Win32
builds should just use our code from the .NET Framework.
Commit migrated from https://github.com/dotnet/corefx/commit/0e7c45064aa8da181fa60ee601e7b56b6999a07a
2017-09-11 11:30:36 -07:00
Eric Mellino
73718b5e66
Merge pull request dotnet/corefx#23753 from mellinoe/system.drawing-cleanup-misc
...
Delete Unix-specific ColorTranslator, KnownColor, SystemColors
Commit migrated from https://github.com/dotnet/corefx/commit/49e7212e2ee18bbe9c6138bbb4d0fe17b641967e
2017-09-11 10:54:08 -07:00
Frederik Carlier
189706a8e7
System.Drawing: Consolidate the FontFamily class ( dotnet/corefx#23194 )
...
* Use the Windows FontFamily implementation on both Windows and Unix
* Use the name when comparing two font families.
* Fix SystemFont_Get_ReturnsExpected
Commit migrated from https://github.com/dotnet/corefx/commit/c31564c6153f1b2d377839590a9ac93740e4dad5
2017-09-07 01:58:16 -05:00
Eric Mellino
ce07d19648
Disable all Graphics.CopyFromScreen tests -- they are unstable. ( dotnet/corefx#23761 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/b9d22c687f4d0282509bb127dcf41fb3cb778932
2017-09-01 16:18:04 -07:00
Eric Mellino
bd82c3e8ed
Re-enable SystemFonts test on Linux.
...
Commit migrated from https://github.com/dotnet/corefx/commit/73a24420e37ef6e1f1bc66992721d5f0146d862b
2017-09-01 13:01:06 -07:00
Eric Mellino
33746fdd2a
Re-enable all ColorTranslatorTests on Unix.
...
Commit migrated from https://github.com/dotnet/corefx/commit/ece9a4981968db21c3beffd572cdb42af9f82c90
2017-09-01 12:50:38 -07:00
Eric Mellino
e65435702b
Delete Unix-specific ColorTranslator.cs, KnownColors.cs, SystemColors.cs
...
Commit migrated from https://github.com/dotnet/corefx/commit/37f05cc90890253f87371b47f1d3cfdc2a3dd456
2017-09-01 12:50:37 -07:00
Eric Mellino
d351be165e
Respond to PR feedback.
...
Commit migrated from https://github.com/dotnet/corefx/commit/99d2e2d2444eabd2ddca52906d2527a7bb7028c3
2017-09-01 11:55:13 -07:00
Eric Mellino
5de2de1ad4
Throw several more exceptions for compat in Icon.Unix.cs. Re-enable tests.
...
Commit migrated from https://github.com/dotnet/corefx/commit/6420325e176d3bfe026afab018d3674567fd7682
2017-09-01 11:03:35 -07:00
Eric Mellino
acd1374bce
Throw ArgumentNullException in Icon.ExtractAssociatedIcon.
...
Commit migrated from https://github.com/dotnet/corefx/commit/4a1d546b01f4fbfb1bf263246c1ac0348b96068a
2017-08-31 17:05:07 -07:00
Eric Mellino
7c4880e10a
Throw ObjectDisposedException in Icon.Handle.
...
Commit migrated from https://github.com/dotnet/corefx/commit/fb9ac9bf8cbd98385276c533b946a8f23433b122
2017-08-31 16:59:15 -07:00
Eric Mellino
bdf1e9fadb
Throw ArgumentException instead of FileNotFoundException in Icon resource constructor.
...
Commit migrated from https://github.com/dotnet/corefx/commit/1e1eaebe86033ad7817e8845a063a251e2da5666
2017-08-31 16:54:18 -07:00
Eric Mellino
87484c287c
Throw correct ArgumentNullException in Icon ctor. Re-enable test.
...
Commit migrated from https://github.com/dotnet/corefx/commit/93065cde1aa816118022bb0ea54221576e1334eb
2017-08-31 16:47:31 -07:00
Eric Mellino
78a5b52395
Throw correct exception type in Icon ctor for null stream.
...
Commit migrated from https://github.com/dotnet/corefx/commit/d378b8e3aea3294f89268ffc75ddfdaa5252d099
2017-08-31 16:41:58 -07:00
Eric Mellino
52fea7fb9f
Clean up dead code in Icon.Unix.cs
...
Commit migrated from https://github.com/dotnet/corefx/commit/5ebd90ca2cb833b84ae7d5cb22998061b7eab8cc
2017-08-31 15:53:19 -07:00
Eric Mellino
f03a598ea9
Move Unix Icon into regular folder structure.
...
Also, remove its ISerializable implementation, as required.
Commit migrated from https://github.com/dotnet/corefx/commit/21173b47621d5519f45a0a1546bcb38f4feb33c1
2017-08-31 15:35:45 -07:00
Brian Chavez
232a1dfac0
Grammar check - "a [a,e]" rule. ( dotnet/corefx#23697 )
...
* Grammar check - "a [a,e]" rule.
* Corrected "a attributes" to "an attribute"
Commit migrated from https://github.com/dotnet/corefx/commit/be75987c628347e1d44bba15c5272ade3dcfa65c
2017-08-31 09:29:39 -04:00
Eric Mellino
6551179430
Re-enable some StringFormatTests on Unix. Fix exception behavior in StringFormat.
...
Commit migrated from https://github.com/dotnet/corefx/commit/ad1d00a3f956f878466697966ad368bcef2236fb
2017-08-30 16:57:21 -07:00
Eric Mellino
747f917b10
Unify implementations of StringFormat.
...
Commit migrated from https://github.com/dotnet/corefx/commit/15471d4110665a0bb971008c533884e1e57e609f
2017-08-30 16:57:20 -07:00
Eric Mellino
8490c922c8
Unify implementations of SystemFonts as much as possible. ( dotnet/corefx#23668 )
...
* Unify implementations of SystemFonts as much as possible.
* Add more basic tests for SystemFonts static property accessors.
* Mark a SystemFonts test as PlatformSpecific.
* Disable new SystemFonts test on Linux until fonts are installed on CI machines.
Commit migrated from https://github.com/dotnet/corefx/commit/0b16938f178f4cb509b7cdd0737037439b8b7d8c
2017-08-30 16:51:38 -07:00
Eric StJohn
93a519b14b
Merge pull request dotnet/corefx#23611 from ericstj/removeNetFxSupportLibs
...
Remove NetFx support libs
Commit migrated from https://github.com/dotnet/corefx/commit/70201d1f97465882eda716c66da09d22c3933edc
2017-08-30 11:24:25 -07:00
Frederik Carlier
da6b1b6867
System.Drawing: Consolidate Clip-related code in Graphics ( dotnet/corefx#23577 )
...
* Consolidate Clip-related code
- Move common Clip-related code from Graphics.Unix and Graphics.Windows to Graphics
- Move P/Invoke methods to GdiplusNative
* PR feedback
* Fix whitespace
Commit migrated from https://github.com/dotnet/corefx/commit/950f8f9e1180c03c729521d61cceead375d5cb1a
2017-08-30 10:41:08 -07:00
Eric Mellino
c3407ae2c1
Merge pull request dotnet/corefx#23562 from mellinoe/system.drawing.remove-printing-assertions
...
Remove some assertions from AssertDefaultPageSettings in PrintDocumentTests.cs.
Commit migrated from https://github.com/dotnet/corefx/commit/0cb0b14fd9b49baf4eb2d4c53d287473fbaa8784
2017-08-30 10:39:34 -07:00
Brian Chavez
88875187b0
XML doc spelling corrections - D through H. 🚿 ( dotnet/corefx#23638 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/a27929935d2782cdc3e7be21653e8c4530274c6f
2017-08-29 17:10:01 -07:00
Eric Mellino
10da1fa0f0
Disable CopyFromScreen test which intermittently fails. ( dotnet/corefx#23663 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/67e755a1e8d16d0e5a2f5919c71e531fbf708188
2017-08-29 17:08:08 -07:00
Eric Mellino
1dbf1987e2
Merge pull request dotnet/corefx#23632 from safern/disable-drawing
...
Disable System.Drawing.Tests flaky test failing in CI
Commit migrated from https://github.com/dotnet/corefx/commit/a3a6a73284d93cd5e348d8a1016956b5e9bfaaae
2017-08-29 15:59:10 -07:00
Brian Chavez
f866987b74
XML doc spelling corrections - I through P. 🚿 ( dotnet/corefx#23651 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/b09fab5799bb1ca4bea4b4bb086d2c9870dd5191
2017-08-29 15:42:23 -07:00
Brian Chavez
caeee5a506
XML doc spelling corrections - Q through Z. ( dotnet/corefx#23655 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/723c7feed515abbeece068e05fdf2f918a74ca85
2017-08-29 15:40:48 -07:00
Eric Mellino
45982697cc
Remove all code related to system events tracking.
...
Commit migrated from https://github.com/dotnet/corefx/commit/a18848ae5b843b4bd862aac22daca45ea4f97a4f
2017-08-29 11:51:52 -07:00
Eric Mellino
3b3ccfd783
Remove PageSettings assertions which are system-dependent.
...
* The PrintableArea of a PageSettings is not always the same as its
Bounds. Relatedly, PrintableArea.Location is not always (0, 0).
* PageSettings.Color does not always default to true.
* HardMarginX and HardMarginY are not always 0.
Commit migrated from https://github.com/dotnet/corefx/commit/bedcd53ba4aa19eb1076d906f2cb660b2ce567de
2017-08-29 11:33:32 -07:00
Eric Mellino
cee3d71e72
Merge pull request dotnet/corefx#23636 from qmfrederik/drawing/brushes-only
...
System.Drawing: Consolidate the Brushes class
Commit migrated from https://github.com/dotnet/corefx/commit/3907bcdf50cae39c4f1974371fd58fcb53916312
2017-08-29 10:19:57 -07:00
Eric Mellino
453ee66d0c
Merge pull request dotnet/corefx#23617 from JonHanna/allow_a4
...
Allow A4 as a default paper size in PrintDocument Tests.
Commit migrated from https://github.com/dotnet/corefx/commit/066700be288418bf7a924477b62b4deb40bad795
2017-08-29 10:10:36 -07:00
Eric St. John
b2dae07f2b
Update VS configurations
...
Commit migrated from https://github.com/dotnet/corefx/commit/238bf3302817a910fac3968f4ac826424294ab0c
2017-08-29 08:49:24 -07:00
Frederik Carlier
7edbbdf8c2
Use Windows Brushes on both Windows and Unix
...
Commit migrated from https://github.com/dotnet/corefx/commit/1a0b68d242b73a1c6751a65b9909fbea1d97780c
2017-08-29 10:48:34 +02:00
Brian Chavez
ba2326f831
XML doc spelling corrections - A through C. ( dotnet/corefx#23634 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/afcbd9a5b9e4ecde2db3a69afd093631f1db91c5
2017-08-28 23:42:20 -07:00
Santiago Fernandez
1162a1844f
Disable System.Drawing.Tests flaky test failing in CI
...
Commit migrated from https://github.com/dotnet/corefx/commit/4647e09ce51a2f9fca470491511a3ebe81d90bb6
2017-08-28 20:19:37 -07:00
Frederik Carlier
0a0e664d7c
System.Drawing: Consolidate the Matrix and Region classes ( dotnet/corefx#23189 )
...
* Consolidate the Matrix and Region classes
* Remove duplicate declarations
* Status enum is not available on Windows
* Fix platform detection
* Disable return code validation on Windows
* Use compile-time checks to account for Windows & Unix differences.
* Fixup after rebase
* Fixup after rebase
* Fixup after rebase
* Fixup after rebase
* Fixup after rebase
Commit migrated from https://github.com/dotnet/corefx/commit/2c3ab172cb9b7548338a96fa073b8b066248145a
2017-08-28 15:51:19 -07:00
Jon Hanna
c865c0e3ab
Allow A4 as a default paper size in PrintDocument Tests.
...
A common setting for the default size for the default printer.
Fixes dotnet/corefx#23616
Commit migrated from https://github.com/dotnet/corefx/commit/f5104d4dee298f00940f41e3901a024b663db4ee
2017-08-28 21:12:06 +01:00
Eric Mellino
a9e8a3fd5a
Merge pull request dotnet/corefx#23195 from qmfrederik/drawing/graphics
...
System.Drawing: Start consolidating the Graphics class
Commit migrated from https://github.com/dotnet/corefx/commit/ed9c3817dd6c9a87e856c160ccaf03636a69948b
2017-08-25 14:13:45 -07:00
Frederik Carlier
7f9aa28f3e
System.Drawing: Consolidate CopyPixelOperation and PrivateFontCollection classes ( dotnet/corefx#23191 )
...
* Consolidate CopyPixelOperation.cs
* Consolidate PrivateFontCollection class
* Don't call AddFontFile on non-Windows operating systems
* Validate the full file name
* Fix argument validation
* PR feedback - Decide between the Unix and Windows implementations at compile time
Commit migrated from https://github.com/dotnet/corefx/commit/70c21c9ca8411c5a6b86db564e2a5d2604cb8380
2017-08-25 14:12:43 -07:00
Frederik Carlier
e3fe74d20e
Use Strings.resx
...
Commit migrated from https://github.com/dotnet/corefx/commit/e4a1cb5640d6913d4c2cf4b3c6545bfcfa432964
2017-08-25 21:35:18 +02:00
Frederik Carlier
598e51182e
Relax parameter validation
...
Commit migrated from https://github.com/dotnet/corefx/commit/6b88dab6e823f1ed7ab262babbbe622b74d69e7c
2017-08-25 21:28:21 +02:00
Frederik Carlier
4a48f3aa4d
Workaround a libgdiplus bug in GdipGetLinePresetBlend
...
Commit migrated from https://github.com/dotnet/corefx/commit/b65ccc9813c966e4b4f120cd9ab9f2350ed95b04
2017-08-25 21:28:21 +02:00
Frederik Carlier
edc3ea4d57
Validate arguments in managed code, because libgdiplus does not correctly validate them.
...
Commit migrated from https://github.com/dotnet/corefx/commit/4e6e7bc5b27dce9b314fa0f0c0041725c1655194
2017-08-25 21:28:21 +02:00