summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-04-24 21:51:14 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-04-24 22:03:38 +0200
commitb8fc1721d20c09de595824884943ad0ece68bf52 (patch)
treed3b001337e053395f7f44f6edadd55c4e705d918 /writerfilter
parentc1e8cd6f825f9981a6473afd883ec667d5579746 (diff)
writerfilter: fix indentation in rtflookahead
Change-Id: Ib012030799ef2602a4b61c38d5ad2374422fe8b8
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/rtftok/rtflookahead.cxx12
-rw-r--r--writerfilter/source/rtftok/rtflookahead.hxx70
2 files changed, 43 insertions, 39 deletions
diff --git a/writerfilter/source/rtftok/rtflookahead.cxx b/writerfilter/source/rtftok/rtflookahead.cxx
index d3a8d492d529..bab41e635c2d 100644
--- a/writerfilter/source/rtftok/rtflookahead.cxx
+++ b/writerfilter/source/rtftok/rtflookahead.cxx
@@ -16,12 +16,14 @@
using namespace com::sun::star;
-namespace writerfilter {
-namespace rtftok {
+namespace writerfilter
+{
+namespace rtftok
+{
RTFLookahead::RTFLookahead(SvStream& rStream, sal_Size nGroupStart)
: m_rStream(rStream),
- m_bHasTable(false)
+ m_bHasTable(false)
{
sal_Size nPos = m_rStream.Tell();
m_rStream.Seek(nGroupStart);
@@ -64,8 +66,8 @@ int RTFLookahead::dispatchValue(RTFKeyword /*nKeyword*/, int /*nParam*/)
int RTFLookahead::resolveChars(char ch)
{
- while(!m_rStream.IsEof() && (ch != '{' && ch != '}' && ch != '\\'))
- m_rStream.ReadChar( ch );
+ while (!m_rStream.IsEof() && (ch != '{' && ch != '}' && ch != '\\'))
+ m_rStream.ReadChar(ch);
if (!m_rStream.IsEof())
m_rStream.SeekRel(-1);
return 0;
diff --git a/writerfilter/source/rtftok/rtflookahead.hxx b/writerfilter/source/rtftok/rtflookahead.hxx
index 6746ebe29538..f2103de1b177 100644
--- a/writerfilter/source/rtftok/rtflookahead.hxx
+++ b/writerfilter/source/rtftok/rtflookahead.hxx
@@ -15,40 +15,42 @@
class SvStream;
-namespace writerfilter {
- namespace rtftok {
- /**
- * This acts like an importer, but used for looking ahead, e.g. to
- * determine if the current group contains a table, etc.
- */
- class RTFLookahead : public RTFListener
- {
- public:
- RTFLookahead(SvStream& rStream, sal_Size nGroupStart);
- virtual ~RTFLookahead();
- virtual int dispatchDestination(RTFKeyword nKeyword) SAL_OVERRIDE;
- virtual int dispatchFlag(RTFKeyword nKeyword) SAL_OVERRIDE;
- virtual int dispatchSymbol(RTFKeyword nKeyword) SAL_OVERRIDE;
- virtual int dispatchToggle(RTFKeyword nKeyword, bool bParam, int nParam) SAL_OVERRIDE;
- virtual int dispatchValue(RTFKeyword nKeyword, int nParam) SAL_OVERRIDE;
- virtual int resolveChars(char ch) SAL_OVERRIDE;
- virtual int pushState() SAL_OVERRIDE;
- virtual int popState() SAL_OVERRIDE;
- virtual RTFDestinationState getDestinationState() SAL_OVERRIDE;
- virtual void setDestinationState(RTFDestinationState nDestinationState) SAL_OVERRIDE;
- virtual RTFInternalState getInternalState() SAL_OVERRIDE;
- virtual void setInternalState(RTFInternalState nInternalState) SAL_OVERRIDE;
- virtual bool getSkipUnknown() SAL_OVERRIDE;
- virtual void setSkipUnknown(bool bSkipUnknown) SAL_OVERRIDE;
- virtual void finishSubstream() SAL_OVERRIDE;
- virtual bool isSubstream() const SAL_OVERRIDE;
- bool hasTable();
- private:
- boost::shared_ptr<RTFTokenizer> m_pTokenizer;
- SvStream& m_rStream;
- bool m_bHasTable;
- };
- } // namespace rtftok
+namespace writerfilter
+{
+namespace rtftok
+{
+/**
+ * This acts like an importer, but used for looking ahead, e.g. to
+ * determine if the current group contains a table, etc.
+ */
+class RTFLookahead : public RTFListener
+{
+public:
+ RTFLookahead(SvStream& rStream, sal_Size nGroupStart);
+ virtual ~RTFLookahead();
+ virtual int dispatchDestination(RTFKeyword nKeyword) SAL_OVERRIDE;
+ virtual int dispatchFlag(RTFKeyword nKeyword) SAL_OVERRIDE;
+ virtual int dispatchSymbol(RTFKeyword nKeyword) SAL_OVERRIDE;
+ virtual int dispatchToggle(RTFKeyword nKeyword, bool bParam, int nParam) SAL_OVERRIDE;
+ virtual int dispatchValue(RTFKeyword nKeyword, int nParam) SAL_OVERRIDE;
+ virtual int resolveChars(char ch) SAL_OVERRIDE;
+ virtual int pushState() SAL_OVERRIDE;
+ virtual int popState() SAL_OVERRIDE;
+ virtual RTFDestinationState getDestinationState() SAL_OVERRIDE;
+ virtual void setDestinationState(RTFDestinationState nDestinationState) SAL_OVERRIDE;
+ virtual RTFInternalState getInternalState() SAL_OVERRIDE;
+ virtual void setInternalState(RTFInternalState nInternalState) SAL_OVERRIDE;
+ virtual bool getSkipUnknown() SAL_OVERRIDE;
+ virtual void setSkipUnknown(bool bSkipUnknown) SAL_OVERRIDE;
+ virtual void finishSubstream() SAL_OVERRIDE;
+ virtual bool isSubstream() const SAL_OVERRIDE;
+ bool hasTable();
+private:
+ boost::shared_ptr<RTFTokenizer> m_pTokenizer;
+ SvStream& m_rStream;
+ bool m_bHasTable;
+};
+} // namespace rtftok
} // namespace writerfilter
#endif // INCLUDED_WRITERFILTER_SOURCE_RTFTOK_RTFLOOKAHEAD_HXX