Re: Programmatically (C++) closing frame with chance to save

2014-10-28 Thread Ariel Constenla-Haile
, if you want user interaction, it is better to dispatch a .uno:Close, every Frame is a DispatchProvider - note it's simpler to use the css.frame.DispatchHelper. Regards -- Ariel Constenla-Haile La Plata, Argentina signature.asc Description: Digital signature

Re: Manipulate menu item titles (text) defined in Addons.xcu

2014-10-16 Thread Ariel Constenla-Haile
/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx https://svn.apache.org/viewvc/openoffice/trunk/main/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx?revision=1413471view=markup Regards -- Ariel Constenla-Haile La Plata, Argentina signature.asc

Re: access internal graphics of a writer-document

2014-10-16 Thread Ariel Constenla-Haile
to lower case, graphicobject, which does not work. please note: my document is unsaved, so I can not directly access the pictures folder in the *.odt file. You can set the ImageURL property of the control model, it works with vnd.sun.star.GraphicObject: protocol. Regards -- Ariel Constenla-Haile La

Re: [EXT] Actual expanded value of %origin% for toolbar and menu images

2014-08-11 Thread Ariel Constenla-Haile
the Developer's Guide, you'll find other places that need correction; if you are willing to help in this documentation area, you can request a wiki account as explained here https://wiki.openoffice.org/wiki/Help:Logging_in and fix those places yourself :) Regards -- Ariel Constenla-Haile La Plata

Re: [EXT][GUI] Behavior of the UnoControlGrid's horizontal scroll

2014-07-29 Thread Ariel Constenla-Haile
, this seems to be one, see https://issues.apache.org/ooo/show_bug.cgi?id=125322 Regards -- Ariel Constenla-Haile La Plata, Argentina signature.asc Description: Digital signature

Re: [EXT] Availability of standard OO documents icons to extensions

2014-07-23 Thread Ariel Constenla-Haile
/trunk/main/svtools/inc/svtools/imagemgr.hrc?revision=1413471view=markup#l107 http://svn.apache.org/viewvc/openoffice/trunk/main/svtools/inc/svtools/imagemgr.hrc?revision=1413471view=markup#l29 This gives 3251, from there the sx03251.png. Regards -- Ariel Constenla-Haile La Plata, Argentina

Re: [EXT][GUI] How to define and use layout constraints

2014-07-15 Thread Ariel Constenla-Haile
, and currently broken, so this is all dead code). In short, there is no layout algorithm in OpenOffice API; if you want to resize the dialog window and its controls, you'll have to do it manually. Regards -- Ariel Constenla-Haile La Plata, Argentina signature.asc Description: Digital signature

Re: [EXT]How to declare a unique-instance and all-contexts component

2014-07-10 Thread Ariel Constenla-Haile
handling How are you tracking the recent documents? The ProtocolHandler is not the place to do that ;) Regards -- Ariel Constenla-Haile La Plata, Argentina signature.asc Description: Digital signature

Re: [API] How to retrieve a document property

2014-06-26 Thread Ariel Constenla-Haile
. the original author) of a document but I don't succeed in getting that information in a variable. In Basic: author = ThisComponent.getDocumentProperties().Author MsgBox author Regards -- Ariel Constenla-Haile La Plata, Argentina signature.asc Description: Digital signature

Re: Some questions about undo

2014-03-07 Thread Ariel Constenla-Haile
On Thu, Mar 06, 2014 at 07:56:49PM +0100, Jörg Schmidt wrote: From: Ariel Constenla-Haile [mailto:arie...@apache.org] This looks like an omission from the developer, you might want to submit a bug. No, I think not. Please consider the following example: http

Re: Some questions about undo

2014-03-06 Thread Ariel Constenla-Haile
://www.openoffice.org/api/docs/common/ref/com/sun/star/reflection/module-ix.html Regards -- Ariel Constenla-Haile La Plata, Argentina pgpQel15Gftd9.pgp Description: PGP signature

Re: Some questions about undo

2014-02-28 Thread Ariel Constenla-Haile
() Regards -- Ariel Constenla-Haile La Plata, Argentina pgpJuDsnHzptS.pgp Description: PGP signature

Re: PackageInformationProvider::get() and subsequent ReferenceXPackageInformationProvider::getPackageLocation()

2014-02-24 Thread Ariel Constenla-Haile
= defaultBootstrap_InitialComponentContext(); your C++ extension has a DLL with one or more components, each component is instantiated with a component context; do not bootstrap a component context, just use the one the component is instantiated with. Regards -- Ariel Constenla-Haile La Plata, Argentina pgpVAuMXGA73r.pgp

Re: show sidebar by code in extension

2014-02-15 Thread Ariel Constenla-Haile
to show/hide panels. Regards -- Ariel Constenla-Haile La Plata, Argentina pgpAIbGdAB6FO.pgp Description: PGP signature

Re: PDF import

2014-01-25 Thread Ariel Constenla-Haile
-- Ariel Constenla-Haile La Plata, Argentina pgpRwnXwAmX7V.pgp Description: PGP signature

Re: css.system.XMailMessage vs. css.mail.XMailMessage

2013-12-18 Thread Ariel Constenla-Haile
as a string (this has a big limitation in Basic, where strings are implemented internally with an old class that has a 64k limit for the string's content). Regards -- Ariel Constenla-Haile La Plata, Argentina pgpCMXmh8gLci.pgp Description: PGP signature

Re: API for setting a resultset to masterfields (com.sun.star.text.fieldmaster.Database)

2013-11-05 Thread Ariel Constenla-Haile
to True). Regards -- Ariel Constenla-Haile La Plata, Argentina REM * BASIC * Option Explicit Sub Main Dim oDoc as Object Dim oFrame as Object Dim oURLTransformer as Object Dim oURL as new com.sun.star.util.URL Dim oDispatch as Object

Re: inspector.oxt

2013-09-26 Thread Ariel Constenla-Haile
/project/MRI Regards -- Ariel Constenla-Haile La Plata, Argentina pgpQ5hS8yy_IB.pgp Description: PGP signature

Re: Change text in writer without changing style and formats

2013-09-25 Thread Ariel Constenla-Haile
/common/ref/com/sun/star/text/XSimpleText.html#insertString Regards -- Ariel Constenla-Haile La Plata, Argentina pgpKYXWcVbLiN.pgp Description: PGP signature

Re: Find\replace in writer

2013-09-25 Thread Ariel Constenla-Haile
#Search_and_Replace Regards -- Ariel Constenla-Haile La Plata, Argentina pgpzBXHvgWwY5.pgp Description: PGP signature

Re: convert rtl::OUString to char *

2013-09-24 Thread Ariel Constenla-Haile
::OUStringToOString( sText, RTL_TEXTENCODING_UTF8 ); const char *pzstr = sText.getStr(); Regards -- Ariel Constenla-Haile La Plata, Argentina pgpge2XRd6BvB.pgp Description: PGP signature

Re: convert OUString to char *

