summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSarper Akdemir <sarper.akdemir.extern@allotropia.de>2023-08-19 17:18:50 +0300
committerSarper Akdemir <sarper.akdemir.extern@allotropia.de>2023-09-04 20:54:19 +0200
commit0deea02b1da1001fa497dc5afa5e43207af491d5 (patch)
treef977c1bb9e559a8a44c27173d2488f3eb4305f18 /include
parenta45f72b8122d3bb4c0d5ac4252cf7e5a25d52291 (diff)
tdf#138792: PDF export: add batch of dublin core attributes
Adds support for exporting, editing in the UI and storage in ODF for the dublin core attributes listed below. Contributor (http://purl.org/dc/elements/1.1/contributor) Coverage (http://purl.org/dc/elements/1.1/coverage) Identifier (http://purl.org/dc/elements/1.1/identifier) Publisher (http://purl.org/dc/elements/1.1/publisher) Relation (http://purl.org/dc/elements/1.1/relation) Rights (http://purl.org/dc/elements/1.1/rights) Source (http://purl.org/dc/elements/1.1/source) Type (http://purl.org/dc/elements/1.1/type) Introduces XDocumentProperties2 to extend XDocumentProperties interface. Change-Id: Ie2e0b1fbbbd00b66aef477ba1bf4e4f61c03a3b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156330 Tested-by: Jenkins Reviewed-by: Sarper Akdemir <sarper.akdemir.extern@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/dinfdlg.hxx32
-rw-r--r--include/svl/memberid.h14
-rw-r--r--include/vcl/pdfwriter.hxx8
-rw-r--r--include/xmloff/xmltoken.hxx4
4 files changed, 55 insertions, 3 deletions
diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx
index 2acbc93cffe9..874e127f20b5 100644
--- a/include/sfx2/dinfdlg.hxx
+++ b/include/sfx2/dinfdlg.hxx
@@ -72,6 +72,14 @@ private:
sal_Int32 m_EditingDuration;
OUString m_Description;
OUString m_Keywords;
+ OUString m_Contributor;
+ OUString m_Coverage;
+ OUString m_Identifier;
+ OUString m_Publisher;
+ OUString m_Relation;
+ OUString m_Rights;
+ OUString m_Source;
+ OUString m_Type;
OUString m_Subject;
OUString m_Title;
bool m_bHasTemplate;
@@ -120,6 +128,22 @@ public:
void setDescription(const OUString& i_val) { m_Description = i_val; }
const OUString& getKeywords() const { return m_Keywords; }
void setKeywords(const OUString& i_val) { m_Keywords = i_val; }
+ const OUString& getContributor() const { return m_Contributor; }
+ void setContributor(const OUString& i_val) { m_Contributor = i_val; }
+ const OUString& getCoverage() const { return m_Coverage; }
+ void setCoverage(const OUString& i_val) { m_Coverage = i_val; }
+ const OUString& getIdentifier() const { return m_Identifier; }
+ void setIdentifier(const OUString& i_val) { m_Identifier = i_val; }
+ const OUString& getPublisher() const { return m_Publisher; }
+ void setPublisher(const OUString& i_val) { m_Publisher = i_val; }
+ const OUString& getRelation() const { return m_Relation; }
+ void setRelation(const OUString& i_val) { m_Relation = i_val; }
+ const OUString& getRights() const { return m_Rights; }
+ void setRights(const OUString& i_val) { m_Rights = i_val; }
+ const OUString& getSource() const { return m_Source; }
+ void setSource(const OUString& i_val) { m_Source = i_val; }
+ const OUString& getType() const { return m_Type; }
+ void setType(const OUString& i_val) { m_Type = i_val; }
const OUString& getSubject() const { return m_Subject; }
void setSubject(const OUString& i_val) { m_Subject = i_val; }
const OUString& getTitle() const { return m_Title; }
@@ -217,6 +241,14 @@ private:
std::unique_ptr<weld::Entry> m_xTitleEd;
std::unique_ptr<weld::Entry> m_xThemaEd;
std::unique_ptr<weld::Entry> m_xKeywordsEd;
+ std::unique_ptr<weld::Entry> m_xContributorEd;
+ std::unique_ptr<weld::Entry> m_xCoverageEd;
+ std::unique_ptr<weld::Entry> m_xIdentifierEd;
+ std::unique_ptr<weld::Entry> m_xPublisherEd;
+ std::unique_ptr<weld::Entry> m_xRelationEd;
+ std::unique_ptr<weld::Entry> m_xRightsEd;
+ std::unique_ptr<weld::Entry> m_xSourceEd;
+ std::unique_ptr<weld::Entry> m_xTypeEd;
std::unique_ptr<weld::TextView> m_xCommentEd;
virtual bool FillItemSet( SfxItemSet* ) override;
diff --git a/include/svl/memberid.h b/include/svl/memberid.h
index afe106d41bbe..185389713814 100644
--- a/include/svl/memberid.h
+++ b/include/svl/memberid.h
@@ -74,11 +74,19 @@
#define MID_DOCINFO_USEUSERDATA 0x31
#define MID_DOCINFO_DELETEUSERDATA 0x32
#define MID_DOCINFO_USETHUMBNAILSAVE 0x33
+#define MID_DOCINFO_CONTRIBUTOR 0x34
+#define MID_DOCINFO_COVERAGE 0x35
+#define MID_DOCINFO_IDENTIFIER 0x38
+#define MID_DOCINFO_PUBLISHER 0x3a
+#define MID_DOCINFO_RELATION 0x3b
+#define MID_DOCINFO_RIGHTS 0x3c
+#define MID_DOCINFO_SOURCE 0x3d
+#define MID_DOCINFO_TYPE 0x3e
// only for FastPropertySet
-#define MID_TYPE 0x38
-#define MID_VALUE 0x39
-#define MID_VALUESET 0x40
+#define MID_TYPE 0x3f
+#define MID_VALUE 0x40
+#define MID_VALUESET 0x41
#endif
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx
index 2b62b26b6ef4..f9bbf608e319 100644
--- a/include/vcl/pdfwriter.hxx
+++ b/include/vcl/pdfwriter.hxx
@@ -560,6 +560,14 @@ The following structure describes the permissions used in PDF security
OUString Subject; // subject
OUString Keywords; // keywords
css::util::DateTime ModificationDate;
+ css::uno::Sequence<OUString> Contributor; // http://purl.org/dc/elements/1.1/contributor
+ OUString Coverage; // http://purl.org/dc/elements/1.1/coverage
+ OUString Identifier; // http://purl.org/dc/elements/1.1/identifier
+ css::uno::Sequence<OUString> Publisher; // http://purl.org/dc/elements/1.1/publisher
+ css::uno::Sequence<OUString> Relation; // http://purl.org/dc/elements/1.1/relation
+ OUString Rights; // http://purl.org/dc/elements/1.1/rights
+ OUString Source; // http://purl.org/dc/elements/1.1/source
+ OUString Type; // http://purl.org/dc/elements/1.1/type
OUString Creator; // application that created the original document
OUString Producer; // OpenOffice
};
diff --git a/include/xmloff/xmltoken.hxx b/include/xmloff/xmltoken.hxx
index 7771577a453d..ee0c6ec57d89 100644
--- a/include/xmloff/xmltoken.hxx
+++ b/include/xmloff/xmltoken.hxx
@@ -518,6 +518,7 @@ namespace xmloff::token {
XML_CONTOUR_PATH,
XML_CONTOUR_POLYGON,
XML_CONTRAST,
+ XML_CONTRIBUTOR,
XML_CONTROL,
XML_CONVERSION_MODE,
XML_CONVERSION_TYPE,
@@ -542,6 +543,7 @@ namespace xmloff::token {
XML_COUNTRY,
XML_COUNTRY_ASIAN,
XML_COUNTRY_COMPLEX,
+ XML_COVERAGE,
XML_COVERED_TABLE_CELL,
XML_CREATE_DATE,
XML_CREATE_DATE_STRING,
@@ -1623,6 +1625,7 @@ namespace xmloff::token {
XML_REL_HEIGHT_REL,
XML_REL_WIDTH,
XML_REL_WIDTH_REL,
+ XML_RELATION,
XML_RELATIVE,
XML_RELATIVE_TAB_STOP_POSITION,
XML_RELN,
@@ -1644,6 +1647,7 @@ namespace xmloff::token {
XML_RIGHT_TO_LEFT,
XML_RIGHTARC,
XML_RIGHTCIRCLE,
+ XML_RIGHTS,
XML_RING,
XML_ROLE,
XML_ROLL_FROM_BOTTOM,