LibreOffice Module librelogo (master) 1
Classes | Functions | Variables
LibreLogo Namespace Reference

Classes

class  __Doc__
 
class  LogoProgram
 

Functions

def __trace__ ()
 
def __l12n__ (lng)
 
def __getprop__ (name, value)
 
def __gendots__ (n)
 
def __getdocument__ ()
 
def Input (s)
 
def __string__ (s, decimal=None)
 
def Print (s)
 
def MessageBox (parent, message, title, msgtype="messbox", buttons=__OK__)
 
def Random (r)
 
def to_ascii (s)
 
def to_unicode (s)
 
def __locname__ (name, l=-1)
 
def __getcursor__ (fulltext)
 
def __translate__ (arg=None)
 
def __get_time__ ()
 
def __is_alive__ ()
 
def __encodestring__ (m)
 
def __encodecomment__ (m)
 
def __decodestring__ (m)
 
def __decodestring2__ (m)
 
def __decodecomment__ (m)
 
def __initialize__ ()
 
def pagesize (n=-1)
 
def turtlehome ()
 
def __pen__ (n)
 
def __visible__ (shape, visible=-1)
 
def hideturtle ()
 
def showturtle ()
 
def left (arg=None)
 
def right (arg=None)
 
def goforward (arg=None)
 
def gobackward (arg=None)
 
def commandline (arg=None, arg2=None)
 
def __setlang__ ()
 
def run (arg=None, arg2=-1)
 
def __unlock__ (all_levels)
 
def stop (arg=None)
 
def home (arg=None)
 
def clearscreen (arg=None)
 
def __checkhalt__ ()
 
def __cs__ (select=True)
 
def __dispatcher__ (s, properties=(), doc=0)
 
def __getshape__ (shapename)
 
def __angle__ (deg)
 
def turnleft (deg)
 
def turnright (deg)
 
def heading (deg=-1, go=False)
 
def rotate (shapename, deg)
 
def forward (n)
 
def backward (n)
 
def __dots__ (n, pos, dx, dy, r=-1, q=0)
 
def __draw__ (d, count=True)
 
def __zoom__ ()
 
def __lefthang__ (shape)
 
def __go__ (shapename, n, dot=False, preciseAngle=-1)
 
def __fillit__ (filled=True)
 
def point ()
 
def __boxshape__ (shapetype, l)
 
def ellipse (l)
 
def rectangle (l)
 
def label (st)
 
def __get_HTML_format__ (orig_st)
 
def text (shape, orig_st)
 
def sleep (t)
 
def __removeshape__ (shapename)
 
def __fontweight__ (w)
 
def __fontstyle__ (w)
 
def __color__ (c)
 
def __linestyle__ (s)
 
def fillstyle (s)
 
def __splitcolor__ (c, shape=None, angle=None)
 
def __componentcolor__ (c)
 
def pencolor (n=-1)
 
def pensize (n=-1)
 
def penstyle (n=-1)
 
def penjoint (n=-1)
 
def pencap (n=-1)
 
def fillcolor (n=-1)
 
def filltransparency (n=-1)
 
def pentransparency (n=-1)
 
def fontcolor (n=-1)
 
def fonttransparency (n=-1)
 
def position (n=-1)
 
def __groupstart__ (name="")
 
def create_svg_animation (m)
 
def create_valid_svg_file (filename)
 
def __groupend__ (name="")
 
def __int__ (x)
 
def __float__ (x)
 
def fontheight (n=-1)
 
def fontweight (n=-1)
 
def fontfamily (s=-1)
 
def fontstyle (n=-1)
 
def __loadlang__ (lang, a)
 
def __concatenation__ (r)
 
def __l2p__ (i, par, insub, inarray)
 
def __compil__ (s)
 
def __gotoline__ (n)
 

Variables

dictionary __lng__ = {}
 
 __lngpath__ = re.sub(r"^vnd.sun.star.pathname:(.*)program(/|\\‍)fundamental([.]ini|rc)$", "\\1", urebootstrap)
 
string __translang__ = "am|ca|cs|de|dk|el|en|eo|es|et|fr|hu|it|ja|nl|no|pl|pt|ru|se|sl"
 
dictionary __docs__ = {}
 
 __prevcode__ = None
 
 __prevlang__ = None
 
 __prevcompiledcode__ = None
 
 __thread__ = None
 
 __lock__ = threading.Lock()
 
bool __halt__ = False
 
string __compiled__ = ""
 
int __group__ = 0
 
list __groupstack__ = []
 
int __grouplefthang__ = 0
 
dictionary __comp__ = {}
 
list __strings__ = []
 
dictionary __colors__ = {}
 
list __COLORS__ = ['BLACK', 0x000000], ['SILVER', 0xc0c0c0], ['GRAY', 0x808080], \
 
list __NORMCOLORS__
 
list __STRCONST__ = [i[0] for i in __COLORS__] + ['NONE', 'BEVEL', 'MITER', 'ROUNDED', 'SOLID', 'DASH', 'DOTTED', 'BOLD', 'ITALIC', 'UPRIGHT', 'NORMAL', "HOUR", "PT", "INCH", "MM", "CM"]
 
int __SLEEP_SLICE_IN_MILLISECONDS__ = 500
 
int __PT_TO_TWIP__ = 20
 
int __MM_TO_PT__ = 1/(25.4/72)
 
int __MM10_TO_TWIP__ = 1/(2540.0/72/20)
 
int __FILLCOLOR__ = 0x8000cc00
 
float __LINEWIDTH__ = 0.5 * __PT_TO_TWIP__
 
string __ENCODED_STRING__ = "_s_%s___"
 
string __ENCODED_COMMENT__ = "_c_%s___"
 
string __DECODE_STRING_REGEX__ = "_s_([0-9]+)___"
 
string __DECODE_COMMENT_REGEX__ = "_c_([0-9]+)___"
 
string __LINEBREAK__ = "#_@L_i_N_e@_#"
 
string __TURTLE__ = "turtle"
 
string __ACTUAL__ = "actual"
 
string __BASEFONTFAMILY__ = "Linux Biolinum G"
 
int __LineStyle_DOTTED__ = 2
 
 __match_fontfeatures__
 
dictionary __match_localized_colors__ = {}
 
list __match_tags__ = [re.compile(i, re.IGNORECASE) for i in [r'<(b|strong)>', r'</(b|strong)>', r'<(i|em)>', r'</(i|em)>', '<u>', '</u>', r'<(s|del)>', r'</(s|del)>', '<sup>', '</sup>', '<sub>', '</sub>', r'<(fontcolor) ([^<>]*)>', r'</(fontcolor)>', r'<(fillcolor) ([^<>]*)>', r'</(fillcolor)>', r'<(fontfamily) ([^<>]*)>', r'</(fontfamily)>', r'<(fontfeature) ([^<>]*)>', r'</(fontfeature) ?([^<>]*)>', r'<(fontheight) ([^<>]*)>', r'</(fontheight)>']]
 
 __uilocale__ = uno.getComponentContext().getValueByName("/singletons/com.sun.star.configuration.theDefaultProvider").\
 
 __bezierdot__ = __Bezier__()
 
 Coordinates
 
 Flags
 
list __TURTLESHAPE__
 
def g_exportedScripts = left, right, goforward, gobackward, run, stop, home, clearscreen, commandline, __translate__
 
dictionary __lng_fallback__
 

Function Documentation

◆ __angle__()

def LibreLogo.__angle__ (   deg)

Definition at line 936 of file LibreLogo.py.

Referenced by turnleft(), and turnright().

◆ __boxshape__()

def LibreLogo.__boxshape__ (   shapetype,
  l 
)

◆ __checkhalt__()

def LibreLogo.__checkhalt__ ( )

Definition at line 898 of file LibreLogo.py.

Referenced by __fillit__(), Input(), Print(), and sleep().

◆ __color__()

def LibreLogo.__color__ (   c)

Definition at line 1538 of file LibreLogo.py.

References __color__(), and __componentcolor__().

Referenced by __color__(), fillcolor(), fillstyle(), fontcolor(), pencolor(), and text().

◆ __compil__()

def LibreLogo.__compil__ (   s)

Definition at line 2088 of file LibreLogo.py.

References __l12n__(), __l2p__(), __loadlang__(), __trace__(), and to_ascii().

Referenced by run().

◆ __componentcolor__()

def LibreLogo.__componentcolor__ (   c)

Definition at line 1613 of file LibreLogo.py.

Referenced by __color__(), fillcolor(), fontcolor(), and pencolor().

◆ __concatenation__()

def LibreLogo.__concatenation__ (   r)

