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

lyx::graphics Namespace Reference


Compounds

struct  lyx::graphics::BoundingBox
 Parse a string of the form "200pt 500pt 300mm 5in" into a usable bounding box. More...

class  lyx::graphics::Cache
class  lyx::graphics::CacheItem
 A grfx::Cache item holder. More...

class  lyx::graphics::Converter
struct  lyx::graphics::EraseSnippet
struct  lyx::graphics::FindSnippet
class  lyx::graphics::Image
struct  lyx::graphics::Previews::Impl
struct  lyx::graphics::PreviewLoader::Impl
struct  lyx::graphics::PreviewImage::Impl
struct  lyx::graphics::Loader::Impl
struct  lyx::graphics::Converter::Impl
struct  lyx::graphics::CacheItem::Impl
struct  lyx::graphics::Cache::Impl
class  lyx::graphics::Loader
class  lyx::graphics::LoaderQueue
struct  lyx::graphics::Params
class  lyx::graphics::PreviewedInset
class  lyx::graphics::PreviewImage
class  lyx::graphics::PreviewLoader
class  lyx::graphics::Previews
class  lyx::graphics::QLImage
class  lyx::graphics::xformsImage

Typedefs

typedef std::map< string,
Cache::ItemPtr
CacheType
 The cache contains one item per file, so use a map to find the cache item quickly by filename. More...


Enumerations

enum  ImageStatus {
  WaitingToLoad, Loading, Converting, Loaded,
  ScalingEtc, Ready, ErrorNoFile, ErrorConverting,
  ErrorLoading, ErrorGeneratingPixmap, ErrorUnknown
}
 The status of the loading process. More...

enum  DisplayType {
  DefaultDisplay, MonochromeDisplay, GrayscaleDisplay, ColorDisplay,
  NoDisplay
}
 How is the image to be displayed on the LyX screen? More...


Functions

bool operator== (Params const &a, Params const &b)
bool operator!= (Params const &a, Params const &b)
bool operator== (BoundingBox const &a, BoundingBox const &b)
bool operator!= (BoundingBox const &a, BoundingBox const &b)
Translator< DisplayType, stringdisplayTranslator (DefaultDisplay,"default")
 The translator between the Display enum and corresponding lyx string. More...

void setDisplayTranslator ()

Variables

Translator< DisplayType, stringdisplayTranslator
 The translator between the DisplayType and the corresponding lyx string. More...


Typedef Documentation

typedef std::map<string, Cache::ItemPtr> lyx::graphics::CacheType
 

The cache contains one item per file, so use a map to find the cache item quickly by filename.

Definition at line 34 of file GraphicsCache.C.


Enumeration Type Documentation

enum lyx::graphics::DisplayType
 

How is the image to be displayed on the LyX screen?

Enumeration values:
DefaultDisplay 
MonochromeDisplay 
GrayscaleDisplay 
ColorDisplay 
NoDisplay 

Definition at line 53 of file GraphicsTypes.h.

Referenced by lyx::graphics::Loader::Loader, and lyx::graphics::Loader::reset.

00053                  {
00055         DefaultDisplay,
00057         MonochromeDisplay,
00059         GrayscaleDisplay,
00061         ColorDisplay,
00063         NoDisplay
00064 };

enum lyx::graphics::ImageStatus
 

The status of the loading process.

Enumeration values:
WaitingToLoad  The data is in the cache, but no request to display it has been received.
Loading  The image is in a loadable format and is being loaded.
Converting  The image is being converted to a loadable format.
Loaded  The image has been loaded into memory.
ScalingEtc  The image is in memory and is being scaled, rotated, etc.
Ready  All finished. Can display the image.
ErrorNoFile 
ErrorConverting 
ErrorLoading 
ErrorGeneratingPixmap 
ErrorUnknown  The data is not in the cache at all!

Definition at line 25 of file GraphicsTypes.h.

Referenced by lyx::graphics::CacheItem::Impl::setStatus, lyx::graphics::Loader::status, and lyx::graphics::CacheItem::status.

00025                  {
00029         WaitingToLoad,
00031         Loading,
00033         Converting,
00035         Loaded,
00037         ScalingEtc,
00039         Ready,
00041         ErrorNoFile,
00043         ErrorConverting,
00045         ErrorLoading,
00047         ErrorGeneratingPixmap,
00049         ErrorUnknown
00050 };


Function Documentation

Translator<DisplayType, string> displayTranslator DefaultDisplay   ,
"default"   
 

The translator between the Display enum and corresponding lyx string.

bool lyx::graphics::operator!= BoundingBox const &    a,
BoundingBox const &    b
 

Definition at line 94 of file GraphicsParams.C.

00095 {
00096         return !(a == b);
00097 }

bool lyx::graphics::operator!= Params const &    a,
Params const &    b
 

Definition at line 41 of file GraphicsParams.C.

00042 {
00043         return !(a == b);
00044 }

bool lyx::graphics::operator== BoundingBox const &    a,
BoundingBox const &    b
 

Definition at line 85 of file GraphicsParams.C.

00086 {
00087         return (a.xl == b.xl &&
00088                 a.yb == b.yb &&
00089                 a.xr == b.xr &&
00090                 a.yt == b.yt);
00091 }

bool lyx::graphics::operator== Params const &    a,
Params const &    b
 

Definition at line 31 of file GraphicsParams.C.

00032 {
00033         return (a.filename == b.filename &&
00034                 a.display == b.display &&
00035                 a.bb == b.bb &&
00036                 a.scale == b.scale &&
00037                 a.angle == b.angle);
00038 }

void lyx::graphics::setDisplayTranslator  
 

Definition at line 23 of file GraphicsTypes.C.

00024 {
00026         static bool done = false;
00027 
00028         if (!done) {
00029                 done = true;
00030 
00031                 // Fill the display translator
00032                 displayTranslator.addPair(DefaultDisplay, "default");
00033                 displayTranslator.addPair(MonochromeDisplay, "monochrome");
00034                 displayTranslator.addPair(GrayscaleDisplay, "grayscale");
00035                 displayTranslator.addPair(ColorDisplay, "color");
00036                 displayTranslator.addPair(NoDisplay, "none");
00037 
00038                 // backward compatibility for old lyxrc.display_graphics
00039                 displayTranslator.addPair(MonochromeDisplay, "mono");
00040                 displayTranslator.addPair(GrayscaleDisplay, "gray");
00041                 displayTranslator.addPair(NoDisplay, "no");
00042         }
00043 }


Variable Documentation

Translator<DisplayType, string> lyx::graphics::displayTranslator
 

The translator between the DisplayType and the corresponding lyx string.

Definition at line 67 of file GraphicsTypes.h.


Generated on Fri Jul 18 01:19:07 2003 for lyx by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002