2013-09-24 Thread Ariel Constenla-Haile
that to a console? The code attached has non-ASCII characters, it prints the string returned by OString::getStr() in the standard output; it works (all characters are displayed) fine on Linux, but on Windows you may have to do system specific stuff (didn't try it right now). Regards -- Ariel Constenla

Re: inserting images in writer

2013-09-20 Thread Ariel Constenla-Haile
-- Ariel Constenla-Haile La Plata, Argentina /** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information

Re: cppu::bootstrap() does not work with OpenOffice 4.0.0

2013-09-19 Thread Ariel Constenla-Haile
Constenla-Haile have tested that the simple bootstrap example from the SDK. Anything else I can try? Are there alternate methods to bootstrap? Yes. If the simple bootstrap mechanism is broken, you have to use the old method of first starting the office listening for interprocess connections

Re: Change column property in XTextTable

2013-09-19 Thread Ariel Constenla-Haile
( OUString( RTL_CONSTASCII_USTRINGPARAM( TableColumnSeparators ) ), makeAny( aColSeparators ) ); The full example is attached. Regards -- Ariel Constenla-Haile La Plata, Argentina #include iostream #include cppuhelper/bootstrap.hxx #include rtl/ustring.hxx /** === begin UNO includes

Re: Change column property in XTextTable

2013-09-19 Thread Ariel Constenla-Haile
/TextTable.html Set the HoriOrient property to NONE and then set the LeftMargin and RightMargin; or try other combinations, like in the attached example. Regards -- Ariel Constenla-Haile La Plata, Argentina #include iostream #include cppuhelper/bootstrap.hxx #include rtl/ustring.hxx /** === begin UNO

Re: XText Interface of XTextSection

2013-09-18 Thread Ariel Constenla-Haile
, com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, False) End Sub Regards -- Ariel Constenla-Haile La Plata, Argentina pgpptS4iSDphR.pgp Description: PGP signature

Re: cppu::bootstrap() does not work with OpenOffice 4.0.0

2013-09-18 Thread Ariel Constenla-Haile
works fine (didn't try on Windows yet). [1] http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C%2B%2B/Establishing_Interprocess_Connections http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/UNO_Interprocess_Connections Regards -- Ariel Constenla-Haile La Plata

Re: insert image into calc document

2013-08-07 Thread Ariel Constenla-Haile
, instead of linked, do not use the GraphicURL property, use Graphic. This property requires an instance of com.sun.star.graphic.XGraphic. You can get one using the service com.sun.star.graphic.GraphicProvider See attached code. Regards -- Ariel Constenla-Haile La Plata, Argentina

Re: insert image ino calc doc

2013-05-10 Thread Ariel Constenla-Haile
- XMultiServiceFactory::createInstance wil return a reference to a generic css.uno.XInterface; query that reference for the css.drawing.XShape interface. Usually you will also need the css.beans.XPropertySet interface, to set the shapes properties. Regards -- Ariel Constenla-Haile La Plata, Argentina

Re: OO SDK

2013-05-08 Thread Ariel Constenla-Haile
= 5000 oPoint.Y = 200 With oGraphicShape .setPosition(oPoint) .setSize(oSize100thMM) .Graphic = oGraphic End With oDrawPage.add(oGraphicShape) End Sub Regards -- Ariel Constenla-Haile La Plata, Argentina pgpgSsRF3rcmC.pgp Description: PGP signature

Re: EXTERNAL: Re: soffice process still running

2013-05-07 Thread Ariel Constenla-Haile
bHidden = FALSE For Each aPropVal In aLoadArgs If aPropVal.Name = Hidden Then bHidden = aPropVal.Value Exit For End If Next If bHidden Then oDoc.close(TRUE) End If End Sub Regards -- Ariel Constenla-Haile La Plata, Argentina

Re: UNO API

2013-04-18 Thread Ariel Constenla-Haile
for an example. Regards -- Ariel Constenla-Haile La Plata, Argentina #** # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work

Re: uno api problem

2013-04-07 Thread Ariel Constenla-Haile
On Sun, Apr 07, 2013 at 04:06:19PM +0300, k.misha wrote: I already fixed this problem this way: [...] not portable at all. You may find useful the C++ UNO binding reference: http://www.openoffice.org/api/docs/cpp/ref/names/index.html Regards -- Ariel Constenla-Haile La Plata, Argentina

Re: uno api problem

2013-04-06 Thread Ariel Constenla-Haile
( OUString(RTL_CONSTASCII_USTRINGPARAM(CharFontName)), makeAny(OUString(RTL_CONSTASCII_USTRINGPARAM(Corbel; Regards -- Ariel Constenla-Haile La Plata, Argentina pgp8F0gaTmsIz.pgp Description: PGP signature

Re: example of Frame with awt uno

2013-03-06 Thread Ariel Constenla-Haile
can't find it right know). Regards -- Ariel Constenla-Haile La Plata, Argentina pgpBkuJquW44p.pgp Description: PGP signature

Re: example of Frame with awt uno

2013-03-06 Thread Ariel Constenla-Haile
On Wed, Mar 06, 2013 at 05:41:29PM -0300, Ariel Constenla-Haile wrote: Hi, On Tue, Mar 05, 2013 at 09:13:38PM -0600, Galileo Teco Juárez wrote: could give me a simple example of code a frame on .. with menus check http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt

Re: [MAC] Launching OO from another application using OSL_executeprocess

2013-02-21 Thread Ariel Constenla-Haile
] http://svn.apache.org/viewvc/openoffice/devtools/sdk-examples/trunk/cpp/ProcessTest/ Regards -- Ariel Constenla-Haile La Plata, Argentina pgpT4dHphsFEm.pgp Description: PGP signature

Re: EXTERNAL: Re: soffice process still running

2013-02-01 Thread Ariel Constenla-Haile
= UnoRuntime.queryInterface( XDesktop.class, xComponentLoader); XEnumerationAccess xEnumerationAccess = xDesktop.getComponents(); if (!xEnumerationAccess.hasElements()) { xDesktop.terminate(); } Regards -- Ariel Constenla-Haile La Plata, Argentina pgpnA9g8bsyQb.pgp Description: PGP signature

Re: Regarding MSVCR80.dll

2013-01-31 Thread Ariel Constenla-Haile
environment and make sure it builds fine in all supported platforms. It would also be easier to provide advice if you can upload the source code somewhere (IIUC you are simply playing with an SDK example, so there would no problem in showing the code). Regards -- Ariel Constenla-Haile La Plata

Re: Incompatible change for extensions

2013-01-22 Thread Ariel Constenla-Haile
/common/ref/com/sun/star/table/BorderLine2.html Regards -- Ariel Constenla-Haile La Plata, Argentina pgpdfgIcPDtUv.pgp Description: PGP signature

Re: Looking for a makefile sample to generate a simple dll

2013-01-22 Thread Ariel Constenla-Haile
://code.google.com/a/apache-extras.org/p/aoo-my-sdbc/source/browse/source/external.mk though it's a little more complex, it does what you're trying to do. The driver is not linked to the C++/Connector, it loads the library at runtime, and uses function pointers. Regards -- Ariel Constenla-Haile

Re: Prevent closing with InstanceLocker

2012-12-29 Thread Ariel Constenla-Haile
/ooo/show_bug.cgi?id=118896 Looks like this service didn't get enough qa and it's really broken. Regard -- Ariel Constenla-Haile La Plata, Argentina pgpu4xb0cs3Ok.pgp Description: PGP signature