Definition at line 1998 of file LibreLogo.py.

◆ __cs__()

def LibreLogo.__cs__ (   select = True)

Definition at line 905 of file LibreLogo.py.

References __dispatcher__(), __getshape__(), and __visible__().

Referenced by clearscreen().

◆ __decodecomment__()

def LibreLogo.__decodecomment__ (   m)

Definition at line 616 of file LibreLogo.py.

◆ __decodestring2__()

def LibreLogo.__decodestring2__ (   m)

Definition at line 613 of file LibreLogo.py.

References __l12n__().

◆ __decodestring__()

def LibreLogo.__decodestring__ (   m)

Definition at line 610 of file LibreLogo.py.

◆ __dispatcher__()

def LibreLogo.__dispatcher__ (   s,
  properties = (),
  doc = 0 
)

◆ __dots__()

def LibreLogo.__dots__ (   n,
  pos,
  dx,
  dy,
  r = -1,
  q = 0 
)

Definition at line 1001 of file LibreLogo.py.

Referenced by __go__(), ellipse(), and rectangle().

◆ __draw__()

def LibreLogo.__draw__ (   d,
  count = True 
)

Definition at line 1015 of file LibreLogo.py.

References __visible__(), and __zoom__().

Referenced by __boxshape__(), __fillit__(), and __go__().

◆ __encodecomment__()

def LibreLogo.__encodecomment__ (   m)

Definition at line 606 of file LibreLogo.py.

◆ __encodestring__()

def LibreLogo.__encodestring__ (   m)

Definition at line 601 of file LibreLogo.py.

◆ __fillit__()

def LibreLogo.__fillit__ (   filled = True)

◆ __float__()

def LibreLogo.__float__ (   x)

Definition at line 1843 of file LibreLogo.py.

Referenced by __int__().

◆ __fontstyle__()

def LibreLogo.__fontstyle__ (   w)

Definition at line 1529 of file LibreLogo.py.

References __l12n__().

Referenced by text().

◆ __fontweight__()

def LibreLogo.__fontweight__ (   w)

Definition at line 1520 of file LibreLogo.py.

References __l12n__().

Referenced by text().

◆ __gendots__()

def LibreLogo.__gendots__ (   n)

Definition at line 251 of file LibreLogo.py.

◆ __get_HTML_format__()

def LibreLogo.__get_HTML_format__ (   orig_st)

Definition at line 1321 of file LibreLogo.py.

References __l12n__().

Referenced by text().

◆ __get_time__()

def LibreLogo.__get_time__ ( )

Definition at line 484 of file LibreLogo.py.

◆ __getcursor__()

def LibreLogo.__getcursor__ (   fulltext)

Definition at line 398 of file LibreLogo.py.

Referenced by __translate__(), clearscreen(), and run().

◆ __getdocument__()

def LibreLogo.__getdocument__ ( )

Definition at line 263 of file LibreLogo.py.

Referenced by __initialize__(), __translate__(), clearscreen(), home(), and run().

◆ __getprop__()

def LibreLogo.__getprop__ (   name,
  value 
)

Definition at line 242 of file LibreLogo.py.

Referenced by __groupend__(), and __translate__().

◆ __getshape__()

def LibreLogo.__getshape__ (   shapename)

◆ __go__()

def LibreLogo.__go__ (   shapename,
  n,
  dot = False,
  preciseAngle = -1 
)

◆ __gotoline__()

def LibreLogo.__gotoline__ (   n)

Definition at line 2255 of file LibreLogo.py.

References __dispatcher__().

Referenced by LibreLogo.LogoProgram.run().

◆ __groupend__()

def LibreLogo.__groupend__ (   name = "")

◆ __groupstart__()

def LibreLogo.__groupstart__ (   name = "")

Definition at line 1740 of file LibreLogo.py.

References __removeshape__(), and uno.getComponentContext().

Referenced by ellipse(), and rectangle().

◆ __initialize__()

def LibreLogo.__initialize__ ( )

◆ __int__()

def LibreLogo.__int__ (   x)

Definition at line 1838 of file LibreLogo.py.

References __float__().

◆ __is_alive__()

def LibreLogo.__is_alive__ ( )

Definition at line 598 of file LibreLogo.py.

◆ __l12n__()

def LibreLogo.__l12n__ (   lng)

◆ __l2p__()

def LibreLogo.__l2p__ (   i,
  par,
  insub,
  inarray 
)

Definition at line 2010 of file LibreLogo.py.

References __l2p__().

Referenced by __compil__(), and __l2p__().

◆ __lefthang__()

def LibreLogo.__lefthang__ (   shape)

Definition at line 1038 of file LibreLogo.py.

Referenced by __boxshape__(), and __go__().

◆ __linestyle__()

def LibreLogo.__linestyle__ (   s)

Definition at line 1572 of file LibreLogo.py.

Referenced by __boxshape__(), __fillit__(), and __go__().

◆ __loadlang__()

def LibreLogo.__loadlang__ (   lang,
  a 
)

Definition at line 1876 of file LibreLogo.py.

Referenced by __compil__().

◆ __locname__()

def LibreLogo.__locname__ (   name,
  l = -1 
)

Definition at line 390 of file LibreLogo.py.

References __l12n__(), and to_unicode().

Referenced by __string__(), pencap(), penjoint(), penstyle(), and LibreLogo.LogoProgram.run().

◆ __pen__()

def LibreLogo.__pen__ (   n)

Definition at line 680 of file LibreLogo.py.

References __getshape__().

Referenced by __fillit__(), and __initialize__().

◆ __removeshape__()

def LibreLogo.__removeshape__ (   shapename)

Definition at line 1514 of file LibreLogo.py.

Referenced by __boxshape__(), __fillit__(), __go__(), __groupend__(), __groupstart__(), home(), and sleep().

◆ __setlang__()

def LibreLogo.__setlang__ ( )

Definition at line 776 of file LibreLogo.py.

References __l12n__().

Referenced by __translate__(), and run().

◆ __splitcolor__()

def LibreLogo.__splitcolor__ (   c,
  shape = None,
  angle = None 
)

◆ __string__()

def LibreLogo.__string__ (   s,
  decimal = None 
)

Definition at line 335 of file LibreLogo.py.

References __locname__().

Referenced by Print(), and text().

◆ __trace__()

def LibreLogo.__trace__ ( )

Definition at line 15 of file LibreLogo.py.

Referenced by __compil__(), __l12n__(), Input(), run(), and LibreLogo.LogoProgram.run().

◆ __translate__()

def LibreLogo.__translate__ (   arg = None)

◆ __unlock__()

def LibreLogo.__unlock__ (   all_levels)

Definition at line 845 of file LibreLogo.py.

References hideturtle(), and showturtle().

Referenced by LibreLogo.LogoProgram.run(), sleep(), and stop().

◆ __visible__()

def LibreLogo.__visible__ (   shape,
  visible = -1 
)

◆ __zoom__()

def LibreLogo.__zoom__ ( )

Definition at line 1031 of file LibreLogo.py.

Referenced by __draw__().

◆ backward()

def LibreLogo.backward (   n)

Definition at line 994 of file LibreLogo.py.

References __go__(), forward(), and turnright().

Referenced by gobackward().

◆ clearscreen()

def LibreLogo.clearscreen (   arg = None)

◆ commandline()

def LibreLogo.commandline (   arg = None,
  arg2 = None 
)

Definition at line 773 of file LibreLogo.py.

References run().

◆ create_svg_animation()

def LibreLogo.create_svg_animation (   m)

Definition at line 1753 of file LibreLogo.py.

◆ create_valid_svg_file()

def LibreLogo.create_valid_svg_file (   filename)

Definition at line 1764 of file LibreLogo.py.

Referenced by __groupend__().

◆ ellipse()

def LibreLogo.ellipse (   l)

Definition at line 1240 of file LibreLogo.py.

References __boxshape__(), __dots__(), __getshape__(), __groupend__(), __groupstart__(), ellipse(), and point().

Referenced by ellipse().

◆ fillcolor()

def LibreLogo.fillcolor (   n = -1)

◆ fillstyle()

def LibreLogo.fillstyle (   s)

Definition at line 1583 of file LibreLogo.py.

References __color__(), __splitcolor__(), and fillstyle().

Referenced by fillstyle().

◆ filltransparency()

def LibreLogo.filltransparency (   n = -1)

Definition at line 1690 of file LibreLogo.py.

References fillcolor().

◆ fontcolor()

def LibreLogo.fontcolor (   n = -1)

Definition at line 1712 of file LibreLogo.py.

References __color__(), and __componentcolor__().

Referenced by fonttransparency().

◆ fontfamily()

def LibreLogo.fontfamily (   s = -1)

Definition at line 1862 of file LibreLogo.py.

◆ fontheight()

def LibreLogo.fontheight (   n = -1)

Definition at line 1850 of file LibreLogo.py.

◆ fontstyle()

def LibreLogo.fontstyle (   n = -1)

Definition at line 1870 of file LibreLogo.py.

◆ fonttransparency()

def LibreLogo.fonttransparency (   n = -1)

Definition at line 1718 of file LibreLogo.py.

References fontcolor().

◆ fontweight()

def LibreLogo.fontweight (   n = -1)

Definition at line 1856 of file LibreLogo.py.

◆ forward()

def LibreLogo.forward (   n)

Definition at line 974 of file LibreLogo.py.

References __getshape__(), __go__(), heading(), label(), and position().

Referenced by backward(), and goforward().

◆ gobackward()

def LibreLogo.gobackward (   arg = None)

Definition at line 763 of file LibreLogo.py.

References __getshape__(), __initialize__(), backward(), and uno.getComponentContext().

◆ goforward()

def LibreLogo.goforward (   arg = None)

Definition at line 753 of file LibreLogo.py.

References __getshape__(), __initialize__(), forward(), and uno.getComponentContext().

◆ heading()

def LibreLogo.heading (   deg = -1,
  go = False 
)

Definition at line 947 of file LibreLogo.py.

References __getshape__(), and __go__().

Referenced by __fillit__(), __splitcolor__(), forward(), label(), and position().

◆ hideturtle()

def LibreLogo.hideturtle ( )

Definition at line 701 of file LibreLogo.py.

References __dispatcher__(), __getshape__(), and __visible__().

Referenced by __unlock__(), and sleep().

◆ home()

def LibreLogo.home (   arg = None)

◆ Input()

def LibreLogo.Input (   s)

Definition at line 273 of file LibreLogo.py.

References __checkhalt__(), __trace__(), and uno.getComponentContext().

◆ label()

def LibreLogo.label (   st)

Definition at line 1292 of file LibreLogo.py.

References __getshape__(), heading(), position(), rectangle(), and text().

Referenced by forward().

◆ left()

def LibreLogo.left (   arg = None)

Definition at line 733 of file LibreLogo.py.

References __getshape__(), __initialize__(), uno.getComponentContext(), and rotate().

◆ MessageBox()

def LibreLogo.MessageBox (   parent,
  message,
  title,
  msgtype = "messbox",
  buttons = __OK__ 
)

Definition at line 361 of file LibreLogo.py.

Referenced by Print(), run(), and LibreLogo.LogoProgram.run().

◆ pagesize()

def LibreLogo.pagesize (   n = -1)

Definition at line 659 of file LibreLogo.py.

Referenced by position().

◆ pencap()

def LibreLogo.pencap (   n = -1)

Definition at line 1666 of file LibreLogo.py.

References __l12n__(), and __locname__().

◆ pencolor()

def LibreLogo.pencolor (   n = -1)

◆ penjoint()

def LibreLogo.penjoint (   n = -1)

Definition at line 1654 of file LibreLogo.py.

References __l12n__(), and __locname__().

◆ pensize()

def LibreLogo.pensize (   n = -1)

Definition at line 1628 of file LibreLogo.py.

References __getshape__(), and __visible__().

Referenced by showturtle().

◆ penstyle()

def LibreLogo.penstyle (   n = -1)

Definition at line 1639 of file LibreLogo.py.

References __l12n__(), and __locname__().

◆ pentransparency()

def LibreLogo.pentransparency (   n = -1)

Definition at line 1704 of file LibreLogo.py.

References pencolor().

◆ point()

def LibreLogo.point ( )

Definition at line 1187 of file LibreLogo.py.

References __go__(), and position().

Referenced by ellipse(), and rectangle().

◆ position()

def LibreLogo.position (   n = -1)

Definition at line 1726 of file LibreLogo.py.

References __getshape__(), heading(), and pagesize().

Referenced by __fillit__(), forward(), label(), and point().

◆ Print()

def LibreLogo.Print (   s)

Definition at line 353 of file LibreLogo.py.

References __checkhalt__(), __string__(), and MessageBox().

◆ Random()

def LibreLogo.Random (   r)

Definition at line 378 of file LibreLogo.py.

◆ rectangle()

def LibreLogo.rectangle (   l)

Definition at line 1258 of file LibreLogo.py.

References __boxshape__(), __dots__(), __getshape__(), __groupend__(), __groupstart__(), point(), and rectangle().

Referenced by label(), and rectangle().

◆ right()

def LibreLogo.right (   arg = None)

Definition at line 743 of file LibreLogo.py.

References __getshape__(), __initialize__(), uno.getComponentContext(), and rotate().

◆ rotate()

def LibreLogo.rotate (   shapename,
  deg 
)

Definition at line 969 of file LibreLogo.py.

References __getshape__().

Referenced by left(), right(), turnleft(), and turnright().

◆ run()

def LibreLogo.run (   arg = None,
  arg2 = -1 
)

◆ showturtle()

def LibreLogo.showturtle ( )

Definition at line 715 of file LibreLogo.py.

References __getshape__(), __initialize__(), __visible__(), fillcolor(), pencolor(), and pensize().

Referenced by __unlock__().

◆ sleep()

def LibreLogo.sleep (   t)

◆ stop()

def LibreLogo.stop (   arg = None)

Definition at line 858 of file LibreLogo.py.

References __unlock__().

◆ text()

def LibreLogo.text (   shape,
  orig_st 
)

◆ to_ascii()

def LibreLogo.to_ascii (   s)

Definition at line 384 of file LibreLogo.py.

Referenced by __compil__().

◆ to_unicode()

def LibreLogo.to_unicode (   s)

Definition at line 387 of file LibreLogo.py.

Referenced by __locname__(), and LibreLogo.LogoProgram.run().

◆ turnleft()

def LibreLogo.turnleft (   deg)

Definition at line 941 of file LibreLogo.py.

References __angle__(), and rotate().

◆ turnright()

def LibreLogo.turnright (   deg)

Definition at line 944 of file LibreLogo.py.

References __angle__(), and rotate().

Referenced by backward().

◆ turtlehome()

def LibreLogo.turtlehome ( )

Definition at line 666 of file LibreLogo.py.

References __getshape__(), and __splitcolor__().

Referenced by __initialize__().

Variable Documentation

◆ __ACTUAL__

string LibreLogo.__ACTUAL__ = "actual"
private

Definition at line 134 of file LibreLogo.py.

◆ __BASEFONTFAMILY__

string LibreLogo.__BASEFONTFAMILY__ = "Linux Biolinum G"
private

Definition at line 135 of file LibreLogo.py.

◆ __bezierdot__

LibreLogo.__bezierdot__ = __Bezier__()
private

Definition at line 253 of file LibreLogo.py.

◆ __colors__

dictionary LibreLogo.__colors__ = {}
private

Definition at line 107 of file LibreLogo.py.

◆ __COLORS__

list LibreLogo.__COLORS__ = ['BLACK', 0x000000], ['SILVER', 0xc0c0c0], ['GRAY', 0x808080], \
private

Definition at line 108 of file LibreLogo.py.

◆ __comp__

dictionary LibreLogo.__comp__ = {}
private

Definition at line 105 of file LibreLogo.py.

◆ __compiled__

string LibreLogo.__compiled__ = ""
private

Definition at line 101 of file LibreLogo.py.

◆ __DECODE_COMMENT_REGEX__

string LibreLogo.__DECODE_COMMENT_REGEX__ = "_c_([0-9]+)___"
private

Definition at line 131 of file LibreLogo.py.

◆ __DECODE_STRING_REGEX__

string LibreLogo.__DECODE_STRING_REGEX__ = "_s_([0-9]+)___"
private

Definition at line 130 of file LibreLogo.py.

◆ __docs__

dictionary LibreLogo.__docs__ = {}
private

Definition at line 94 of file LibreLogo.py.

◆ __ENCODED_COMMENT__

string LibreLogo.__ENCODED_COMMENT__ = "_c_%s___"
private

Definition at line 129 of file LibreLogo.py.

◆ __ENCODED_STRING__

string LibreLogo.__ENCODED_STRING__ = "_s_%s___"
private

Definition at line 128 of file LibreLogo.py.

◆ __FILLCOLOR__

int LibreLogo.__FILLCOLOR__ = 0x8000cc00
private

Definition at line 126 of file LibreLogo.py.

◆ __group__

int LibreLogo.__group__ = 0
private

Definition at line 102 of file LibreLogo.py.

◆ __grouplefthang__

int LibreLogo.__grouplefthang__ = 0
private

Definition at line 104 of file LibreLogo.py.

◆ __groupstack__

list LibreLogo.__groupstack__ = []
private

Definition at line 103 of file LibreLogo.py.

◆ __halt__

bool LibreLogo.__halt__ = False
private

Definition at line 100 of file LibreLogo.py.

◆ __LINEBREAK__

string LibreLogo.__LINEBREAK__ = "#_@L_i_N_e@_#"
private

Definition at line 132 of file LibreLogo.py.

◆ __LineStyle_DOTTED__

int LibreLogo.__LineStyle_DOTTED__ = 2
private

Definition at line 136 of file LibreLogo.py.

◆ __LINEWIDTH__

float LibreLogo.__LINEWIDTH__ = 0.5 * __PT_TO_TWIP__
private

Definition at line 127 of file LibreLogo.py.

◆ __lng__

dictionary LibreLogo.__lng__ = {}
private

Definition at line 13 of file LibreLogo.py.

◆ __lng_fallback__

dictionary LibreLogo.__lng_fallback__
private

Definition at line 2269 of file LibreLogo.py.

◆ __lngpath__

string LibreLogo.__lngpath__ = re.sub(r"^vnd.sun.star.pathname:(.*)program(/|\\‍)fundamental([.]ini|rc)$", "\\1", urebootstrap)
private

Definition at line 85 of file LibreLogo.py.

◆ __lock__

LibreLogo.__lock__ = threading.Lock()
private

Definition at line 99 of file LibreLogo.py.

◆ __match_fontfeatures__

LibreLogo.__match_fontfeatures__
private
Initial value:
1= re.compile( r"(</?)("
2 # OpenType
3 "abvf|abvm|abvs|blwf|blwm|blws|pref|pres|psts|pstf|dist|akhn|haln|half|nukt|rkrf|rphf|vatu|cjct|cfar|"
4 "smpl|trad|tnam|expt|hojo|nlck|jp78|jp83|jp90|jp04|hngl|ljmo|tjmo|vjmo|fwid|hwid|halt|twid|qwid|pwid|palt|pkna|ruby|hkna|vkna|cpct|"
5 "curs|jalt|mset|rclt|rlig|isol|init|medi|med2|fina|fin2|fin3|falt|stch|"
6 "lnum|onum|pnum|tnum|frac|afrc|dnom|numr|sinf|zero|mgrk|flac|dtls|ssty|"
7 "smcp|c2sc|pcap|c2pc|unic|cpsp|case|ital|ordn|"
8 "valt|vhal|vpal|vert|vrt2|vrtr|vkrn|ltra|ltrm|rtla|rtlm"
9 "aalt|swsh|cswh|calt|hist|locl|rand|nalt|cv[0-9][0-9]|salt|ss[01][0-9]|ss20|subs|sups|titl|rvrn|clig|dlig|hlig|liga"
10 "ccmp|kern|mark|mkmk|opbd|lfbd|rtbd|"
11 # Linux Libertine G
12 "size|ornm|ingl|algn|arti|caps|circ|dash|dbls|foot|frsp|grkn|hang|itlc|ligc|minu|nfsp|para|quot|texm|thou|vari)((=.*)?>)", re.IGNORECASE )

Definition at line 141 of file LibreLogo.py.

◆ __match_localized_colors__

dictionary LibreLogo.__match_localized_colors__ = {}
private

Definition at line 154 of file LibreLogo.py.

◆ __match_tags__

list LibreLogo.__match_tags__ = [re.compile(i, re.IGNORECASE) for i in [r'<(b|strong)>', r'</(b|strong)>', r'<(i|em)>', r'</(i|em)>', '<u>', '</u>', r'<(s|del)>', r'</(s|del)>', '<sup>', '</sup>', '<sub>', '</sub>', r'<(fontcolor) ([^<>]*)>', r'</(fontcolor)>', r'<(fillcolor) ([^<>]*)>', r'</(fillcolor)>', r'<(fontfamily) ([^<>]*)>', r'</(fontfamily)>', r'<(fontfeature) ([^<>]*)>', r'</(fontfeature) ?([^<>]*)>', r'<(fontheight) ([^<>]*)>', r'</(fontheight)>']]
private

Definition at line 156 of file LibreLogo.py.

◆ __MM10_TO_TWIP__

