pdfHTML 5.0.4 API
|
Class that manages counters (e.g. for list symbols). More...
Public Member Functions |
|
CssCounterManager () | |
Creates a new CssCounterManager instance. More... |
|
virtual void | ClearManager () |
Clears information about counters. More... |
|
virtual void | PushEveryCounterToCounters (IElementNode element) |
Pushes every current non-null counter to stack of counters. More... |
|
virtual void | PopEveryCounterFromCounters (IElementNode element) |
Pops every given counter from stack of counters. More... |
|
virtual String | ResolveTargetCounter (String id, String counterName, CounterDigitsGlyphStyle listSymbolType) |
Gets target-counter value for specified ID and counterName. More... |
|
virtual String | ResolveTargetCounters (String id, String counterName, String counterSeparatorStr, CounterDigitsGlyphStyle listSymbolType) |
Gets target-counter value for specified ID and counterName. More... |
|
virtual void | AddTargetCounterIfRequired (IElementNode node) |
Adds counter value to every counter in the Map corresponding to a node ID. More... |
|
virtual void | AddTargetCountersIfRequired (IElementNode node) |
Adds counters value to every counter in the Map corresponding to a node ID. More... |
|
virtual String | ResolveCounter (String counterName, CounterDigitsGlyphStyle listSymbolType) |
Resolves a counter. More... |
|
virtual String | ResolveCounters (String counterName, String counterSeparatorStr, CounterDigitsGlyphStyle listSymbolType) |
Resolves counters. More... |
|
virtual void | ResetCounter (String counterName) |
Resets the counter. More... |
|
virtual void | ResetCounter (String counterName, int value) |
Resets the counter. More... |
|
virtual void | IncrementCounter (String counterName) |
Increments the counter. More... |
|
virtual void | IncrementCounter (String counterName, int incrementValue) |
Increments the counter. More... |
|
Class that manages counters (e.g. for list symbols).
|
inline |
Creates a new CssCounterManager instance.
|
inlinevirtual |
Adds counter value to every counter in the Map corresponding to a node ID.
node | node to take ID and scope from |
|
inlinevirtual |
Adds counters value to every counter in the Map corresponding to a node ID.
node | node to take ID and scope from |
|
inlinevirtual |
Clears information about counters.
Clears information about counters. Target-counter(s) information remains.
|
inlinevirtual |
Increments the counter.
counterName | the counter name |
|
inlinevirtual |
Increments the counter.
counterName | the counter name |
incrementValue | the increment value |
|
inlinevirtual |
Pops every given counter from stack of counters.
Pops every given counter from stack of counters. This method should be called when we have finished processing child nodes.
element | the element which counters shall be popped |
|
inlinevirtual |
Pushes every current non-null counter to stack of counters.
Pushes every current non-null counter to stack of counters. This method should be called when we are about to process child nodes.
element | the element which counters shall be pushed |
|
inlinevirtual |
Resets the counter.
counterName | the counter name |
|
inlinevirtual |
Resets the counter.
counterName | the counter name |
value | the new value |
|
inlinevirtual |
Resolves a counter.
counterName | the counter name |
listSymbolType | the list symbol type |
|
inlinevirtual |
Resolves counters.
counterName | the counter name |
counterSeparatorStr | the counter separator |
listSymbolType | the list symbol type |
|
inlinevirtual |
Gets target-counter value for specified ID and counterName.
Gets target-counter value for specified ID and counterName. Value is converted according to listSymbolType.
id | ID of the element. The first call adds ID to the Map, which means we require its value. The second call returns corresponding value if we already encountered corresponding element |
counterName | name of the counter. The first call adds counterName to the Map, which means we require its value. The second call returns corresponding value if we already encountered corresponding element |
listSymbolType | the list symbol type to convert counter's value. null if conversion is not required. |
|
inlinevirtual |
Gets target-counter value for specified ID and counterName.
Gets target-counter value for specified ID and counterName. Value is converted according to listSymbolType.
id | ID of the element. The first call adds ID at the Map, which means we require its value. The second call returns corresponding value if we already encountered this element |
counterName | name of the counter. The first call adds name at the Map, which means we require its value. The second call returns corresponding value if we already encountered this element |
counterSeparatorStr | separator to separate counters values. |
listSymbolType | the list symbol type to convert counter's value. null if conversion is not required. |