Ipelib
Classes | Public Member Functions | Friends | List of all members
ipe::Latex Class Reference

#include <ipelatex.h>

Public Member Functions

 Latex (const Cascade *sheet, LatexType latexType, bool sequentialText)
 
 ~Latex ()
 
int scanObject (const Object *obj)
 
int scanPage (Page *page)
 
void addPageNumber (int pno, int vno, int npages, int nviews)
 
int createLatexSource (Stream &stream, String preamble)
 
bool readPdf (DataSource &source)
 
bool updateTextObjects ()
 
PdfResourcestakeResources ()
 

Friends

class ipe::TextCollectingVisitor
 

Detailed Description

Object that converts latex source to PDF format.

This object is responsible for creating the PDF representation of text objects.

Constructor & Destructor Documentation

◆ Latex()

Latex::Latex ( const Cascade sheet,
LatexType  latexType,
bool  sequentialText 
)

Create a converter object.

References ipe::Xetex.

◆ ~Latex()

Latex::~Latex ( )

Destructor.

Member Function Documentation

◆ scanObject()

int Latex::scanObject ( const Object obj)

Scan an object and insert all text objects into Latex's list. Returns total number of text objects found so far.

References ipe::Object::accept().

◆ scanPage()

int Latex::scanPage ( Page page)

Scan a page and insert all text objects into Latex's list. Returns total number of text objects found so far.

References ipe::Text::accept(), ipe::Object::accept(), ipe::Page::applyTitleStyle(), ipe::Page::count(), ipe::Page::invalidateBBox(), ipe::Page::object(), and ipe::Page::titleText().

◆ addPageNumber()

void Latex::addPageNumber ( int  pno,
int  vno,
int  npages,
int  nviews 
)

◆ createLatexSource()

int Latex::createLatexSource ( Stream stream,
String  preamble 
)

◆ readPdf()

bool Latex::readPdf ( DataSource source)

◆ updateTextObjects()

bool Latex::updateTextObjects ( )

Notify all text objects about their updated PDF code.

Returns true if successful.

References ipe::Text::XForm::iRefCount, and ipe::size().

Referenced by ipe::Document::completeLatexRun().

◆ takeResources()

PdfResources * Latex::takeResources ( )

Return the newly created PdfResources and pass ownership to caller.

Referenced by ipe::Document::completeLatexRun().

Friends And Related Function Documentation

◆ ipe::TextCollectingVisitor

friend class ipe::TextCollectingVisitor
friend

The documentation for this class was generated from the following files: