dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

alignedtextblock.hh
Go to the documentation of this file.
1 #ifndef __DW_ALIGNEDTEXTBLOCK_HH__
2 #define __DW_ALIGNEDTEXTBLOCK_HH__
3 
4 #include "core.hh"
5 #include "textblock.hh"
6 
7 namespace dw {
8 
14 {
15 private:
16  class List
17  {
18  private:
22 
23  ~List ();
24 
25  public:
26  List ();
27  inline int add (AlignedTextblock *textblock);
28  void unref (int pos);
29 
30  inline int getMaxValue () { return maxValue; }
31  inline void setMaxValue (int maxValue) { this->maxValue = maxValue; }
32 
33  inline int size () { return textblocks->size (); }
34  inline AlignedTextblock *getTextblock (int pos) {
35  return textblocks->get (pos); }
36  inline int getValue (int pos) {return values->get (pos); }
37  inline void setValue (int pos, int value) {
38  return values->set (pos, value); }
39  };
40 
42  int listPos;
43 
44 protected:
46 
47  virtual int getValue () = 0;
48  virtual void setMaxValue (int maxValue, int value) = 0;
49 
51  void updateValue ();
52 
53 public:
54  static int CLASS_ID;
55 
57 };
58 
59 } // namespace dw
60 
61 #endif // __DW_ALIGNEDTEXTBLOCK_HH__
dw::AlignedTextblock
Base widget for all textblocks (sub classes of dw::Textblock), which are positioned vertically and al...
Definition: alignedtextblock.hh:13
dw::AlignedTextblock::list
List * list
Definition: alignedtextblock.hh:41
dw::AlignedTextblock::setRefTextblock
void setRefTextblock(AlignedTextblock *ref)
Definition: alignedtextblock.cc:70
dw::AlignedTextblock::List::textblocks
lout::misc::SimpleVector< AlignedTextblock * > * textblocks
Definition: alignedtextblock.hh:19
dw::Textblock
A Widget for rendering text blocks, i.e. paragraphs or sequences of paragraphs.
Definition: textblock.hh:149
lout::misc::SimpleVector::get
T get(int i) const
Return the one element, explicitly.
Definition: misc.hh:177
dw::AlignedTextblock::listPos
int listPos
Definition: alignedtextblock.hh:42
dw::AlignedTextblock::List::unref
void unref(int pos)
Definition: alignedtextblock.cc:51
dw::Textblock::limitTextWidth
bool limitTextWidth
Definition: textblock.hh:474
dw::AlignedTextblock::updateValue
void updateValue()
Definition: alignedtextblock.cc:87
dw::AlignedTextblock::List::List
List()
Definition: alignedtextblock.cc:28
dw::AlignedTextblock::setMaxValue
virtual void setMaxValue(int maxValue, int value)=0
textblock.hh
lout::misc::SimpleVector::set
void set(int i, T t)
Store an object in the vector.
Definition: misc.hh:222
dw::AlignedTextblock::List
Definition: alignedtextblock.hh:16
dw::AlignedTextblock::List::setValue
void setValue(int pos, int value)
Definition: alignedtextblock.hh:37
dw::AlignedTextblock::CLASS_ID
static int CLASS_ID
Definition: alignedtextblock.hh:54
dw::AlignedTextblock::getValue
virtual int getValue()=0
dw::AlignedTextblock::List::~List
~List()
Definition: alignedtextblock.cc:36
dw::AlignedTextblock::List::getMaxValue
int getMaxValue()
Definition: alignedtextblock.hh:30
dw::AlignedTextblock::List::getValue
int getValue(int pos)
Definition: alignedtextblock.hh:36
dw::AlignedTextblock::List::getTextblock
AlignedTextblock * getTextblock(int pos)
Definition: alignedtextblock.hh:34
dw::AlignedTextblock::List::refCount
int refCount
Definition: alignedtextblock.hh:21
dw::AlignedTextblock::List::values
lout::misc::SimpleVector< int > * values
Definition: alignedtextblock.hh:20
dw::AlignedTextblock::List::add
int add(AlignedTextblock *textblock)
Definition: alignedtextblock.cc:42
dw::AlignedTextblock::List::maxValue
int maxValue
Definition: alignedtextblock.hh:21
core.hh
dw::AlignedTextblock::~AlignedTextblock
~AlignedTextblock()
Definition: alignedtextblock.cc:81
dw::AlignedTextblock::List::setMaxValue
void setMaxValue(int maxValue)
Definition: alignedtextblock.hh:31
dw
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtextblock.cc:26
lout::misc::SimpleVector
Simple (simpler than container::untyped::Vector and container::typed::Vector) template based vector.
Definition: misc.hh:71
dw::AlignedTextblock::AlignedTextblock
AlignedTextblock(bool limitTextWidth)
Definition: alignedtextblock.cc:63
dw::AlignedTextblock::List::size
int size()
Definition: alignedtextblock.hh:33