D2d offscreen rendering finish up.
This commit is contained in:
parent
8c814ce89f
commit
c63138c455
32 changed files with 288 additions and 64 deletions
41
src/publishing/latex/LatexMathExpression.h
Normal file
41
src/publishing/latex/LatexMathExpression.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
#pragma once
|
||||
|
||||
#include "LatexSymbols.h"
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
class LatexMathExpression
|
||||
{
|
||||
public:
|
||||
LatexMathExpression(const std::string& expression = {})
|
||||
: mRawExpression(expression)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void parse()
|
||||
{
|
||||
for (auto c : mRawExpression)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
const std::vector<LatexMathSymbol>& getSymbols() const
|
||||
{
|
||||
return mSymbols;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
unsigned mOpenTagCount{ 0 };
|
||||
|
||||
std::string mRawExpression;
|
||||
std::unique_ptr<LatexMathExpression> mSuperScriptExpr;
|
||||
std::unique_ptr<LatexMathExpression> mSubScriptExpr;
|
||||
std::unique_ptr<LatexMathExpression> mEnclosedExpr;
|
||||
|
||||
std::vector<LatexMathSymbol> mSymbols;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue