ooodev.format.proto.structs.locale_t module

protocol ooodev.format.proto.structs.locale_t.LocaleT[source]

Bases: StyleT, Protocol

Font Effect Protocol

Classes that implement this protocol must have the following methods / attributes:

__init__(*, country=Ellipsis, language=Ellipsis, variant=Ellipsis)[source]
Parameters:
  • country (str) –

  • language (str) –

  • variant (str) –

Return type:

None

apply(obj: Any, keys: Dict[str, str]) None
apply(**kwds)

Helper for @overload to raise when called.

fmt_country(value)[source]

Gets a copy of instance with country set.

Parameters:

value (int) – Country value.

Returns:

LocaleT instance

Return type:

LocaleT

fmt_language(value)[source]

Gets a copy of instance with language set.

Parameters:

value (int) – Language value.

Returns:

LocaleT instance

Return type:

LocaleT

fmt_variant(value)[source]

Gets a copy of instance with variant set.

Parameters:

value (int) – Variant value.

Returns:

LocaleT instance

Return type:

LocaleT

from_obj(obj: Any) LocaleT
from_obj(obj: Any, **kwargs) LocaleT
from_obj(**kwds)

Helper for @overload to raise when called.

__protocol_attrs__ = {'add_event_listener', 'add_event_observer', 'apply', 'backup', 'copy', 'english_australia', 'english_belize', 'english_botswana', 'english_canada', 'english_caribbean', 'english_gambia', 'english_ghana', 'english_hong_kong', 'english_india', 'english_ireland', 'english_israel', 'english_jamaica', 'english_kenya', 'english_malawi', 'english_malaysia', 'english_mauritius', 'english_namibia', 'english_new_zealand', 'english_nigeria', 'english_philippines', 'english_south_africa', 'english_sri_lanka', 'english_trinidad', 'english_uk', 'english_uk_ode', 'english_us', 'english_usa', 'english_zambia', 'english_zimbabwe', 'fmt_country', 'fmt_language', 'fmt_variant', 'french_belgium', 'french_benin', 'french_burkina_faso', 'french_canada', 'french_cote_d_ivoire', 'french_france', 'french_luxembourg', 'french_mali', 'french_mauritius', 'french_monaco', 'french_niger', 'french_senegal', 'french_switzerland', 'french_togo', 'from_obj', 'german_austria', 'german_belgium', 'german_germany', 'german_liechtenstein', 'german_luxembourg', 'german_switzerland', 'get_attrs', 'get_props', 'get_update_obj', 'has_update_obj', 'locale_none', 'on_applied', 'on_applying', 'on_property_backed_up', 'on_property_backing_up', 'on_property_restore_set', 'on_property_restore_setting', 'on_property_set', 'on_property_set_error', 'prop_country', 'prop_format_kind', 'prop_has_attribs', 'prop_has_backup', 'prop_language', 'prop_parent', 'prop_variant', 'remove_event_listener', 'remove_event_observer', 'restore', 'set_update_obj', 'spanish_argentina', 'spanish_bolivia', 'spanish_chile', 'spanish_colombia', 'spanish_costa_rica', 'spanish_cuba', 'spanish_dom_rep', 'spanish_ecuador', 'spanish_el_salvador', 'spanish_equatorial_guinea', 'spanish_es', 'spanish_guatemala', 'spanish_honduras', 'spanish_mexico', 'spanish_nicaragua', 'spanish_panama', 'spanish_paraguay', 'spanish_peru', 'spanish_philippines', 'spanish_puerto_rico', 'spanish_spain', 'spanish_uruguay', 'spanish_usa', 'spanish_venezuela', 'support_service', 'update'}
property english_australia: Self

Gets English Australia locale

Return type:

Self

property english_belize: Self

Gets English Belize locale

Return type:

Self

property english_botswana: Self

Gets English Botswana locale

Return type:

Self

property english_canada: Self

Gets English Canada locale

Return type:

Self

property english_caribbean: Self

Gets English Caribbean locale

Return type:

Self

property english_gambia: Self

Gets English Gambia locale

Return type:

Self

property english_ghana: Self

Gets English Ghana locale

Return type:

Self

property english_hong_kong: Self

Gets English Hong Kong locale

Return type:

Self

property english_india: Self

Gets English India locale

Return type:

Self

property english_ireland: Self

Gets English Ireland locale

Return type:

Self

property english_israel: Self

Gets English Israel locale

Return type:

Self

property english_jamaica: Self

Gets English Jamaica locale

Return type:

Self

property english_kenya: Self

Gets English Kenya locale

Return type:

Self

property english_malawi: Self

Gets English Malawi locale

Return type:

Self

property english_malaysia: Self

Gets English Malaysia locale

Return type:

Self

property english_mauritius: Self

Gets English Mauritius locale

Return type:

Self

property english_namibia: Self

Gets English Namibia locale

Return type:

Self

property english_new_zealand: Self

Gets English New Zealand locale

Return type:

Self

property english_nigeria: Self

Gets English Nigeria locale

Return type:

Self

property english_philippines: Self

Gets English Philippines locale

Return type:

Self

property english_south_africa: Self

Gets English South Africa locale

Return type:

Self

property english_sri_lanka: Self

Gets English Sri Lanka locale

Return type:

Self

property english_trinidad: Self

Gets English Trinidad locale

Return type:

Self

property english_uk: Self

Gets English UK locale

Return type:

Self

property english_uk_ode: Self

Gets English ODE Spelling UK locale

Return type:

Self

property english_us: Self

Gets English US locale

Return type:

Self

property english_usa: Self

Gets English USA locale

Return type:

Self

property english_zambia: Self

Gets English Zambia locale

Return type:

Self

property english_zimbabwe: Self

Gets English Zimbabwe locale

Return type:

Self

property french_belgium: Self

Gets French Belgium locale

Return type:

Self

property french_benin: Self

Gets French Benin locale

Return type:

Self

property french_burkina_faso: Self

Gets French Burkina Faso locale

Return type:

Self

property french_canada: Self

Gets French Canada locale

Return type:

Self

property french_cote_d_ivoire: Self

Gets French Côte d'Ivoire locale

Return type:

Self

property french_france: Self

Gets French France locale

Return type:

Self

property french_luxembourg: Self

Gets French Luxembourg locale

Return type:

Self

property french_mali: Self

Gets French Mali locale

Return type:

Self

property french_mauritius: Self

Gets French Mauritius locale

Return type:

Self

property french_monaco: Self

Gets French Monaco locale

Return type:

Self

property french_niger: Self

Gets French Niger locale

Return type:

Self

property french_senegal: Self

Gets French Senegal locale

Return type:

Self

property french_switzerland: Self

Gets French Switzerland locale

Return type:

Self

property french_togo: Self

Gets French Togo locale

Return type:

Self

property german_austria: Self

Gets German Austria locale

Return type:

Self

property german_belgium: Self

Gets German Belgium locale

Return type:

Self

property german_germany: Self

Gets German Germany locale

Return type:

Self

property german_liechtenstein: Self

Gets German Liechtenstein locale

Return type:

Self

property german_luxembourg: Self

Gets German Luxembourg locale

Return type:

Self

property german_switzerland: Self

Gets German Switzerland locale

Return type:

Self

property locale_none: Self

Gets no locale

Return type:

Self

property prop_country: str

Gets/Sets the ISO 3166 Country Code

Return type:

str

property prop_language: str

Gets/Sets the ISO 639 Language Code.

Return type:

str

property prop_variant: str

Gets/Sets the BCP 47 Language Tag.

Return type:

str

property spanish_argentina: Self

Gets Spanish Argentina locale

Return type:

Self

property spanish_bolivia: Self

Gets Spanish Bolivia locale

Return type:

Self

property spanish_chile: Self

Gets Spanish Chile locale

Return type:

Self

property spanish_colombia: Self

Gets Spanish Colombia locale

Return type:

Self

property spanish_costa_rica: Self

Gets Spanish Costa Rica locale

Return type:

Self

property spanish_cuba: Self

Gets Spanish Cuba locale

Return type:

Self

property spanish_dom_rep: Self

Gets Spanish Dominion Republic locale

Return type:

Self

property spanish_ecuador: Self

Gets Spanish Ecuador locale

Return type:

Self

property spanish_el_salvador: Self

Gets Spanish El Salvador locale

Return type:

Self

property spanish_equatorial_guinea: Self

Gets Spanish Equatorial Guinea locale es-GQ

Return type:

Self

property spanish_es: Self

Gets Spanish locale es

Return type:

Self

property spanish_guatemala: Self

Gets Spanish Guatemala locale

Return type:

Self

property spanish_honduras: Self

Gets Spanish Honduras locale

Return type:

Self

property spanish_mexico: Self

Gets Spanish Mexico locale

Return type:

Self

property spanish_nicaragua: Self

Gets Spanish Nicaragua locale

Return type:

Self

property spanish_panama: Self

Gets Spanish Panama locale

Return type:

Self

property spanish_paraguay: Self

Gets Spanish Paraguay locale

Return type:

Self

property spanish_peru: Self

Gets Spanish Peru locale

Return type:

Self

property spanish_philippines: Self

Gets Spanish Philippines locale es-PH

Return type:

Self

property spanish_puerto_rico: Self

Gets Spanish Puerto Rico locale

Return type:

Self

property spanish_spain: Self

Gets Spanish Spain locale

Return type:

Self

property spanish_uruguay: Self

Gets Spanish Uruguay locale

Return type:

Self

property spanish_usa: Self

Gets Spanish USA locale es-US

Return type:

Self

property spanish_venezuela: Self

Gets Spanish Venezuela locale

Return type:

Self