2012-07-25 11:31:03 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
2013-04-19 21:10:42 +01:00
|
|
|
* This file is part of the LibreOffice project.
|
2012-07-25 11:31:03 +02:00
|
|
|
*
|
2013-04-19 21:10:42 +01:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2012-07-25 11:31:03 +02:00
|
|
|
*/
|
|
|
|
|
2013-10-22 21:30:16 +02:00
|
|
|
#ifndef INCLUDED_STARMATH_SOURCE_RTFEXPORT_HXX
|
|
|
|
#define INCLUDED_STARMATH_SOURCE_RTFEXPORT_HXX
|
2012-07-25 11:31:03 +02:00
|
|
|
|
2012-07-27 11:09:57 +02:00
|
|
|
#include "wordexportbase.hxx"
|
2012-07-25 11:31:03 +02:00
|
|
|
|
|
|
|
#include <rtl/strbuf.hxx>
|
|
|
|
|
|
|
|
/**
|
|
|
|
Class implementing writing of formulas to RTF.
|
|
|
|
*/
|
2012-07-27 11:09:57 +02:00
|
|
|
class SmRtfExport : public SmWordExportBase
|
2012-07-25 11:31:03 +02:00
|
|
|
{
|
|
|
|
public:
|
2015-04-07 10:39:42 +09:00
|
|
|
explicit SmRtfExport(const SmNode* pIn);
|
2012-07-27 14:12:42 +02:00
|
|
|
bool ConvertFromStarMath(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding);
|
2012-07-25 11:31:03 +02:00
|
|
|
private:
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void HandleVerticalStack(const SmNode* pNode, int nLevel) SAL_OVERRIDE;
|
|
|
|
virtual void HandleText(const SmNode* pNode, int nLevel) SAL_OVERRIDE;
|
|
|
|
virtual void HandleFractions(const SmNode* pNode, int nLevel, const char* type = NULL) SAL_OVERRIDE;
|
|
|
|
virtual void HandleRoot(const SmRootNode* pNode, int nLevel) SAL_OVERRIDE;
|
|
|
|
virtual void HandleAttribute(const SmAttributNode* pNode, int nLevel) SAL_OVERRIDE;
|
|
|
|
virtual void HandleOperator(const SmOperNode* pNode, int nLevel) SAL_OVERRIDE;
|
|
|
|
virtual void HandleSubSupScriptInternal(const SmSubSupNode* pNode, int nLevel, int flags) SAL_OVERRIDE;
|
|
|
|
virtual void HandleMatrix(const SmMatrixNode* pNode, int nLevel) SAL_OVERRIDE;
|
|
|
|
virtual void HandleBrace(const SmBraceNode* pNode, int nLevel) SAL_OVERRIDE;
|
|
|
|
virtual void HandleVerticalBrace(const SmVerticalBraceNode* pNode, int nLevel) SAL_OVERRIDE;
|
|
|
|
virtual void HandleBlank() SAL_OVERRIDE;
|
2012-07-25 11:31:03 +02:00
|
|
|
|
|
|
|
OStringBuffer* m_pBuffer;
|
2012-07-27 14:12:42 +02:00
|
|
|
rtl_TextEncoding m_nEncoding;
|
2012-07-25 11:31:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|