mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
added all required consts
This commit is contained in:
parent
1443001a99
commit
1d39d5a3b6
@ -81,7 +81,7 @@ void CairoBackgroundRenderer::beginTextObject(GfxState *state)
|
|||||||
CairoOutputDev::beginTextObject(state);
|
CairoOutputDev::beginTextObject(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CairoBackgroundRenderer::beginString(GfxState *state, GooString * str)
|
void CairoBackgroundRenderer::beginString(GfxState *state, const GooString * str)
|
||||||
{
|
{
|
||||||
if (param.proof == 2)
|
if (param.proof == 2)
|
||||||
proof_begin_string(state, this);
|
proof_begin_string(state, this);
|
||||||
|
@ -46,7 +46,7 @@ public:
|
|||||||
|
|
||||||
//for proof
|
//for proof
|
||||||
void beginTextObject(GfxState *state);
|
void beginTextObject(GfxState *state);
|
||||||
void beginString(GfxState *state, GooString * str);
|
void beginString(GfxState *state, const GooString * str);
|
||||||
void endTextObject(GfxState *state);
|
void endTextObject(GfxState *state);
|
||||||
void updateRender(GfxState *state);
|
void updateRender(GfxState *state);
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ void SplashBackgroundRenderer::beginTextObject(GfxState *state)
|
|||||||
SplashOutputDev::beginTextObject(state);
|
SplashOutputDev::beginTextObject(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SplashBackgroundRenderer::beginString(GfxState *state, GooString * str)
|
void SplashBackgroundRenderer::beginString(GfxState *state, const GooString * str)
|
||||||
{
|
{
|
||||||
if (param.proof == 2)
|
if (param.proof == 2)
|
||||||
proof_begin_string(state, this);
|
proof_begin_string(state, this);
|
||||||
|
@ -48,7 +48,7 @@ public:
|
|||||||
|
|
||||||
//for proof
|
//for proof
|
||||||
void beginTextObject(GfxState *state);
|
void beginTextObject(GfxState *state);
|
||||||
void beginString(GfxState *state, GooString * str);
|
void beginString(GfxState *state, const GooString * str);
|
||||||
void endTextObject(GfxState *state);
|
void endTextObject(GfxState *state);
|
||||||
void updateRender(GfxState *state);
|
void updateRender(GfxState *state);
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ struct HTMLRenderer : OutputDev
|
|||||||
virtual void eoClip(GfxState * state);
|
virtual void eoClip(GfxState * state);
|
||||||
virtual void clipToStrokePath(GfxState * state);
|
virtual void clipToStrokePath(GfxState * state);
|
||||||
|
|
||||||
virtual void drawString(GfxState * state, GooString * s);
|
virtual void drawString(GfxState * state, const GooString * s);
|
||||||
|
|
||||||
virtual void drawImage(GfxState * state, Object * ref, Stream * str, int width, int height, GfxImageColorMap * colorMap, GBool interpolate, int *maskColors, GBool inlineImg);
|
virtual void drawImage(GfxState * state, Object * ref, Stream * str, int width, int height, GfxImageColorMap * colorMap, GBool interpolate, int *maskColors, GBool inlineImg);
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ using std::none_of;
|
|||||||
using std::cerr;
|
using std::cerr;
|
||||||
using std::endl;
|
using std::endl;
|
||||||
|
|
||||||
void HTMLRenderer::drawString(GfxState * state, GooString * s)
|
void HTMLRenderer::drawString(GfxState * state, const GooString * s)
|
||||||
{
|
{
|
||||||
if(s->getLength() == 0)
|
if(s->getLength() == 0)
|
||||||
return;
|
return;
|
||||||
@ -58,7 +58,7 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
|
|||||||
|
|
||||||
// Now ready to output
|
// Now ready to output
|
||||||
// get the unicodes
|
// get the unicodes
|
||||||
char *p = s->getCString();
|
const char *p = s->getCString();
|
||||||
int len = s->getLength();
|
int len = s->getLength();
|
||||||
|
|
||||||
//accumulated displacement of chars in this string, in text object space
|
//accumulated displacement of chars in this string, in text object space
|
||||||
|
Loading…
Reference in New Issue
Block a user