LibreOffice Module sc (master) 1
|
Stores the used instances of the FilterFormulaParser service implementations, mapped by the formula namespace they support. More...
#include <formulaparserpool.hxx>
Public Member Functions | |
ScFormulaParserPool (const ScDocument &rDoc) | |
~ScFormulaParserPool () | |
bool | hasFormulaParser (const OUString &rNamespace) |
Returns true, if a formula parser is registered for the passed namespace. More... | |
css::uno::Reference< css::sheet::XFormulaParser > | getFormulaParser (const OUString &rNamespace) |
Returns the formula parser that is registered for the passed namespace. More... | |
Private Types | |
typedef std::unordered_map< OUString, css::uno::Reference< css::sheet::XFormulaParser > > | ParserMap |
Private Attributes | |
const ScDocument & | mrDoc |
ParserMap | maParsers |
Stores the used instances of the FilterFormulaParser service implementations, mapped by the formula namespace they support.
Definition at line 29 of file formulaparserpool.hxx.
|
private |
Definition at line 45 of file formulaparserpool.hxx.
|
explicit |
Definition at line 104 of file formulaparserpool.cxx.
ScFormulaParserPool::~ScFormulaParserPool | ( | ) |
Definition at line 109 of file formulaparserpool.cxx.
Reference< XFormulaParser > ScFormulaParserPool::getFormulaParser | ( | const OUString & | rNamespace | ) |
Returns the formula parser that is registered for the passed namespace.
Definition at line 118 of file formulaparserpool.cxx.
References Exception, ScDocument::GetDocumentShell(), maParsers, and mrDoc.
Referenced by ScCompiler::CompileString(), and hasFormulaParser().
bool ScFormulaParserPool::hasFormulaParser | ( | const OUString & | rNamespace | ) |
Returns true, if a formula parser is registered for the passed namespace.
Definition at line 113 of file formulaparserpool.cxx.
References getFormulaParser().
Referenced by ScXMLImport::ExtractFormulaNamespaceGrammar().
|
private |
Definition at line 48 of file formulaparserpool.hxx.
Referenced by getFormulaParser().
|
private |
Definition at line 47 of file formulaparserpool.hxx.
Referenced by getFormulaParser().