Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Image Class Reference

< this class represents the image tag. More...

#include <image.h>

Inheritance diagram for Image::

Tag List of all members.

Public Methods

 Image (Line &line)
void set_dir (std::string cd)
std::string get_image ()
std::string get_image (std::string current_dir)
 returns the new tag. More...

bool operator! () const
 class not a tag?;. More...

std::string get_tag ()
int get_level ()

Private Methods

std::string create_tag (std::string file_name)
 creates the tag out from the options. More...

bool percentage (std::string str, unsigned int &n)
void delete_default_options ()

Private Attributes

std::string origfile
 the original file. More...

std::string alt
std::string src
std::string width
std::string height
std::string lowsrc
std::string border
std::string current_dir

Detailed Description

< this class represents the image tag.

Constructor & Destructor Documentation

Image::Image Line   line

Member Function Documentation

std::string Image::create_tag std::string    file_name [private]

creates the tag out from the options.

void Image::delete_default_options   [inline, private]

Reimplemented from Tag.

std::string Image::get_image std::string    current_dir

returns the new tag.

std::string Image::get_image   [inline]

int Image::get_level   [inline]

std::string Image::get_tag   [inline]

bool Image::operator!   const [inline]

class not a tag?;.

Reimplemented from Tag.

bool Image::percentage std::string    str,
unsigned int &    n

checks if the number is an percentage, eg: 90% extracts the number and returns true if there is an % and false if not

void Image::set_dir std::string    cd [inline]

Member Data Documentation

std::string Image::alt [private]

these options are passed directly to the img tag

std::string Image::border [private]

std::string Image::current_dir [private]

std::string Image::height [private]

std::string Image::lowsrc [private]

std::string Image::origfile [private]

the original file.

std::string Image::src [private]

std::string Image::width [private]

The documentation for this class was generated from the following files:
Generated on Tue Nov 20 02:19:53 2001 for Leo<HTML> by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001