Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 4119 → Rev 4120

/branches/Version13x/Scribus/scribus/plugins/scriptplugin/scripter2/scripter2_scribus_pageitem.cpp
193,124 → 193,79
.add_property("xPos", &PageItem::xPos, &PageItem::setXPos)
.add_property("yPos", &PageItem::yPos, &PageItem::setYPos)
.def("moveBy", &PageItem::moveBy)
.def("width", &PageItem::width)
.def("height", &PageItem::height)
.def("setWidth", &PageItem::setWidth)
.def("setHeight", &PageItem::setHeight)
.add_property("width", &PageItem::width, &PageItem::setWidth)
.add_property("height", &PageItem::height, &PageItem::setHeight)
.def("resizeBy", &PageItem::resizeBy)
// TODO: Weird error
//.def("rotation", &PageItem::rotation)
.def("setRotation", &PageItem::setRotation)
.def("rotateBy", &PageItem::rotateBy)
.def("isSelected", &PageItem::isSelected)
.def("setSelected", &PageItem::setSelected)
.def("imageXScale", &PageItem::imageXScale)
.def("imageYScale", &PageItem::imageYScale)
.def("setImageXScale", &PageItem::setImageXScale)
.def("setImageYScale", &PageItem::setImageYScale)
.def("imageXOffset", &PageItem::imageXOffset)
.def("imageYOffset", &PageItem::imageYOffset)
 
.def("setImageYOffset", &PageItem::setImageYOffset)
.add_property("selected", &PageItem::isSelected, &PageItem::setSelected)
.add_property("imageXscale", &PageItem::imageXScale, &PageItem::setImageXScale)
.add_property("imageYscale", &PageItem::imageYScale, &PageItem::setImageYScale)
.add_property("imageXOffset", &PageItem::imageXOffset, &PageItem::setImageXOffset)
.add_property("imageYOffset", &PageItem::imageYOffset, &PageItem::setImageYOffset)
.def("moveImageXYOffsetBy", &PageItem::moveImageXYOffsetBy)
.def("reversed", &PageItem::reversed)
.def("setReversed", &PageItem::setReversed)
.add_property("reversed", &PageItem::reversed, &PageItem::setReversed)
// TODO: Weird error
//.def("cornerRadius", &PageItem::cornerRadius)
.def("setCornerRadius", &PageItem::setCornerRadius)
.def("textToFrameDistLeft", &PageItem::textToFrameDistLeft)
.def("textToFrameDistRight", &PageItem::textToFrameDistRight)
.def("textToFrameDistTop", &PageItem::textToFrameDistTop)
.def("textToFrameDistBottom", &PageItem::textToFrameDistBottom)
.def("setTextToFrameDistLeft", &PageItem::setTextToFrameDistLeft)
.def("setTextToFrameDistRight", &PageItem::setTextToFrameDistRight)
.def("setTextToFrameDistTop", &PageItem::setTextToFrameDistTop)
.def("setTextToFrameDistBottom", &PageItem::setTextToFrameDistBottom)
.add_property("textToFrameDistLeft", &PageItem::textToFrameDistLeft, &PageItem::setTextToFrameDistLeft)
.add_property("textToFrameDistRight", &PageItem::textToFrameDistRight, &PageItem::setTextToFrameDistRight)
.add_property("textToFrameDistTop", &PageItem::textToFrameDistTop, &PageItem::setTextToFrameDistTop)
.add_property("textToFrameDistBottom", &PageItem::textToFrameDistBottom, &PageItem::setTextToFrameDistBottom)
.def("setTextToFrameDist", &PageItem::setTextToFrameDist)
.def("itemName", &PageItem::itemName)
.def("setItemName", &PageItem::setItemName)
 
.def("fillColor", &PageItem::fillColor)
.def("setFillColor", &PageItem::setFillColor)
.def("fillShade", &PageItem::fillShade)
.def("setFillShade", &PageItem::setFillShade)
.def("fillTransparency", &PageItem::fillTransparency)
.def("setFillTransparency", &PageItem::setFillTransparency)
.def("lineColor", &PageItem::lineColor)
.def("setLineColor", &PageItem::setLineColor)
.def("lineShade", &PageItem::lineShade)
.def("setLineShade", &PageItem::setLineShade)
.def("lineTransparency", &PageItem::lineTransparency)
.def("setLineTransparency", &PageItem::setLineTransparency)
.def("setLineQColor", &PageItem::setLineQColor)
.def("setFillQColor", &PageItem::setFillQColor)
.add_property("itemName", &PageItem::itemName, &PageItem::setItemName)
.add_property("fillColor", &PageItem::fillColor, &PageItem::setFillColor)
.add_property("fillShade", &PageItem::fillShade, &PageItem::setFillShade)
.add_property("fillTransparency", &PageItem::fillTransparency, &PageItem::setFillTransparency)
.add_property("lineColor", &PageItem::lineColor, &PageItem::setLineColor)
.add_property("lineShade", &PageItem::lineShade, &PageItem::setLineShade)
.add_property("lineTransparency", &PageItem::lineTransparency, &PageItem::setLineTransparency)
.add_property("setLineQColor", &PageItem::setLineQColor, &PageItem::setFillQColor)
.def("lineStyle", &PageItem::lineStyle)
// TODO: weird error
//.def("setLineStyle", &PageItem::setLineStyle)
// TODO: weird error
//.def("lineWidth", &PageItem::lineWidth)
.def("setLineWidth", &PageItem::setLineWidth)
.def("lineEnd", &PageItem::lineEnd)
.def("setLineEnd", &PageItem::setLineEnd)
.def("lineJoin", &PageItem::lineJoin)
.def("setLineJoin", &PageItem::setLineJoin)
.def("customLineStyle", &PageItem::customLineStyle)
.def("setCustomLineStyle", &PageItem::setCustomLineStyle)
.def("startArrowIndex", &PageItem::startArrowIndex)
.def("setStartArrowIndex", &PageItem::setStartArrowIndex)
.def("endArrowIndex", &PageItem::endArrowIndex)
.def("setEndArrowIndex", &PageItem::setEndArrowIndex)
.def("imageFlippedH", &PageItem::imageFlippedH)
.def("setImageFlippedH", &PageItem::setImageFlippedH)
.add_property("lineEnd", &PageItem::lineEnd, &PageItem::setLineEnd)
.add_property("lineJoin", &PageItem::lineJoin, &PageItem::setLineJoin)
.add_property("customLineStyle", &PageItem::customLineStyle, &PageItem::setCustomLineStyle)
.add_property("startArrowIndex", &PageItem::startArrowIndex, &PageItem::setStartArrowIndex)
.add_property("endArrowIndex", &PageItem::endArrowIndex, &PageItem::setEndArrowIndex)
.add_property("imageFlippedH", &PageItem::imageFlippedH, &PageItem::setImageFlippedH)
.def("flipImageH", &PageItem::flipImageH)
.def("imageFlippedV", &PageItem::imageFlippedV)
.def("setImageFlippedV", &PageItem::setImageFlippedV)
.add_property("imageFlippedV", &PageItem::imageFlippedV, &PageItem::setImageFlippedV)
.def("flipImageV", &PageItem::flipImageV)
.def("setImageScalingMode", &PageItem::setImageScalingMode)
.def("toggleLock", &PageItem::toggleLock)
.def("locked", &PageItem::locked)
.def("setLocked", &PageItem::setLocked)
.add_property("locked", &PageItem::locked, &PageItem::setLocked)
.def("toggleSizeLock", &PageItem::toggleSizeLock)
.def("sizeLocked", &PageItem::sizeLocked)
.def("setSizeLocked", &PageItem::setSizeLocked)
.def("font", &PageItem::font)
.def("setFont", &PageItem::setFont)
.def("fontSize", &PageItem::fontSize)
.def("setFontSize", &PageItem::setFontSize)
.def("fontHeight", &PageItem::fontHeight)
.def("setFontHeight", &PageItem::setFontHeight)
.def("fontWidth", &PageItem::fontWidth)
.def("setFontWidth", &PageItem::setFontWidth)
.def("fontFillColor", &PageItem::fontFillColor)
.def("setFontFillColor", &PageItem::setFontFillColor)
.def("fontFillShade", &PageItem::fontFillShade)
.def("setFontFillShade", &PageItem::setFontFillShade)
.def("fontStrokeColor", &PageItem::fontStrokeColor)
.def("setFontStrokeColor", &PageItem::setFontStrokeColor)
.def("fontStrokeShade", &PageItem::fontStrokeShade)
.def("setFontStrokeShade", &PageItem::setFontStrokeShade)
.def("fontEffects", &PageItem::fontEffects)
.def("setFontEffects", &PageItem::setFontEffects)
.def("kerning", &PageItem::kerning)
.def("setKerning", &PageItem::setKerning)
.add_property("sizeLocked", &PageItem::sizeLocked, &PageItem::setSizeLocked)
.add_property("font", &PageItem::font, &PageItem::setFont)
.add_property("fontSize", &PageItem::fontSize, &PageItem::setFontSize)
.add_property("fontHeight", &PageItem::fontHeight, &PageItem::setFontHeight)
.add_property("fontWidth", &PageItem::fontWidth, &PageItem::setFontWidth)
.add_property("fontFillColor", &PageItem::fontFillColor, &PageItem::setFontFillColor)
.add_property("fontFillShade", &PageItem::fontFillShade, &PageItem::setFontFillShade)
.add_property("fontStrokeColor", &PageItem::fontStrokeColor, &PageItem::setFontStrokeColor)
.add_property("fontStrokeShade", &PageItem::fontStrokeShade, &PageItem::setFontStrokeShade)
.add_property("fontEffects", &PageItem::fontEffects, &PageItem::setFontEffects)
.add_property("kerning", &PageItem::kerning, &PageItem::setKerning)
// TODO: weird error
//.def("lineSpacing", &PageItem::lineSpacing)
.def("setLineSpacing", &PageItem::setLineSpacing)
.def("language", &PageItem::language)
.def("setLanguage", &PageItem::setLanguage)
.def("textFlowsAroundFrame", &PageItem::textFlowsAroundFrame)
.def("setTextFlowsAroundFrame", &PageItem::setTextFlowsAroundFrame)
.def("textFlowUsesBoundingBox", &PageItem::textFlowUsesBoundingBox)
.def("setTextFlowUsesBoundingBox", &PageItem::setTextFlowUsesBoundingBox)
.def("textFlowUsesContourLine", &PageItem::textFlowUsesContourLine)
.def("setTextFlowUsesContourLine", &PageItem::setTextFlowUsesContourLine)
.add_property("language", &PageItem::language, &PageItem::setLanguage)
.add_property("textFlowsAroundFrame", &PageItem::textFlowsAroundFrame, &PageItem::setTextFlowsAroundFrame)
.add_property("textFlowUsesBoundingBox", &PageItem::textFlowUsesBoundingBox, &PageItem::setTextFlowUsesBoundingBox)
.add_property("textFlowUsesContourLine", &PageItem::textFlowUsesContourLine, &PageItem::setTextFlowUsesContourLine)
.def("itemType", &PageItem::itemType)
.def("convertTo", &PageItem::convertTo)
.def("setLayer", &PageItem::setLayer)
.def("printable", &PageItem::printable)
.def("setPrintable", &PageItem::setPrintable)
.add_property("printable", &PageItem::printable, &PageItem::setPrintable)
.def("loadImage", &PageItem::loadImage)
.def("isAnnotation", &PageItem::isAnnotation)
.def("setIsAnnotation", &PageItem::setIsAnnotation)
.add_property("isAnnotation", &PageItem::isAnnotation, &PageItem::setIsAnnotation)
.def("annotation", &PageItem::annotation, return_internal_reference<>());
 
enum_<PageItem::ItemType>("ItemType")