Class: OpenXml::Docx::Properties::NumberFormat

Inherits:
ValueProperty show all
Defined in:
lib/openxml/docx/properties/number_format.rb

Instance Attribute Summary

Attributes inherited from ValueProperty

#value

Attributes inherited from BaseProperty

#value

Instance Method Summary collapse

Methods inherited from ValueProperty

#initialize, #invalid_message, #render?, #to_xml, #valid?

Methods inherited from BaseProperty

#default_name, #default_namespace, #default_tag, #initialize, name, #name, namespace, #namespace, #render?, tag, #tag, tag_is_one_of

Constructor Details

This class inherits a constructor from OpenXml::Docx::Properties::ValueProperty

Instance Method Details

#ok_valuesObject

TODO: Also allow “format” when “custom” is the number format



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/openxml/docx/properties/number_format.rb', line 9

def ok_values
  %i(decimal upperRoman lowerRoman upperLetter lowerLetter ordinal
    cardinalText ordinalText hex chicago ideographDigital japaneseCounting
    aiueo iroha decimalFullWidth decimalHalfWidth japaneseLegal
    japaneseDigitalTenThousand decimalEnclosedCircle decimalFullWidth2
    aiueoFullWidth irohaFullWidth decimalZero bullet ganada chosung
    decimalEnclosedFullstop
    decimalEnclosedParen
    decimalEnclosedCircleChinese
    ideographEnclosedCircle
    ideographTraditional
    ideographZodiac
    ideographZodiacTraditional
    taiwaneseCounting
    ideographLegalTraditional
    taiwaneseCountingThousand
    taiwaneseDigital
    chineseCounting
    chineseLegalSimplified
    chineseCountingThousand
    koreanDigital
    koreanCounting
    koreanLegal
    koreanDigital2
    vietnameseCounting
    russianLower russianUpper
    none numberInDash
    hebrew1 hebrew2
    arabicAlpha arabicAbjad
    hindiVowels hindiConsonants hindiNumbers hindiCounting
    thaiLetters thaiNumbers thaiCounting
    bahtText
    dollarText custom)
end