Commit Graph
23 Commits
Author SHA1 Message Date
Marcos Henrich 9d781928b2 Added argument validations to ComparePackUri an ComparePartUri. 2014-08-07 09:10:53 +01:00
Marcos Henrich d3d078eb51 Changed Check.PartUriIsValid to throw ArgumentException. 2014-08-07 09:09:22 +01:00
Daniel Reiter Horn ceb092eae7 Fixes https://github.com/OfficeDev/Open-XML-SDK/issues/6 by formatting core.xml date according to W3CDTF
This change in released under the MIT license.
2014-07-09 09:24:36 -04:00
Daniel Reiter Horn 722e83c7a1 Fixes https://github.com/OfficeDev/Open-XML-SDK/issues/7 by allowing both relative and absolute urls
This change in released under the MIT license.
2014-07-09 00:15:05 -07:00
Mark Probst 0a695738d8 Fix the build. 2013-09-20 09:34:44 -07:00
mayerwin 5a25913631 Fix: bug https://bugzilla.xamarin.com/show_bug.cgi?id=14811 (to be reviewed) 2013-09-18 01:14:04 +08:00
Pablo Ruiz Garcia a0395f9c77 [System.IO.Packaging] Fix incorrect conversion of relative uris to absolute uris
Fixed loading of PackagePart relationships to avoid (incorrect) conversion of
relative target uris into absolute. (fixes xamarin bug #6602)
2012-12-16 16:23:27 +00:00
Pablo Ruiz Garcia fe99400095 Fix implementation of System.IO.Packaging::GetRelativeUri(Uri,Uri) [fixes xamarin's bug #2727]. 2012-10-13 01:23:47 +02:00
Marek Safar 21d709b3ff Fix wrong WindowsBase method signatures 2012-03-27 12:06:34 +01:00
Alan McGovern e49f4636a9 [WindowsBase] Add better support for Default/Override content_types
System.IO.Packaging already had full support for parsing [Content_Types].xml
if it contained both <Override> and <Default> nodes when specifying content
types for files. However we had taken a shortcut before by explicitly writing
the content type of each file using an <Override> attribute for every file. We
now properly write a <Default> element and only use <Override> attributes when
required.
2011-10-18 11:43:58 +01:00
Alan McGovern 5736b87f2f [System.IO.Packaging] Fix some dispose related issues
Ensure we can call dispose multiple times without blowing up. Also
ensure that we do not close streams which are passed in by the user.
We should only close streams which are implicitly created by the API.
This is a modification of the patch proposed for bug #1464, which is
now fixed by this commit.
2011-10-18 00:45:38 +01:00
Jérémie Laval e42fb4ccaf [WindowsBase] Don't treat special file [Content-Types].xml as a part, ends up as a duplicate when writing back a package 2011-10-11 16:14:50 +02:00
Rolf Bjarne Kvinge 1d149efc1c [WindowsBase] Relationship ids must be valid XML identifiers. 2011-10-07 09:38:31 +02:00
Alan McGovern 0aa2a239ed 2010-02-19 Alan McGovern <[email protected]>
* System.IO.Packaging/PackUriHelper.cs: Commit a fix for #570648
        that PackUris can be combined properly.


svn path=/trunk/mcs/; revision=152072
2010-02-19 13:48:31 +00:00
Miguel de Icaza 5e52dab0a6 Put WindowsBase on mcs/class for System.IO.Packaging
svn path=/trunk/mcs/; revision=141398
2009-09-06 23:19:06 +00:00
Miguel de Icaza fd4cade468 move back to olive
svn path=/trunk/mcs/; revision=118141
2008-11-06 19:14:34 +00:00
Alan McGovern dafcf5fd0c * WindowsBase/System.IO.Packaging/Package.cs:
* WindowsBase/System.IO.Packaging/ZipPackage.cs:
* WindowsBase/System.IO.Packaging/PackagePropertiesPart.cs: Remove
  horrible hacks to load PackageProperties, PackageRelationships and
  PackageParts from a read-only stream. Other benefit is that these are
  now lazily loaded.

svn path=/trunk/mcs/; revision=118129
2008-11-06 18:15:02 +00:00
Alan McGovern 30ad4ba80c * WindowsBase/Test/System.IO.Packaging/PackagePartTest.cs:
* WindowsBase/System.IO.Packaging/PackagePropertiesPart.cs: Properties
  which are null should not be serialized.

svn path=/trunk/mcs/; revision=117893
2008-11-04 16:19:26 +00:00
Alan McGovern 831c7c8695 * WindowsBase/WindowsBase.dll.sources:
* WindowsBase/System.IO.Packaging/Package.cs:
* WindowsBase/System.IO.Packaging/ZipPackage.cs:
* WindowsBase/System.IO.Packaging/PackUriHelper.cs:
* WindowsBase/Test/System.IO.Packaging/FakePackage.cs:
* WindowsBase/System.IO.Packaging/PackageProperties.cs:
* WindowsBase/System.IO.Packaging/PackagePropertiesPart.cs: Complete the
  implementation of loading/saving PackageProperties. NUnit tests now
  pass.

svn path=/trunk/mcs/; revision=117891
2008-11-04 16:09:28 +00:00
Alan McGovern 8257b5a967 * WindowsBase/System.IO.Packaging/PackagePropertiesPart.cs: No need to
override here.

* WindowsBase/System.IO.Packaging/PackageProperties.cs: Add myself to
  authors

svn path=/trunk/mcs/; revision=117878
2008-11-04 13:47:57 +00:00
Alan McGovern 0af7e5f3e6 * WindowsBase/System.IO.Packaging/PackageProperties.cs:
* WindowsBase/Test/System.IO.Packaging/PackagePartTest.cs:
* WindowsBase/System.IO.Packaging/PackagePropertiesPart.cs:
* WindowsBase/Test/System.IO.Packaging/FakePackageTests.cs: Implement
  the backend for loading/saving package properties. Add tests for this
  code.

svn path=/trunk/mcs/; revision=117876
2008-11-04 13:42:15 +00:00
Alan McGovern becea4d665 * WindowsBase/System.IO.Packaging/Package.cs: Cosmetic - Make methods
alphabetical and group methods/properties together.

svn path=/trunk/mcs/; revision=117863
2008-11-04 10:57:48 +00:00
Alan McGovern d72e4c702f Moving WindowsBase into the mcs tree
svn path=/trunk/mcs/; revision=117800
2008-11-03 19:30:08 +00:00