Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

ScPreview Class Reference

#include <scpreview.h>

Collaboration diagram for ScPreview:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ScPreview ()
 ~ScPreview ()
QPixmap createPreview (QString data)
void SetQColor (QColor *tmp, const QString &farbe, double shad)
void DrawZeichenS (ScPainter *p, double xco, double yco, QString ch, QString ZFo, bool Reverse, int Style, int mode, double Siz)

Public Attributes

QMap< QString, ScColorFarben
QMap< QString, multiLineMLineStyles
QList< uint > Segments

Protected Attributes

PrefsManagerprefsManager


Detailed Description

Definition at line 21 of file scpreview.h.


Constructor & Destructor Documentation

ScPreview::ScPreview (  ) 

Definition at line 42 of file scpreview.cpp.

References Farben, PrefsManager::instance(), MLineStyles, prefsManager, and Segments.

ScPreview::~ScPreview (  )  [inline]

Definition at line 25 of file scpreview.h.


Member Function Documentation

QPixmap ScPreview::createPreview ( QString  data  ) 

Definition at line 50 of file scpreview.cpp.

References FPointArray::addPoint(), VGradient::addStop(), PrefsManager::appPrefs, ApplicationPrefs::arrowStyles, CopyPasteBuffer::AspectRatio, ApplicationPrefs::AvailFonts, CopyPasteBuffer::BaseOffs, ScPainter::beginLayer(), CopyPasteBuffer::BExtra, ScText::ch, VGradient::clearStops(), CopyPasteBuffer::Clip, CopyPasteBuffer::ClipEdited, SingleLine::Color, FPointArray::copy(), SingleLine::Dash, toolPrefs::defFont, ScPainter::drawImage(), ScPainter::drawLine(), ScPainter::drawPolygon(), ScPainter::drawPolyLine(), DrawZeichenS(), CharStyle::effects(), CopyPasteBuffer::EmProfile, ScPainter::end(), End, CopyPasteBuffer::endArrowIndex, ScPainter::endLayer(), CopyPasteBuffer::Extra, CopyPasteBuffer::ExtraV, Farben, ScPainter::fill_gradient, CopyPasteBuffer::fill_gradient, ScPainter::fillPath(), FlattenPath(), CopyPasteBuffer::flippedH, CopyPasteBuffer::flippedV, CharStyle::font, CopyPasteBuffer::FrameType, ScColor::fromQColor(), GetAttr(), MissingFont::getReplacementFont(), ApplicationPrefs::GFontSub, ScText::glyph, CopyPasteBuffer::GrColor, CopyPasteBuffer::GrColor2, CopyPasteBuffer::GrEndX, CopyPasteBuffer::GrEndY, CopyPasteBuffer::Groups, CopyPasteBuffer::GrShade, CopyPasteBuffer::GrShade2, CopyPasteBuffer::GrStartX, CopyPasteBuffer::GrStartY, CopyPasteBuffer::GrType, CopyPasteBuffer::Height, CopyPasteBuffer::IFont, PageItem::ImageFrame, CharStyle::INHERIT, CopyPasteBuffer::IProfile, CopyPasteBuffer::IRender, CopyPasteBuffer::isBookmark, CopyPasteBuffer::ISize, CopyPasteBuffer::isPrintable, CopyPasteBuffer::itemText, PageItem::ItemType1, PageItem::ItemType3, PageItem::LatexFrame, CopyPasteBuffer::LayerNr, PageItem::Line, VGradient::linear, SingleLine::LineEnd, SingleLine::LineJoin, CopyPasteBuffer::LineSp, ScImage::LoadPicture(), CopyPasteBuffer::LocalScX, CopyPasteBuffer::LocalScY, CopyPasteBuffer::LocalX, CopyPasteBuffer::LocalY, CopyPasteBuffer::Locked, CopyPasteBuffer::m_isAnnotation, M_PI, FPointArray::map(), MLineStyles, PageItem::Multiple, ArrowDesc::name, CopyPasteBuffer::NamedLStyle, CommonStrings::None, PageItem::PathText, CopyPasteBuffer::Pcolor, CopyPasteBuffer::Pcolor2, ScPainter::pen(), CopyPasteBuffer::Pfile, CopyPasteBuffer::Pfile2, CopyPasteBuffer::Pfile3, CopyPasteBuffer::PicArt, CopyPasteBuffer::PLineArt, CopyPasteBuffer::PLineEnd, CopyPasteBuffer::PLineJoin, FPointArray::point(), ArrowDesc::points, CopyPasteBuffer::PoLine, PageItem::Polygon, PageItem::PolyLine, CopyPasteBuffer::PoShow, prefsManager, CopyPasteBuffer::PType, CopyPasteBuffer::Pwidth, ScImage::qImage(), VGradient::radial, CopyPasteBuffer::RadRect, FPointArray::resize(), ScPainter::restore(), CopyPasteBuffer::Reverse, CopyPasteBuffer::RExtra, ScImage::RGBData, CopyPasteBuffer::Rot, ScPainter::rotate(), ScPainter::save(), ScPainter::scale(), CopyPasteBuffer::ScaleType, typoPrefs::scalingSubScript, typoPrefs::scalingSuperScript, ScCore, ScStyle_Default, Segments, ScPainter::setBrush(), ScPainter::setBrushOpacity(), ScPainter::setClipPath(), ScPainter::setFillMode(), ScPainter::setGradient(), ScPainter::setLineWidth(), FPointArray::setMarker(), ScColor::setNamedColor(), ScPainter::setPen(), ScPainter::setPenOpacity(), FPointArray::setPoint(), FPointArray::setPoints(), SetQColor(), ScPainter::setupPolygon(), CopyPasteBuffer::Shade, SingleLine::Shade, CopyPasteBuffer::Shade2, ScribusCore::showSplash(), CopyPasteBuffer::ShTxtFill, CopyPasteBuffer::ShTxtStroke, FPointArray::size(), ScPainter::Solid, CopyPasteBuffer::startArrowIndex, ScPainter::strokePath(), CopyPasteBuffer::textAlignment, PageItem::TextFlowDisabled, CopyPasteBuffer::TextflowMode, PageItem::TextFlowUsesBoundingBox, PageItem::TextFlowUsesContourLine, PageItem::TextFlowUsesFrameShape, PageItem::TextFrame, CopyPasteBuffer::TExtra, ApplicationPrefs::toolSettings, FPointArray::translate(), ScPainter::translate(), CopyPasteBuffer::Transparency, CopyPasteBuffer::TranspStroke, CopyPasteBuffer::TxTBase, CopyPasteBuffer::TxtFill, CopyPasteBuffer::TxtScale, CopyPasteBuffer::TxtScaleV, CopyPasteBuffer::TxtStroke, CopyPasteBuffer::TxTStyle, ApplicationPrefs::typographicSettings, CopyPasteBuffer::UseEmbedded, typoPrefs::valueSmallCaps, typoPrefs::valueSubScript, typoPrefs::valueSuperScript, CopyPasteBuffer::Width, SingleLine::Width, FPoint::x(), GlyphLayout::xoffset, CopyPasteBuffer::Xpos, xy2Deg(), FPoint::y(), GlyphLayout::yoffset, and CopyPasteBuffer::Ypos.

Referenced by Biblio::ObjFromCopyAction(), Biblio::ObjFromMenu(), BibView::ReadContents(), and BibView::SaveContents().

void ScPreview::SetQColor ( QColor *  tmp,
const QString &  farbe,
double  shad 
)

Definition at line 976 of file scpreview.cpp.

References Farben, and ScColorEngine::getShadeColorProof().

Referenced by createPreview().

void ScPreview::DrawZeichenS ( ScPainter p,
double  xco,
double  yco,
QString  ch,
QString  ZFo,
bool  Reverse,
int  Style,
int  mode,
double  Siz 
)


Member Data Documentation

QMap<QString,ScColor> ScPreview::Farben

Definition at line 29 of file scpreview.h.

Referenced by createPreview(), ScPreview(), and SetQColor().

Definition at line 30 of file scpreview.h.

Referenced by createPreview(), and ScPreview().

QList<uint> ScPreview::Segments

Definition at line 31 of file scpreview.h.

Referenced by createPreview(), and ScPreview().

Definition at line 33 of file scpreview.h.

Referenced by createPreview(), DrawZeichenS(), and ScPreview().


The documentation for this class was generated from the following files:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.