Class: Axlsx::App
- Inherits:
-
Object
- Object
- Axlsx::App
- Defined in:
- lib/axlsx/doc_props/app.rb
Overview
Support is not implemented for the following complex types:
HeadingPairs (VectorVariant), TitlesOfParts (VectorLpstr), HLinks (VectorVariant), DigSig (DigSigBlob)
App represents the app.xml document. The attributes for this object are primarily managed by the application the end user uses to edit the document. None of the attributes are required to serialize a valid xlsx object.
Instance Attribute Summary collapse
-
#Application ⇒ String
The name of the application.
-
#AppVersion ⇒ String
The version of the application.
-
#Characters ⇒ Integer
The number of characters in the document.
-
#CharactersWithSpaces ⇒ Integer
The number of characters in the document including spaces.
-
#Company ⇒ String
The name of the company generating the document.
-
#DocSecurity ⇒ Integer
Document security.
-
#HiddenSlides ⇒ Integer
The number of hidden slides.
-
#HyperLinkBase ⇒ String
The base for hyper links in the document.
-
#HyperlinksChanged ⇒ Boolean
Indicates that the hyper links in the document have been changed.
-
#Lines ⇒ Integer
The number of lines in the document.
-
#LinksUpToDate ⇒ Boolean
The links in the document are up to date.
-
#Manager ⇒ String
The name of the manager for the document.
-
#MMClips ⇒ Integer
The total number multimedia clips.
-
#Notes ⇒ Integer
The number of slides that have notes.
-
#Pages ⇒ Integer
The number of pages in the document.
-
#Paragraphs ⇒ Integer
The number of paragraphs in the document.
-
#PresentationFormat ⇒ String
The intended format of the presentation.
-
#ScaleCrop ⇒ Boolean
The display mode for the document thumbnail.
-
#ShareDoc ⇒ Boolean
Indicates if the document is shared.
-
#Slides ⇒ Intger
The number of slides in the document.
-
#Template ⇒ String
The name of the document template.
-
#TotalTime ⇒ Integer
The total amount of time spent editing.
-
#Words ⇒ Integer
The number of words in the document.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ App
constructor
Creates an App object.
-
#to_xml_string(str = '') ⇒ String
Serialize the app.xml document.
Constructor Details
#initialize(options = {}) ⇒ App
Creates an App object
105 106 107 108 109 |
# File 'lib/axlsx/doc_props/app.rb', line 105 def initialize(={}) .each do |o| self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" end end |
Instance Attribute Details
#Application ⇒ String
Returns The name of the application.
74 75 76 |
# File 'lib/axlsx/doc_props/app.rb', line 74 def Application @Application end |
#AppVersion ⇒ String
Returns The version of the application.
77 78 79 |
# File 'lib/axlsx/doc_props/app.rb', line 77 def AppVersion @AppVersion end |
#Characters ⇒ Integer
Returns The number of characters in the document.
29 30 31 |
# File 'lib/axlsx/doc_props/app.rb', line 29 def Characters @Characters end |
#CharactersWithSpaces ⇒ Integer
Returns The number of characters in the document including spaces.
62 63 64 |
# File 'lib/axlsx/doc_props/app.rb', line 62 def CharactersWithSpaces @CharactersWithSpaces end |
#Company ⇒ String
Returns The name of the company generating the document.
20 21 22 |
# File 'lib/axlsx/doc_props/app.rb', line 20 def Company @Company end |
#DocSecurity ⇒ Integer
Returns Document security.
80 81 82 |
# File 'lib/axlsx/doc_props/app.rb', line 80 def DocSecurity @DocSecurity end |
#HiddenSlides ⇒ Integer
Returns The number of hidden slides.
50 51 52 |
# File 'lib/axlsx/doc_props/app.rb', line 50 def HiddenSlides @HiddenSlides end |
#HyperLinkBase ⇒ String
Returns The base for hyper links in the document.
68 69 70 |
# File 'lib/axlsx/doc_props/app.rb', line 68 def HyperLinkBase @HyperLinkBase end |
#HyperlinksChanged ⇒ Boolean
Returns Indicates that the hyper links in the document have been changed.
71 72 73 |
# File 'lib/axlsx/doc_props/app.rb', line 71 def HyperlinksChanged @HyperlinksChanged end |
#Lines ⇒ Integer
Returns The number of lines in the document.
35 36 37 |
# File 'lib/axlsx/doc_props/app.rb', line 35 def Lines @Lines end |
#LinksUpToDate ⇒ Boolean
Returns The links in the document are up to date.
59 60 61 |
# File 'lib/axlsx/doc_props/app.rb', line 59 def LinksUpToDate @LinksUpToDate end |
#Manager ⇒ String
Returns The name of the manager for the document.
17 18 19 |
# File 'lib/axlsx/doc_props/app.rb', line 17 def Manager @Manager end |
#MMClips ⇒ Integer
Returns The total number multimedia clips.
53 54 55 |
# File 'lib/axlsx/doc_props/app.rb', line 53 def MMClips @MMClips end |
#Notes ⇒ Integer
Returns The number of slides that have notes.
44 45 46 |
# File 'lib/axlsx/doc_props/app.rb', line 44 def Notes @Notes end |
#Pages ⇒ Integer
Returns The number of pages in the document.
23 24 25 |
# File 'lib/axlsx/doc_props/app.rb', line 23 def Pages @Pages end |
#Paragraphs ⇒ Integer
Returns The number of paragraphs in the document.
38 39 40 |
# File 'lib/axlsx/doc_props/app.rb', line 38 def Paragraphs @Paragraphs end |
#PresentationFormat ⇒ String
Returns The intended format of the presentation.
32 33 34 |
# File 'lib/axlsx/doc_props/app.rb', line 32 def PresentationFormat @PresentationFormat end |
#ScaleCrop ⇒ Boolean
Returns The display mode for the document thumbnail.
56 57 58 |
# File 'lib/axlsx/doc_props/app.rb', line 56 def ScaleCrop @ScaleCrop end |
#ShareDoc ⇒ Boolean
Returns Indicates if the document is shared.
65 66 67 |
# File 'lib/axlsx/doc_props/app.rb', line 65 def ShareDoc @ShareDoc end |
#Slides ⇒ Intger
Returns The number of slides in the document.
41 42 43 |
# File 'lib/axlsx/doc_props/app.rb', line 41 def Slides @Slides end |
#Template ⇒ String
Returns The name of the document template.
14 15 16 |
# File 'lib/axlsx/doc_props/app.rb', line 14 def Template @Template end |
#TotalTime ⇒ Integer
Returns The total amount of time spent editing.
47 48 49 |
# File 'lib/axlsx/doc_props/app.rb', line 47 def TotalTime @TotalTime end |
#Words ⇒ Integer
Returns The number of words in the document.
26 27 28 |
# File 'lib/axlsx/doc_props/app.rb', line 26 def Words @Words end |
Instance Method Details
#to_xml_string(str = '') ⇒ String
Serialize the app.xml document
167 168 169 170 171 172 |
# File 'lib/axlsx/doc_props/app.rb', line 167 def to_xml_string(str = '') str << '<?xml version="1.0" encoding="UTF-8"?>' str << '<Properties xmlns="' << APP_NS << '" xmlns:vt="' << APP_NS_VT << '">' str << instance_values.map { |key, value| '<' << key.to_s << '>' << value.to_s << '</' << key.to_s << '>' }.join str << '</Properties>' end |