| /trunk/test/aoo-test/src/aootest_worker/ops/ |
| H A D | generate.py | 50 def _new(kind): argument 51 …doc = core._desktop().loadComponentFromURL("private:factory/" + kind, "_blank", 0, (pv("Hidden", T… 53 raise core.Fail("uno", "could not create a new %s document" % kind) 77 def fill(o, pre, kind, color=0xFFCC00): argument 78 if kind == "solid": 81 elif kind == "solid_transp": 85 elif kind == "gradient": 88 elif kind == "hatch": 93 elif kind == "bitmap": 122 def shape(doc, page, x, y, kind, text, fillkind): argument [all …]
|
| H A D | encrypted.py | 129 def make_encrypted(kind, dst, twin, password, with_objects=False): argument 132 if kind not in FILL: 133 raise core.Fail("bad_args", "unknown kind %r" % kind) 139 …doc = core._desktop().loadComponentFromURL("private:factory/" + FACTORY[kind], "_blank", 0, (pv("H… 141 raise core.Fail("uno", "could not create a new %s document" % kind) 143 FILL[kind](doc, img, with_objects and kind in ("odt", "ods")) 144 …(uno.systemPathToFileUrl(os.path.abspath(dst)), (pv("FilterName", FILTERS[kind]), pv("Password", p… 145 … doc.storeToURL(uno.systemPathToFileUrl(os.path.abspath(twin)), (pv("FilterName", FILTERS[kind]),))
|
| /trunk/test/odf-validate/fixtures/encrypted/ |
| H A D | make.py | 64 def new(kind): argument 65 url = {"odt": "swriter", "ods": "scalc", "odp": "simpress", "odg": "sdraw"}[kind] 154 def make(kind, suffix, img, objects, tag, encrypt=True, modify=False): argument 155 doc = new(kind) 156 FILL[kind](doc, img, objects) 157 name = "encrypted-%s%s.%s" % (tag, suffix, kind) 158 props = [pv("FilterName", FILTERS[kind])] 165 …toreToURL(uno.systemPathToFileUrl(os.path.join(twindir, name)), (pv("FilterName", FILTERS[kind]),)) 175 for kind in FILL if suffix in ("", "-aes") else ("odt",): 176 make(kind, suffix, None, False, TAG[kind]) [all …]
|
| /trunk/test/aoo-test/tests/odf/ |
| H A D | test_encrypted.py | 49 def get(mode, variant, kind, objects): argument 50 key = (mode, variant, kind, objects) 54 … d = work / ("%s-%s" % (mode, variant)) / ("%s%s" % (kind, "-objects" if objects else "")) 56 dst, twin = d / ("enc." + kind), d / ("plain." + kind) 57 …session.call("make_encrypted", {"kind": kind, "dst": str(dst), "twin": str(twin), "password": PASS… 74 …names_the_algorithms_of_the_setting(self, encrypted_runs, need_mode, mode, variant, kind, objects): argument 76 entries = encrypted_entries(encrypted_runs(mode, variant, kind, objects)["enc"]) 84 def test_right_password_decrypts(self, encrypted_runs, need_mode, mode, variant, kind, objects): argument 86 r = encrypted_runs(mode, variant, kind, objects) 90 …def test_wrong_password_is_rejected(self, encrypted_runs, need_mode, mode, variant, kind, objects): argument [all …]
|
| /trunk/main/qadevOOo/java/OOoRunner/src/main/java/util/ |
| H A D | SOfficeFactory.java | 372 public static XTextContent createIndex(XTextDocument xTextDoc, String kind) in createIndex() argument 378 Object oInt = oDocMSF.createInstance(kind); in createIndex() 420 public XShape createShape(XComponent oDoc, int height, int width, int x, int y, String kind) { in createShape() argument 423 ShapeDsc sDsc = new ShapeDsc(height, width, x, y, kind); in createShape() 435 public XDiagram createDiagram(XComponent oDoc, String kind) { in createDiagram() argument 443 oInterface = (XInterface) oDocMSF.createInstance("com.sun.star.chart." + kind); in createDiagram() 447 System.out.println("Couldn't create " + kind + "-Diagram " + e); in createDiagram() 455 public XInterface createControl(XComponent oDoc, String kind) { in createControl() argument 462 oControl = (XInterface) oDocMSF.createInstance("com.sun.star.form.component." + kind); in createControl() 465 System.out.println("Couldn't create instance " + kind + ": " + e); in createControl() [all …]
|
| H A D | FormTools.java | 65 int width, int x, int y, String kind ) { in createControlShape() argument 78 Object aCon = oDocMSF.createInstance("com.sun.star.form.component."+kind); in createControlShape() 81 model_props.setPropertyValue("DefaultControl","com.sun.star.form.control."+kind); in createControlShape() 101 int width, int x, int y, String kind, String defControl ) { in createUnoControlShape() argument 113 Object aCon = oDocMSF.createInstance("com.sun.star.form.component."+kind); in createUnoControlShape() 138 int width, int x, int y, String kind ) { in createControlShapeWithDefaultControl() argument 150 Object aCon = oDocMSF.createInstance("com.sun.star.form.component."+kind); in createControlShapeWithDefaultControl() 172 public static XInterface createControl( XComponent oDoc, String kind ) { in createControl() argument 181 "com.sun.star.form.component."+kind); in createControl() 184 System.out.println( "Couldn't create instance "+ kind + ": "+ e ); in createControl() [all …]
|
| /trunk/test/odf-validate/fixtures/para-fill/ |
| H A D | make.py | 26 def fill(o, kind): argument 27 if kind == "solid": 29 elif kind == "solid_fill": 31 elif kind == "solid_transp": 33 elif kind == "gradient": 35 elif kind == "hatch": 37 elif kind == "bitmap": 52 for kind in ("direct", "styled"): 53 text.insertString(cur, kind + " " + k, False) 55 labels.append((kind, k)) [all …]
|
| /trunk/test/aoo-test/tests/harness/ |
| H A D | test_install.py | 39 CASES = [pytest.param(kind, i, id="%s-form%d" % (kind, i)) for kind, forms in FORMS.items() for i i… 43 def test_every_way_of_pointing_at_an_install_finds_the_same_layout(fake, kind, form): argument 44 top = fake(kind) 45 lay = install.find_layout(FORMS[kind][form](top)) 46 assert lay.platform == kind 49 assert lay.version_file.name == ("version.ini" if kind == "windows" else "versionrc") 50 assert lay.fundamental.name == ("fundamental.ini" if kind == "windows" else "fundamentalrc") 51 assert lay.soffice.name == ("soffice.exe" if kind == "windows" else "soffice") 52 assert (lay.soffice.parent.name == "MacOS") == (kind == "macos") 54 assert lay.pyuno_module.name == ("pyuno.pyd" if kind == "windows" else "pyuno.so") [all …]
|
| /trunk/test/odf-validate/fixtures/para-fill-foreign/ |
| H A D | make-aoo.py | 26 def fill(o, kind): argument 27 if kind == "solid": 29 elif kind == "solid_transp": 31 elif kind == "gradient": 33 elif kind == "gradient_transp": 35 elif kind == "hatch": 37 elif kind == "hatch_nobg": 39 elif kind.startswith("bitmap"): 41 o.FillBitmapMode = {"bitmap_stretch": STRETCH, "bitmap_once": NO_REPEAT}.get(kind, REPEAT) 42 if kind == "bitmap_transp": [all …]
|
| H A D | gen.bas | 9 Sub Fill(o As Object, kind As String, png As String) 11 Select Case kind 34 If kind = "hatch" Then 43 If kind = "bitmap_stretch" Then 46 ElseIf kind = "bitmap_once" Then 53 If kind = "bitmap_transp" Then o.FillTransparence = 50
|
| /trunk/main/solenv/bin/ |
| H A D | throwspec.py | 222 yield dict(kind='UNBALANCED', kw=kw, start=s, end=mo.end(), 232 yield dict(kind='ODD_SAL_THROW', kw=kw, start=s, end=cl + 1, 237 yield dict(kind='ODD_SAL_THROW', kw=kw, start=s, end=cl + 1, 244 yield dict(kind='EMPTY', kw=kw, start=s, end=cl + 1, path=path, 261 kind = 'SPEC' if listish else 'ODD_SAL_THROW' 263 kind = 'STATEMENT' 265 kind = 'REVIEW_UNANCHORED' 267 kind = 'REVIEW_FOLLOWED_BY_EXPR' 269 kind = 'SPEC' 271 yield dict(kind=kind, kw=kw, start=s, end=cl + 1, path=path, line=line, [all …]
|
| /trunk/test/odf-validate/fixtures/page-fill-1_3/ |
| H A D | make-aoo.py | 24 def fill(o, pre, kind): argument 26 if kind == "solid": 28 elif kind == "solid_transp": 30 elif kind in ("gradient", "shared"): 32 elif kind == "gradient_transp": 34 elif kind == "gradient_tgrad": 40 elif kind in ("hatch", "hatch_nobg"): 43 if kind == "hatch": 47 elif kind.startswith("bitmap"): 49 …illBitmapMode", {"bitmap_tile": REPEAT, "bitmap_stretch": STRETCH, "bitmap_once": NO_REPEAT}[kind])
|
| /trunk/main/vcl/aqua/source/gdi/ |
| H A D | salnativewidgets.cxx | 510 aComboInfo.kind = kThemeComboBox; in drawNativeControl() 540 aThemeBackgroundInfo.kind = kThemeBrushDialogBackgroundActive; in drawNativeControl() 629 aPushInfo.kind = kThemeRoundedBevelButton; in drawNativeControl() 633 aPushInfo.kind = kThemePushButtonMini; in drawNativeControl() 638 aPushInfo.kind = kThemePushButtonNormal; in drawNativeControl() 653 aPushInfo.kind = kThemeBevelButton; in drawNativeControl() 681 … case CTRL_RADIOBUTTON: if(rc.size.width >= BUTTON_HEIGHT) aInfo.kind = kThemeRadioButton; in drawNativeControl() 682 else aInfo.kind = kThemeSmallRadioButton; in drawNativeControl() 684 case CTRL_CHECKBOX: if(rc.size.width >= BUTTON_HEIGHT) aInfo.kind = kThemeCheckBox; in drawNativeControl() 685 else aInfo.kind = kThemeSmallCheckBox; in drawNativeControl() [all …]
|
| /trunk/test/odf-validate/fixtures/t14/ |
| H A D | hf_fill.py | 59 def setup(st, kind, pre): argument 62 if kind == "HF_solid": 64 elif kind == "HF_gradient": 66 elif kind == "HF_hatch": 76 kind = line[1] 77 if kind == "SOLID": 79 elif kind == "GRADIENT": 82 elif kind == "HATCH": 85 elif kind == "BITMAP":
|
| /trunk/main/bridges/source/cpp_uno/s5abi_macosx_aarch64/ |
| H A D | abi.cxx | 170 HfaKind kind = HFA_NONE; in classifyAggregate() local 172 if ( collectHfa( pTypeRef, kind, count ) && kind != HFA_NONE && count >= 1 && count <= 4 ) in classifyAggregate() 291 HfaKind kind = HFA_NONE; in get_return_kind() local 293 if ( collectHfa( pTypeRef, kind, count ) && count >= 1 && count <= 4 ) in get_return_kind() 294 return kind == HFA_FLOAT ? RETURN_KIND_HFA_FLOAT : RETURN_KIND_HFA_DOUBLE; in get_return_kind() 316 HfaKind kind = HFA_NONE; in fill_struct() local 318 collectHfa( pTypeRef, kind, count ); in fill_struct() 319 if ( kind == HFA_FLOAT ) in fill_struct()
|
| /trunk/main/bridges/source/cpp_uno/gcc3_freebsd_aarch64/ |
| H A D | abi.cxx | 165 HfaKind kind = HFA_NONE; in classifyAggregate() local 167 if ( collectHfa( pTypeRef, kind, count ) && kind != HFA_NONE ) in classifyAggregate() 287 HfaKind kind = HFA_NONE; in get_return_kind() local 289 if ( collectHfa( pTypeRef, kind, count ) && count >= 1 && count <= 4 ) in get_return_kind() 290 return kind == HFA_FLOAT ? RETURN_KIND_HFA_FLOAT : RETURN_KIND_HFA_DOUBLE; in get_return_kind() 309 HfaKind kind = HFA_NONE; in fill_struct() local 311 collectHfa( pTypeRef, kind, count ); in fill_struct() 312 if ( kind == HFA_FLOAT ) in fill_struct()
|
| /trunk/test/odf-validate/fixtures/writer/ |
| H A D | make.py | 85 def field(self, kind, label=None, **props): argument 86 lab = label or kind 88 f = self.mk("com.sun.star.text.TextField." + kind, **props) 192 for kind in ("PageCount", "ParagraphCount", "WordCount", "CharacterCount", "TableCount", 195 w.field(kind, "%s %d" % (kind, ntype), NumberingType=ntype) 246 def stdfmt(doc, kind): argument 248 return doc.NumberFormats.getStandardFormat(NF[kind], loc) 279 …for kind in ("number", "date", "time", "datetime", "currency", "percent", "scientific", "fraction"… 280 …attempt("setvar " + kind, setvar, "var_" + kind, 0, "1+2" if kind != "boolean" else "1", stdfmt(do… 289 for kind in ("number", "date", "currency", "percent", "boolean"): [all …]
|
| /trunk/test/aoo-test/src/aootest_worker/fixtures/ |
| H A D | writer.py | 85 def field(self, kind, label=None, **props): argument 86 lab = label or kind 88 f = self.mk("com.sun.star.text.TextField." + kind, **props) 192 for kind in ("PageCount", "ParagraphCount", "WordCount", "CharacterCount", "TableCount", 195 w.field(kind, "%s %d" % (kind, ntype), NumberingType=ntype) 246 def stdfmt(doc, kind): argument 248 return doc.NumberFormats.getStandardFormat(NF[kind], loc) 279 …for kind in ("number", "date", "time", "datetime", "currency", "percent", "scientific", "fraction"… 280 …attempt("setvar " + kind, setvar, "var_" + kind, 0, "1+2" if kind != "boolean" else "1", stdfmt(do… 289 for kind in ("number", "date", "currency", "percent", "boolean"): [all …]
|
| H A D | draw.py | 61 def new(kind): argument 62 …return desk.loadComponentFromURL("private:factory/" + FACTORY[kind], "_blank", 0, (pv("Hidden", Tr… 402 for kind in range(12): 403 trig = kind + 1 404 e = event(trig, sh, 0.5 if kind % 2 else None) 573 for i, kind in enumerate(("FULL", "CUT", "SECTION", "ARC")): 574 ck = uno.Enum("com.sun.star.drawing.CircleKind", kind) 576 CircleStartAngle=3000, CircleEndAngle=24000, Name="circle-" + kind) 578 CircleStartAngle=3000, CircleEndAngle=24000, Name="ellipse-" + kind) 703 for kind in ("odg", "odp"): [all …]
|
| H A D | make_drawings.py | 44 def shape(doc, page, kind, x, y, w, h, **props): argument 45 s = doc.createInstance("com.sun.star.drawing." + kind) 81 for kind, s, e in (("STANDARD", a, b), ("CURVE", b, c), ("LINE", c, a)): 85 con.EdgeKind = E("com.sun.star.drawing.ConnectorType", kind) 156 for i, kind in enumerate(("diamond", "heart", "star5", "right-arrow", "cloud")): 161 s.CustomShapeGeometry = (PropertyValue("Type", 0, kind, 0),) 163 s.String = kind
|
| /trunk/test/odf-validate/fixtures/draw/ |
| H A D | make.py | 61 def new(kind): argument 62 …return desk.loadComponentFromURL("private:factory/" + FACTORY[kind], "_blank", 0, (pv("Hidden", Tr… 402 for kind in range(12): 403 trig = kind + 1 404 e = event(trig, sh, 0.5 if kind % 2 else None) 573 for i, kind in enumerate(("FULL", "CUT", "SECTION", "ARC")): 574 ck = uno.Enum("com.sun.star.drawing.CircleKind", kind) 576 CircleStartAngle=3000, CircleEndAngle=24000, Name="circle-" + kind) 578 CircleStartAngle=3000, CircleEndAngle=24000, Name="ellipse-" + kind) 703 for kind in ("odg", "odp"): [all …]
|
| /trunk/main/offapi/com/sun/star/frame/ |
| H A D | FrameAction.idl | 45 /** an event of this kind is broadcast whenever a component is 59 /** an event of this kind is broadcast whenever a component is 74 /** an event of this kind is broadcast whenever a component is 85 /** an event of this kind is broadcast whenever a component gets 98 /** an event of this kind is broadcasted immediately before the 112 /** an event of this kind is broadcast whenever a component changes 125 /** an event of this kind is broadcast by an active frame when it 133 /** an event of this kind is broadcast by an active frame when it
|
| /trunk/main/configmgr/source/ |
| H A D | access.cxx | 124 switch (p->kind()) { in isValue() 265 if (getNode()->kind() == Node::KIND_GROUP) { in queryInterface() 283 if (getNode()->kind() != Node::KIND_GROUP || in queryInterface() 292 if (getNode()->kind() == Node::KIND_SET) { in queryInterface() 305 if (getNode()->kind() == Node::KIND_LOCALIZED_PROPERTY && in checkLocalizedPropertyAccess() 483 switch (child->getNode()->kind()) { in initBroadcasterAndChanges() 681 switch (getNode()->kind()) { in initBroadcasterAndChanges() 864 if (getNode()->kind() == Node::KIND_GROUP) { in getTypes() 877 if (getNode()->kind() != Node::KIND_GROUP || in getTypes() 883 if (getNode()->kind() == Node::KIND_SET) { in getTypes() [all …]
|
| /trunk/test/aoo-test/src/aootest/ |
| H A D | documents.py | 139 return ([Source("generated/" + app, None, kind, app) for app, kind in GENERATED] + 140 …[Source("built/%s/%s" % (b, f), None, kind, None, (b, f), checks) for b, f, kind, checks in BUILT … 170 return source.id.replace("/", "__").replace("\\", "__").replace(".", "_") + "." + source.kind 237 path = self.dir / ("%s.%s" % (source.app, source.kind)) 239 …session.call("new_and_store", {"app": source.app, "dst": str(path), "filter": FILTERS[source.kind],
|
| /trunk/test/odf-validate/fixtures/page-fill/ |
| H A D | make.py | 24 def fill(o, pre, kind, color=0xFFCC00): argument 25 if kind == "solid": 27 elif kind == "solid_transp": 29 elif kind == "gradient": 31 elif kind == "hatch": 34 elif kind == "bitmap":
|