Home
last modified time | relevance | path

Searched refs:doc (Results 1 – 25 of 446) sorted by relevance

12345678910>>...18

/trunk/test/odf-validate/fixtures/draw/
H A Dmake.py68 def done(doc): argument
70 KEEP.append(doc)
73 def save(doc, name): argument
75 …doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", CLIP[name.rspli…
156 def mk(doc, page, service, x=1000, y=1000, w=3000, h=2000, text=None, **props): argument
157 s = doc.createInstance("com.sun.star.drawing." + service)
184 def add_page(doc): argument
185 doc.DrawPages.insertNewByIndex(doc.DrawPages.Count)
186 return doc.DrawPages.getByIndex(doc.DrawPages.Count - 1)
190 doc = new("odp")
[all …]
/trunk/test/aoo-test/src/aootest_worker/fixtures/
H A Ddraw.py68 def done(doc): argument
70 KEEP.append(doc)
73 def save(doc, name): argument
75 …doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", CLIP[name.rspli…
156 def mk(doc, page, service, x=1000, y=1000, w=3000, h=2000, text=None, **props): argument
157 s = doc.createInstance("com.sun.star.drawing." + service)
184 def add_page(doc): argument
185 doc.DrawPages.insertNewByIndex(doc.DrawPages.Count)
186 return doc.DrawPages.getByIndex(doc.DrawPages.Count - 1)
190 doc = new("odp")
[all …]
H A Dstyles_gfx.py66 def save(doc, name, filt): argument
68 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", filt),))
111 def draw_tables(doc): argument
112 t = doc.createInstance("com.sun.star.drawing.DashTable")
119 t = doc.createInstance("com.sun.star.drawing.GradientTable")
127 t = doc.createInstance("com.sun.star.drawing.TransparencyGradientTable")
133 t = doc.createInstance("com.sun.star.drawing.HatchTable")
139 t = doc.createInstance("com.sun.star.drawing.BitmapTable")
143 def mkstyle(doc, family, name, parent=None, service=None, **props): argument
144 fam = doc.StyleFamilies.getByName(family)
[all …]
H A Dcalc.py45 def save(doc, name, filt="calc8"): argument
47 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", filt),))
98 doc = new()
99 sh = doc.Sheets.getByIndex(0)
113 if save(doc, name):
115 doc.close(True)
198 doc = new()
200 doc.Sheets.insertNewByName("Sh%d" % (i + 1), i)
201 return doc
215 def add_db(doc, i, name, rows=12): argument
[all …]
H A Dwriter.py42 def save(doc, name, filt=ODT): argument
46 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", filt),))
62 def __init__(self, doc): argument
63 self.doc = doc
64 self.text = doc.Text
77 o = self.doc.createInstance(service)
105 def numfmt(doc, fmt, lang="en", country="US"): argument
106 nf = doc.NumberFormats
115 doc = new()
116 w = W(doc)
[all …]
H A Ddoctypes.py35 def save(doc, name, filt): argument
37 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", filt),))
44 def writer_body(doc, text): argument
45 c = doc.Text.createTextCursor()
46 doc.Text.insertString(c, text, False)
49 def calc_body(doc): argument
50 sh = doc.Sheets.getByIndex(0)
57 def draw_body(doc): argument
58 page = doc.DrawPages.getByIndex(0)
59 shape = doc.createInstance("com.sun.star.drawing.RectangleShape")
[all …]
H A Dmake_drawings.py44 def shape(doc, page, kind, x, y, w, h, **props): argument
45 s = doc.createInstance("com.sun.star.drawing." + kind)
54 def d01(doc): argument
55 p = doc.DrawPages.getByIndex(0)
56 …shape(doc, p, "RectangleShape", 1000, 1000, 5000, 3000, FillColor=0xCC3333, LineColor=0x000000, Li…
57 …shape(doc, p, "EllipseShape", 7000, 1000, 4000, 3000, FillColor=0x3366CC, LineStyle=E("com.sun.sta…
58 shape(doc, p, "LineShape", 1000, 5000, 10000, 0, LineColor=0x00AA00, LineWidth=250)
59 shape(doc, p, "RectangleShape", 1000, 6000, 3000, 2000, CornerRadius=500, FillColor=0xFFCC00)
62 def d02(doc): argument
63 p = doc.DrawPages.getByIndex(0)
[all …]
H A Dleak.py47 def save(doc, path, filt): argument
48 doc.storeToURL(URL(path), (pv("FilterName", filt),))
82 doc = new("private:factory/swriter")
84 text = doc.Text
89 f = doc.createInstance("com.sun.star.text.TextField." + svc)
101 fn = doc.createInstance("com.sun.star.text.Footnote")
104 fs = doc.FootnoteSettings
107 save(doc, os.path.join(out, "writer-fields.odt"), "writer8")
109 doc.close(True)
115 doc = new("private:factory/swriter")
[all …]
H A Dstyles_text.py43 def save(doc, name, filt): argument
45 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", filt),))
109 doc = reload(name)
110 fam = doc.StyleFamilies.getByName(family)
132 doc.close(True)
139 self.doc = new("private:factory/swriter")
147 …s = self.doc.createInstance("com.sun.star.style.%s" % ("CharacterStyle" if family == "CharacterSty…
148 self.doc.StyleFamilies.getByName(family).insertByName(name, s)
165 t = self.doc.Text
180 return self.doc
[all …]
/trunk/test/aoo-test/src/aootest_worker/ops/
H A Dgenerate.py51 …doc = core._desktop().loadComponentFromURL("private:factory/" + kind, "_blank", 0, (pv("Hidden", T…
52 if doc is None:
54 return doc
57 def _save(doc, outdir, name, flt): argument
59 … doc.storeToURL(uno.systemPathToFileUrl(os.path.join(outdir, name)), (pv("FilterName", flt),))
61 core._close(doc)
70 doc = _new("swriter")
97 ps = doc.StyleFamilies.getByName("PageStyles")
101 s = doc.createInstance("com.sun.star.style.PageStyle")
108 text = doc.Text
[all …]
H A Ddump.py50 def has(doc, s): return tryf(lambda: doc.supportsService(s), False) argument
97 def docprops(doc): argument
98 p = doc.DocumentProperties
103 def basic(doc): argument
106 out[k] = tryf(lambda: sorted(getattr(doc, k).ElementNames), "n/a")
109 def writer(doc): argument
111 txt = doc.Text.String
114 e = doc.Text.createEnumeration(); tbl = 0; port_hash = []
131 ps = doc.StyleFamilies.getByName("PageStyles")
136 pa = doc.StyleFamilies.getByName("ParagraphStyles")
[all …]
H A Dencrypted.py53 def _pic(doc, page, url, x, y): argument
54 g = doc.createInstance("com.sun.star.drawing.GraphicObjectShape")
61 def _shape(doc, page, svc, x, y, w, h, text=None): argument
62 s = doc.createInstance("com.sun.star.drawing." + svc)
71 def _writer(doc, img, objects): argument
72 text = doc.Text
77 g = doc.createInstance("com.sun.star.text.TextGraphicObject")
84 o = doc.createInstance("com.sun.star.text.TextEmbeddedObject")
93 def _calc(doc, img, objects): argument
94 sh = doc.Sheets.getByIndex(0)
[all …]
/trunk/test/odf-validate/fixtures/styles-gfx/
H A Dmake.py66 def save(doc, name, filt): argument
68 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", filt),))
111 def draw_tables(doc): argument
112 t = doc.createInstance("com.sun.star.drawing.DashTable")
119 t = doc.createInstance("com.sun.star.drawing.GradientTable")
127 t = doc.createInstance("com.sun.star.drawing.TransparencyGradientTable")
133 t = doc.createInstance("com.sun.star.drawing.HatchTable")
139 t = doc.createInstance("com.sun.star.drawing.BitmapTable")
143 def mkstyle(doc, family, name, parent=None, service=None, **props): argument
144 fam = doc.StyleFamilies.getByName(family)
[all …]
/trunk/test/odf-validate/fixtures/calc/
H A Dmake.py45 def save(doc, name, filt="calc8"): argument
47 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", filt),))
98 doc = new()
99 sh = doc.Sheets.getByIndex(0)
113 if save(doc, name):
115 doc.close(True)
198 doc = new()
200 doc.Sheets.insertNewByName("Sh%d" % (i + 1), i)
201 return doc
215 def add_db(doc, i, name, rows=12): argument
[all …]
/trunk/test/odf-validate/fixtures/writer/
H A Dmake.py42 def save(doc, name, filt=ODT): argument
46 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", filt),))
62 def __init__(self, doc): argument
63 self.doc = doc
64 self.text = doc.Text
77 o = self.doc.createInstance(service)
105 def numfmt(doc, fmt, lang="en", country="US"): argument
106 nf = doc.NumberFormats
115 doc = new()
116 w = W(doc)
[all …]
/trunk/test/odf-validate/fixtures/doctypes/
H A Dmake.py35 def save(doc, name, filt): argument
37 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", filt),))
44 def writer_body(doc, text): argument
45 c = doc.Text.createTextCursor()
46 doc.Text.insertString(c, text, False)
49 def calc_body(doc): argument
50 sh = doc.Sheets.getByIndex(0)
57 def draw_body(doc): argument
58 page = doc.DrawPages.getByIndex(0)
59 shape = doc.createInstance("com.sun.star.drawing.RectangleShape")
[all …]
/trunk/test/odf-validate/fixtures/p8/
H A Dmake_drawings.py44 def shape(doc, page, kind, x, y, w, h, **props): argument
45 s = doc.createInstance("com.sun.star.drawing." + kind)
54 def d01(doc): argument
55 p = doc.DrawPages.getByIndex(0)
56 …shape(doc, p, "RectangleShape", 1000, 1000, 5000, 3000, FillColor=0xCC3333, LineColor=0x000000, Li…
57 …shape(doc, p, "EllipseShape", 7000, 1000, 4000, 3000, FillColor=0x3366CC, LineStyle=E("com.sun.sta…
58 shape(doc, p, "LineShape", 1000, 5000, 10000, 0, LineColor=0x00AA00, LineWidth=250)
59 shape(doc, p, "RectangleShape", 1000, 6000, 3000, 2000, CornerRadius=500, FillColor=0xFFCC00)
62 def d02(doc): argument
63 p = doc.DrawPages.getByIndex(0)
[all …]
/trunk/test/odf-validate/fixtures/leak/
H A Dmake.py47 def save(doc, path, filt): argument
48 doc.storeToURL(URL(path), (pv("FilterName", filt),))
82 doc = new("private:factory/swriter")
84 text = doc.Text
89 f = doc.createInstance("com.sun.star.text.TextField." + svc)
101 fn = doc.createInstance("com.sun.star.text.Footnote")
104 fs = doc.FootnoteSettings
107 save(doc, os.path.join(out, "writer-fields.odt"), "writer8")
109 doc.close(True)
115 doc = new("private:factory/swriter")
[all …]
/trunk/test/odf-validate/fixtures/t13/
H A Dmake.py40 def save(doc, name, filt): argument
42 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", filt),))
61 def ensure_sheets(doc, n): argument
62 sheets = doc.Sheets
70 def put_text(doc, cur, s): argument
71 doc.Text.insertString(cur, s, False)
74 def put_field(doc, cur, kind, **props): argument
75 f = doc.createInstance("com.sun.star.text.TextField." + kind)
78 doc.Text.insertTextContent(cur, f, False)
83 doc = new("private:factory/swriter")
[all …]
/trunk/test/odf-validate/fixtures/styles-text/
H A Dmake.py43 def save(doc, name, filt): argument
45 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(out, name)), (pv("FilterName", filt),))
109 doc = reload(name)
110 fam = doc.StyleFamilies.getByName(family)
132 doc.close(True)
139 self.doc = new("private:factory/swriter")
147 …s = self.doc.createInstance("com.sun.star.style.%s" % ("CharacterStyle" if family == "CharacterSty…
148 self.doc.StyleFamilies.getByName(family).insertByName(name, s)
165 t = self.doc.Text
180 return self.doc
[all …]
/trunk/test/odf-validate/
H A Ddump7.py26 def has(doc, s): return tryf(lambda: doc.supportsService(s), False) argument
73 def docprops(doc): argument
74 p = doc.DocumentProperties
79 def basic(doc): argument
82 out[k] = tryf(lambda: sorted(getattr(doc, k).ElementNames), "n/a")
85 def writer(doc): argument
87 txt = doc.Text.String
90 e = doc.Text.createEnumeration(); tbl = 0; port_hash = []
107 ps = doc.StyleFamilies.getByName("PageStyles")
112 pa = doc.StyleFamilies.getByName("ParagraphStyles")
[all …]
H A Ddump14.py91 def styles(doc, family): argument
95 fam = doc.StyleFamilies.getByName(family)
116 def writer(doc): argument
118 e = doc.Text.createEnumeration()
123 for n in doc.TextFrames.ElementNames[:30]:
124 o["frames"][n] = allprops(doc.TextFrames.getByName(n))
125 o["shapes"] = shapes(doc.DrawPage)
126 o["parastyles"] = styles(doc, "ParagraphStyles")
127 o["framestyles"] = styles(doc, "FrameStyles")
128 o["pagestyles"] = styles(doc, "PageStyles")
[all …]
/trunk/main/sfx2/
H A DLibrary_sfx.mk172 sfx2/source/doc/DocumentMetadataAccess \
173 sfx2/source/doc/Metadatable \
174 sfx2/source/doc/QuerySaveDocument \
175 sfx2/source/doc/SfxDocumentMetaData \
176 sfx2/source/doc/docfac \
177 sfx2/source/doc/docfile \
178 sfx2/source/doc/docfilt \
179 sfx2/source/doc/docinf \
180 sfx2/source/doc/docinsert \
181 sfx2/source/doc/docmacromode \
[all …]
/trunk/test/odf-validate/fixtures/fill-others/
H A Dmake.py22 def save(doc, name, flt): argument
23 doc.storeToURL(uno.systemPathToFileUrl(os.path.join(outdir, name)), (pv("FilterName", flt),))
24 doc.close(True)
26 def shape(doc, page, x, y, kind, text, fillkind): argument
27 s = doc.createInstance(kind)
38 doc = new("swriter") variable
39 text = doc.Text
42 fr = doc.createInstance("com.sun.star.text.TextFrame")
50 tbl = doc.createInstance("com.sun.star.text.TextTable")
56 sec = doc.createInstance("com.sun.star.text.TextSection")
[all …]
/trunk/test/odf-validate/fixtures/encrypted/
H A Dmake.py69 def pic(doc, page, url, x, y): argument
70 g = doc.createInstance("com.sun.star.drawing.GraphicObjectShape")
77 def shape(doc, page, svc, x, y, w, h, text=None): argument
78 s = doc.createInstance("com.sun.star.drawing." + svc)
87 def writer(doc, img, objects): argument
88 text = doc.Text
93 g = doc.createInstance("com.sun.star.text.TextGraphicObject")
100 o = doc.createInstance("com.sun.star.text.TextEmbeddedObject")
109 def calc(doc, img, objects): argument
110 sh = doc.Sheets.getByIndex(0)
[all …]

12345678910>>...18