Kaydet (Commit) cd2c076f authored tarafından Miklos Vajna's avatar Miklos Vajna

EPUB export UI: show remaining metadata from the doc model

Title is not special in any way, showing author/language/date has the
same benefits.

Change-Id: Ie05071b88d7fa53ad0e39927904ea5e122a66c9a
Reviewed-on: https://gerrit.libreoffice.org/48183Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst e725836e
......@@ -32,8 +32,10 @@ $(eval $(call gb_Library_use_libraries,wpftwriter,\
comphelper \
cppu \
cppuhelper \
i18nlangtag \
vcl \
sal \
sax \
sfx \
sot \
svt \
......
......@@ -16,6 +16,7 @@
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <comphelper/sequenceashashmap.hxx>
#include <sfx2/opengrf.hxx>
#include <sax/tools/converter.hxx>
#include "EPUBExportFilter.hxx"
......@@ -136,8 +137,24 @@ EPUBExportDialog::EPUBExportDialog(vcl::Window *pParent, comphelper::SequenceAsH
m_pTitle->SetText(xDP->getTitle());
get(m_pInitialCreator, "author");
if (xDP.is())
m_pInitialCreator->SetText(xDP->getAuthor());
get(m_pLanguage, "language");
if (xDP.is())
{
OUString aLanguage(LanguageTag::convertToBcp47(xDP->getLanguage(), false));
m_pLanguage->SetText(aLanguage);
}
get(m_pDate, "date");
if (xDP.is())
{
OUStringBuffer aBuffer;
util::DateTime aDate(xDP->getModificationDate());
sax::Converter::convertDateTime(aBuffer, aDate, nullptr, true);
m_pDate->SetText(aBuffer.makeStringAndClear());
}
get(m_pOKButton, "ok");
m_pOKButton->SetClickHdl(LINK(this, EPUBExportDialog, OKClickHdl));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment