aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.hh
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-11-30 19:48:43 +0000
committercorvid <corvid@lavabit.com>2009-11-30 19:48:43 +0000
commitc3457e1096d0dc1745efe62a0fb3f1337888d4a9 (patch)
treec46166af0506f7898b294e3d761bc389fe9aeaec /dw/textblock.hh
parenta3daa9910dfbfc0fc6b57ec37ad712fbc19b1e01 (diff)
Separate Anchors out from Words
The reason for this is that they were in the way when adding parbreaks. http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-November/007044.html
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r--dw/textblock.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh
index d7fab7e9..8962f675 100644
--- a/dw/textblock.hh
+++ b/dw/textblock.hh
@@ -172,6 +172,12 @@ protected:
later set by a_Dw_page_add_space */
};
+ struct Anchor
+ {
+ char *name;
+ int wordIndex;
+ };
+
class TextblockIterator: public core::Iterator
{
private:
@@ -239,6 +245,7 @@ protected:
lout::misc::SimpleVector <Line> *lines;
lout::misc::SimpleVector <Word> *words;
+ lout::misc::SimpleVector <Anchor> *anchors;
struct {int index, nChar;}
hlStart[core::HIGHLIGHT_NUM_LAYERS], hlEnd[core::HIGHLIGHT_NUM_LAYERS];