diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-09-14 14:20:04 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-09-14 14:22:07 +0200 |
commit | a4f835d03a4cad5e4b454faa8eebbf3eefc0448c (patch) | |
tree | f82ebf73633e89242b6c9e01a701f8a79740ecec /idlc/inc | |
parent | b1a46b9bc8f3875890234a4c64676edf97516114 (diff) |
idlc-error-offset.diff: Add character offset for idlc errors
i#81780
Diffstat (limited to 'idlc/inc')
-rw-r--r-- | idlc/inc/idlc/idlc.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/idlc/inc/idlc/idlc.hxx b/idlc/inc/idlc/idlc.hxx index cec8e58900fb..663698143f7e 100644 --- a/idlc/inc/idlc/idlc.hxx +++ b/idlc/inc/idlc/idlc.hxx @@ -102,6 +102,12 @@ public: { m_warningCount++; } sal_uInt32 getLineNumber() { return m_lineNumber; } + sal_uInt32 getOffsetStart() + { return m_offsetStart; } + sal_uInt32 getOffsetEnd() + { return m_offsetEnd; } + void setOffset( sal_uInt32 start, sal_uInt32 end) + { m_offsetStart = start; m_offsetEnd = end; } void setLineNumber(sal_uInt32 lineNumber) { m_lineNumber = lineNumber; } void incLineNumber() @@ -136,6 +142,8 @@ private: sal_uInt32 m_errorCount; sal_uInt32 m_warningCount; sal_uInt32 m_lineNumber; + sal_uInt32 m_offsetStart; + sal_uInt32 m_offsetEnd; ParseState m_parseState; StringSet m_includes; }; |