sets.go 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Copyright 2014 Richard Lehane. All rights reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package msoleps
  15. import "github.com/richardlehane/msoleps/types"
  16. func addDefaults(m map[uint32]string) map[uint32]string {
  17. m[0x00000000] = "Dictionary"
  18. m[0x00000001] = "CodePage"
  19. m[0x80000000] = "Locale"
  20. m[0x80000003] = "Behaviour"
  21. return m
  22. }
  23. var propertySets map[types.Guid]map[uint32]string = map[types.Guid]map[uint32]string{
  24. types.MustGuidFromString("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"): map[uint32]string{
  25. 0x00000002: "Category",
  26. 0x00000003: "Presentation Format",
  27. 0x00000004: "Byte count",
  28. 0x00000005: "Line count",
  29. 0x00000006: "Paragraph count",
  30. 0x00000007: "Slide count",
  31. 0x00000008: "Note count",
  32. 0x00000009: "Hidden slides content",
  33. 0x0000000A: "Multimedia clips count",
  34. 0x0000000B: "Scale",
  35. 0x0000000C: "Heading pair",
  36. 0x0000000D: "Document parts",
  37. 0x0000000E: "Manager",
  38. 0x0000000F: "Company",
  39. 0x00000010: "Dirty links",
  40. 0x00000011: "Character count",
  41. 0x00000013: "Shared document",
  42. 0x00000014: "Link base",
  43. 0x00000015: "Hyperlinks",
  44. 0x00000016: "Hyperlinks changed",
  45. 0x00000017: "Version",
  46. 0x00000018: "Digital Signature",
  47. 0x0000001A: "Content type",
  48. 0x0000001B: "Content status",
  49. 0x0000001C: "Language",
  50. 0x0000001D: "Document Version",
  51. },
  52. types.MustGuidFromString("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"): map[uint32]string{
  53. 0x00000002: "Title",
  54. 0x00000003: "Subject",
  55. 0x00000004: "Author",
  56. 0x00000005: "Keywords",
  57. 0x00000006: "Comments",
  58. 0x00000007: "Template",
  59. 0x00000008: "LastAuthor",
  60. 0x00000009: "RevNumber",
  61. 0x0000000A: "EditTime",
  62. 0x0000000B: "LastPrinted",
  63. 0x0000000C: "CreateTime",
  64. 0x0000000D: "LastSaveTime",
  65. 0x0000000E: "PageCount",
  66. 0x0000000F: "WordCount",
  67. 0x00000010: "CharCount",
  68. 0x00000011: "Thumbnail",
  69. 0x00000012: "AppName",
  70. 0x00000013: "DocSecurity",
  71. },
  72. }