diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-04 17:23:04 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-05 11:10:17 -0400 |
commit | 194785f8b06182ba8caed8448fc61dd82a24dbcb (patch) | |
tree | a6bfd741c71e9540c1e1cb9fde7846f3e05f6fa5 /offapi | |
parent | Avoid the ID of unknown field being the highest number of all field IDs. (diff) | |
download | core-194785f8b06182ba8caed8448fc61dd82a24dbcb.tar.gz core-194785f8b06182ba8caed8448fc61dd82a24dbcb.zip |
Added new constant group to enumerate text field types.
Change-Id: Iee2cd5994ce5145e3449dd5b62309ae3cee6603d
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/UnoApi_offapi.mk | 3 | ||||
-rw-r--r-- | offapi/com/sun/star/text/textfield/Type.idl | 67 |
2 files changed, 70 insertions, 0 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 3edb190500cc..ca50d1b409d6 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -1372,6 +1372,9 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/text/te User \ WordCount \ )) +$(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/text/textfield,\ + Type \ +)) $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/text/textfield/docinfo,\ ChangeAuthor \ ChangeDateTime \ diff --git a/offapi/com/sun/star/text/textfield/Type.idl b/offapi/com/sun/star/text/textfield/Type.idl new file mode 100644 index 000000000000..fe99a912d569 --- /dev/null +++ b/offapi/com/sun/star/text/textfield/Type.idl @@ -0,0 +1,67 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2012 Kohei Yoshida <kohei.yoshida@suse.com> + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#ifndef __com_sun_star_text_textfield_Type_idl__ +#define __com_sun_star_text_textfield_Type_idl__ + + +module com { module sun { module star { module text { module textfield { + +/** + * Text field types. + * + * Right now this only contains the types that are supported by the edit engine, + * but it should eventually contain all field types that are used across all + * engines. + * + * @since LibreOffice 3.6 + */ +constants Type +{ + const long DATE = 0; + const long URL = 1; + const long PAGE = 2; + const long PAGES = 3; + const long TIME = 4; + const long FILE = 5; + const long TABLE = 6; + const long EXTENDED_TIME = 7; + const long EXTENDED_FILE = 8; + const long AUTHOR = 9; + const long MEASURE = 10; + const long EXTENDED_DATE = 11; + const long HEADER = 12; + const long FOOTER = 13; + const long DATE_TIME = 14; +}; + +}; }; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |