1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

Merge branch 'devv'

This commit is contained in:
Lu Wang 2013-01-24 22:41:28 +08:00
commit 062c12aa73
2 changed files with 25 additions and 3 deletions

View File

@ -155,8 +155,8 @@ class HTMLRenderer : public OutputDev
/*
* Ugly implementation of save/restore
*/
virtual void saveState(GfxState * state) {updateAll(state);}
virtual void restoreState(GfxState * state) {updateAll(state);}
virtual void saveState(GfxState * state) { updateAll(state); }
virtual void restoreState(GfxState * state) { updateAll(state); }
virtual void updateAll(GfxState * state);
@ -172,7 +172,12 @@ class HTMLRenderer : public OutputDev
virtual void updateCharSpace(GfxState * state);
virtual void updateWordSpace(GfxState * state);
virtual void updateRender(GfxState * state);
virtual void updateFillColorSpace(GfxState * state);
virtual void updateStrokeColorSpace(GfxState * state);
virtual void updateFillColor(GfxState * state);
virtual void updateStrokeColor(GfxState * state);
/*

View File

@ -70,11 +70,28 @@ void HTMLRenderer::updateWordSpace(GfxState * state)
{
word_space_changed = true;
}
void HTMLRenderer::updateRender(GfxState * state)
{
// currently Render is traced for color only
// might need something like render_changed later
color_changed = true;
}
void HTMLRenderer::updateFillColorSpace(GfxState * state)
{
color_changed = true;
}
void HTMLRenderer::updateStrokeColorSpace(GfxState * state)
{
color_changed = true;
}
void HTMLRenderer::updateFillColor(GfxState * state)
{
color_changed = true;
}
void HTMLRenderer::updateStrokeColor(GfxState * state)
{
color_changed = true;
}
void HTMLRenderer::check_state_change(GfxState * state)
{
// DEPENDENCY WARNING