[Libreoffice-commits] core.git: editeng/source
Katarina Behrens
Katarina.Behrens at cib.de
Fri Apr 17 04:40:49 PDT 2015
editeng/source/uno/unofield.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 3e56e3214073bb915c3a2ff4cb5429c63f18c459
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date: Fri Apr 17 11:06:44 2015 +0200
Related tdf#88056: prep UNO stuff for ODF export/import
Change-Id: I13c95b3e96db96634a3247154d28eddb3ae6c80d
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx
index 479e411..21b0ef5 100644
--- a/editeng/source/uno/unofield.cxx
+++ b/editeng/source/uno/unofield.cxx
@@ -508,6 +508,9 @@ SvxFieldData* SvxUnoTextField::CreateFieldData() const throw()
case text::textfield::Type::PRESENTATION_DATE_TIME:
pData = new SvxDateTimeField();
break;
+ case text::textfield::Type::PAGE_TITLE:
+ pData = new SvxPageTitleField();
+ break;
};
return pData;
@@ -610,6 +613,8 @@ OUString SAL_CALL SvxUnoTextField::getPresentation( sal_Bool bShowCommand )
return OUString("Footer");
case text::textfield::Type::PRESENTATION_DATE_TIME:
return OUString("DateTime");
+ case text::textfield::Type::PAGE_TITLE:
+ return OUString("PageTitle");
default:
return OUString("Unknown");
}
@@ -857,6 +862,10 @@ uno::Sequence< OUString > SAL_CALL SvxUnoTextField::getSupportedServiceNames()
pServices[2] = "com.sun.star.presentation.TextField.DateTime";
pServices[3] = "com.sun.star.presentation.textfield.DateTime";
break;
+ case text::textfield::Type::PAGE_TITLE:
+ pServices[2] = "com.sun.star.text.TextField.PageTitle";
+ pServices[3] = "com.sun.star.text.textfield.PageTitle";
+ break;
default:
aSeq.realloc(0);
}
More information about the Libreoffice-commits
mailing list