Kaydet (Commit) a9bd83bd authored tarafından Takeshi Abe's avatar Takeshi Abe

starmath: Move SmNodeStack to mathmlimport.hxx

which is the only place using it.

Change-Id: I87d5a1f0d0993f7585c9767fc32eb46158503dfb
Reviewed-on: https://gerrit.libreoffice.org/36197Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTakeshi Abe <tabe@fixedpoint.jp>
üst 709f49bc
......@@ -31,7 +31,6 @@
#include <cassert>
#include <memory>
#include <vector>
#include <deque>
enum class FontAttribute {
None = 0x0000,
......@@ -76,19 +75,8 @@ class SmDocShell;
class SmNode;
class SmStructureNode;
typedef std::deque<std::unique_ptr<SmNode>> SmNodeStack;
typedef std::vector< SmNode * > SmNodeArray;
template < typename T >
T* popOrZero(std::deque<std::unique_ptr<T>> & rStack)
{
if (rStack.empty())
return nullptr;
std::unique_ptr<T> pTmp(std::move(rStack.front()));
rStack.pop_front();
return pTmp.release();
}
enum SmScaleMode { SCALE_NONE, SCALE_WIDTH, SCALE_HEIGHT };
enum SmNodeType
......
......@@ -84,6 +84,18 @@ using namespace ::xmloff::token;
#define IMPORT_SVC_NAME "com.sun.star.xml.XMLImportFilter"
namespace {
SmNode* popOrZero(SmNodeStack& rStack)
{
if (rStack.empty())
return nullptr;
auto pTmp = std::move(rStack.front());
rStack.pop_front();
return pTmp.release();
}
}
sal_uLong SmXMLImportWrapper::Import(SfxMedium &rMedium)
{
......
......@@ -26,6 +26,7 @@
#include <xmloff/xmltoken.hxx>
#include <node.hxx>
#include <deque>
#include <memory>
class SfxMedium;
......@@ -37,6 +38,8 @@ namespace com { namespace sun { namespace star {
} } }
typedef std::deque<std::unique_ptr<SmNode>> SmNodeStack;
class SmXMLImportWrapper
{
css::uno::Reference<css::frame::XModel> xModel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment