CGLetter.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # This file is part of the LibreOffice project.
  3. #
  4. # This Source Code Form is subject to the terms of the Mozilla Public
  5. # License, v. 2.0. If a copy of the MPL was not distributed with this
  6. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. #
  8. # This file incorporates work covered by the following license notice:
  9. #
  10. # Licensed to the Apache Software Foundation (ASF) under one or more
  11. # contributor license agreements. See the NOTICE file distributed
  12. # with this work for additional information regarding copyright
  13. # ownership. The ASF licenses this file to you under the Apache
  14. # License, Version 2.0 (the "License"); you may not use this file
  15. # except in compliance with the License. You may obtain a copy of
  16. # the License at http://www.apache.org/licenses/LICENSE-2.0 .
  17. #
  18. from .CGPaperElementLocation import CGPaperElementLocation
  19. from ..common.ConfigGroup import ConfigGroup
  20. class CGLetter(ConfigGroup):
  21. def __init__(self):
  22. self.cp_Style = int()
  23. self.cp_BusinessPaper = bool()
  24. self.cp_CompanyLogo = CGPaperElementLocation()
  25. self.cp_CompanyAddress = CGPaperElementLocation()
  26. self.cp_PaperCompanyAddressReceiverField = bool()
  27. self.cp_PaperFooter = bool()
  28. self.cp_PaperFooterHeight = float()
  29. self.cp_PrintCompanyLogo = bool()
  30. self.cp_PrintCompanyAddressReceiverField = bool()
  31. self.cp_PrintLetterSigns = bool()
  32. self.cp_PrintSubjectLine = bool()
  33. self.cp_PrintSalutation = bool()
  34. self.cp_PrintBendMarks = bool()
  35. self.cp_PrintGreeting = bool()
  36. self.cp_PrintFooter = bool()
  37. self.cp_Salutation = str()
  38. self.cp_Greeting = str()
  39. self.cp_SenderAddressType = int()
  40. self.cp_SenderCompanyName = str()
  41. self.cp_SenderStreet = str()
  42. self.cp_SenderPostCode = str()
  43. self.cp_SenderState = str()
  44. self.cp_SenderCity = str()
  45. self.cp_ReceiverAddressType = int()
  46. self.cp_Footer = str()
  47. self.cp_FooterOnlySecondPage = bool()
  48. self.cp_FooterPageNumbers = bool()
  49. self.cp_CreationType = int()
  50. self.cp_TemplateName = str()
  51. self.cp_TemplatePath = str()