diff options
-rw-r--r-- | editeng/source/items/flditem.cxx | 4 | ||||
-rw-r--r-- | editeng/source/uno/unofield.cxx | 10 | ||||
-rw-r--r-- | include/editeng/flditem.hxx | 2 | ||||
-rw-r--r-- | offapi/com/sun/star/text/textfield/Type.idl | 8 |
4 files changed, 12 insertions, 12 deletions
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx index 8a643fa335f2..72c74520bdd7 100644 --- a/editeng/source/items/flditem.cxx +++ b/editeng/source/items/flditem.cxx @@ -117,8 +117,6 @@ SvxFieldData* SvxFieldData::Create(const uno::Reference<text::XTextContent>& xTe return new SvxPageField(); case text::textfield::Type::PAGES: return new SvxPagesField(); - case text::textfield::Type::PAGE_TITLE: - return new SvxPageTitleField(); case text::textfield::Type::DOCINFO_TITLE: return new SvxFileField(); case text::textfield::Type::TABLE: @@ -210,6 +208,8 @@ SvxFieldData* SvxFieldData::Create(const uno::Reference<text::XTextContent>& xTe return new SvxFooterField(); case text::textfield::Type::PRESENTATION_DATE_TIME: return new SvxDateTimeField(); + case text::textfield::Type::PRESENTATION_PAGE_TITLE: + return new SvxPageTitleField(); default: ; }; diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx index 21b0ef5417f6..a52fb11d9cc3 100644 --- a/editeng/source/uno/unofield.cxx +++ b/editeng/source/uno/unofield.cxx @@ -508,7 +508,7 @@ SvxFieldData* SvxUnoTextField::CreateFieldData() const throw() case text::textfield::Type::PRESENTATION_DATE_TIME: pData = new SvxDateTimeField(); break; - case text::textfield::Type::PAGE_TITLE: + case text::textfield::Type::PRESENTATION_PAGE_TITLE: pData = new SvxPageTitleField(); break; }; @@ -613,7 +613,7 @@ 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: + case text::textfield::Type::PRESENTATION_PAGE_TITLE: return OUString("PageTitle"); default: return OUString("Unknown"); @@ -862,9 +862,9 @@ 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"; + case text::textfield::Type::PRESENTATION_PAGE_TITLE: + pServices[2] = "com.sun.star.presentation.TextField.PageTitle"; + pServices[3] = "com.sun.star.presentation.textfield.PageTitle"; break; default: aSeq.realloc(0); diff --git a/include/editeng/flditem.hxx b/include/editeng/flditem.hxx index 13f7773ed7ed..5ad726bcb3fb 100644 --- a/include/editeng/flditem.hxx +++ b/include/editeng/flditem.hxx @@ -194,7 +194,7 @@ public: class EDITENG_DLLPUBLIC SvxPageTitleField : public SvxFieldData { public: - SV_DECL_PERSIST1( SvxPageTitleField, SvxFieldData, com::sun::star::text::textfield::Type::PAGE_TITLE ) + SV_DECL_PERSIST1( SvxPageTitleField, SvxFieldData, com::sun::star::text::textfield::Type::PRESENTATION_PAGE_TITLE ) SvxPageTitleField(); virtual SvxFieldData* Clone() const SAL_OVERRIDE; diff --git a/offapi/com/sun/star/text/textfield/Type.idl b/offapi/com/sun/star/text/textfield/Type.idl index 42fcb8bfd3ab..48d4215dea1c 100644 --- a/offapi/com/sun/star/text/textfield/Type.idl +++ b/offapi/com/sun/star/text/textfield/Type.idl @@ -39,10 +39,10 @@ constants Type const long DOCINFO_TITLE = 10; - const long PRESENTATION_HEADER = 11; - const long PRESENTATION_FOOTER = 12; - const long PRESENTATION_DATE_TIME = 13; - const long PAGE_TITLE = 14; + const long PRESENTATION_HEADER = 11; + const long PRESENTATION_FOOTER = 12; + const long PRESENTATION_DATE_TIME = 13; + const long PRESENTATION_PAGE_TITLE = 14; }; }; }; }; }; }; |