int LibreLogo.__MM10_TO_TWIP__ = 1/(2540.0/72/20)
private

Definition at line 125 of file LibreLogo.py.

◆ __MM_TO_PT__

int LibreLogo.__MM_TO_PT__ = 1/(25.4/72)
private

Definition at line 124 of file LibreLogo.py.

◆ __NORMCOLORS__

list LibreLogo.__NORMCOLORS__
private
Initial value:
1= [[[255, 255, 0], 0, -11, 1, -11],
2 [[255, 128, 0], 1, 116, 1, -33], [[255, 0, 0], 1, 95, 2, 42],
3 [[255, 0, 255], 2, -213, 0, -106], [[0, 0, 255], 0, 148, 1, 127],
4 [[0, 255, 255], 1, -128, 2, -63], [[0, 255, 0], 2, 192, 0, 244]]

Definition at line 117 of file LibreLogo.py.

◆ __prevcode__

LibreLogo.__prevcode__ = None
private

Definition at line 95 of file LibreLogo.py.

◆ __prevcompiledcode__

LibreLogo.__prevcompiledcode__ = None
private

Definition at line 97 of file LibreLogo.py.

◆ __prevlang__

LibreLogo.__prevlang__ = None
private

Definition at line 96 of file LibreLogo.py.

◆ __PT_TO_TWIP__

int LibreLogo.__PT_TO_TWIP__ = 20
private

Definition at line 123 of file LibreLogo.py.

◆ __SLEEP_SLICE_IN_MILLISECONDS__

int LibreLogo.__SLEEP_SLICE_IN_MILLISECONDS__ = 500
private

Definition at line 122 of file LibreLogo.py.

◆ __STRCONST__

list LibreLogo.__STRCONST__ = [i[0] for i in __COLORS__] + ['NONE', 'BEVEL', 'MITER', 'ROUNDED', 'SOLID', 'DASH', 'DOTTED', 'BOLD', 'ITALIC', 'UPRIGHT', 'NORMAL', "HOUR", "PT", "INCH", "MM", "CM"]
private

Definition at line 121 of file LibreLogo.py.

◆ __strings__

list LibreLogo.__strings__ = []
private

Definition at line 106 of file LibreLogo.py.

◆ __thread__

LibreLogo.__thread__ = None
private

Definition at line 98 of file LibreLogo.py.

◆ __translang__

string LibreLogo.__translang__ = "am|ca|cs|de|dk|el|en|eo|es|et|fr|hu|it|ja|nl|no|pl|pt|ru|se|sl"
private

Definition at line 93 of file LibreLogo.py.

◆ __TURTLE__

string LibreLogo.__TURTLE__ = "turtle"
private

Definition at line 133 of file LibreLogo.py.

◆ __TURTLESHAPE__

list LibreLogo.__TURTLESHAPE__
private
Initial value:
1= [tuple([(__Point__(-120, 130), __Point__(-245, 347), __Point__(-291, 176), ), (__Point__(0, -500), __Point__(126, -375), __Point__(0, -250), __Point__(-124, -375), ), (__Point__(295, 170), __Point__(124, 124), __Point__(250, 340), ), (__Point__(466, -204), __Point__(224, -269), __Point__(71, -180), __Point__(313, -116), ), (__Point__(-75, -175), __Point__(-292, -300), __Point__(-417, -83), ), (__Point__(250, 0), __Point__(0, -250), __Point__(-250, 0), __Point__(0, 250), )] +
2 [(i,) for i in __gendots__(32)] + # single points for wider selection
3 [(__Point__(0, 0),)]), # last point for position handling
4 ((__Point__(0, 0),),)]
def __gendots__(n)
Definition: LibreLogo.py:251

Definition at line 258 of file LibreLogo.py.

◆ __uilocale__

LibreLogo.__uilocale__ = uno.getComponentContext().getValueByName("/singletons/com.sun.star.configuration.theDefaultProvider").\
private

Definition at line 246 of file LibreLogo.py.

◆ Coordinates

LibreLogo.Coordinates

Definition at line 254 of file LibreLogo.py.

◆ Flags

LibreLogo.Flags

Definition at line 255 of file LibreLogo.py.

◆ g_exportedScripts

def LibreLogo.g_exportedScripts = left, right, goforward, gobackward, run, stop, home, clearscreen, commandline, __translate__

Definition at line 2265 of file LibreLogo.py.