[dev] Fwd: Impress memory not clearing on file close
(Bump...) We've been extensively testing opening/viewing PPT files, and have noticed repeatable issues with memory not being cleared. These issues appear when opening PPT files, ODP files, or even creating new ODP files. We run CentOS 5.5, OOo 3.2.1 Do the following while monitoring resources (with like top)... - Open OOo by running soffice - Note base-level memory usage (in our test-case, 4-something MB) - Open/Create presentation file (new, existing, PPT, ODP, etc. - any/all) - Note memory again... (in our test case, 7.6MB) All well and good up to this point now it gets interesting... - Go to File - Close - Note memory again... does NOT reduce! Again, it didn't matter whether we created a new file, opened PPT, opened ODP, etc whenever the file is closed, the peak memory use remains. However, in these cases, completely closing soffice DID result in the memory being cleared. We first started investigating this while developing with document server (and trying to figure out a memory leak there). Closing a file and cleaning the memory should be at the forefront, right? Is this by design? If a bug or memory leak, then it would be nice to see it addressed in the new version coming out soon :) -Chris Rider - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Impress memory not clearing upon file close
We've been extensively testing opening/viewing PPT files, and have noticed repeatable issues with memory not being cleared. These issues appear when opening PPT files, ODP files, or even creating new ODP files. We run CentOS 5.5, OOo 3.2.1 Do the following while monitoring resources (with like top)... - Open OOo by running soffice - Note base-level memory usage (in our test-case, 4-something MB) - Open/Create presentation file (new, existing, PPT, ODP, etc. - any/all) - Note memory again... (in our test case, 7.6MB) All well and good up to this point now it gets interesting... - Go to File - Close - Note memory again... does NOT reduce! Again, it didn't matter whether we created a new file, opened PPT, opened ODP, etc whenever the file is closed, the peak memory use remains. However, in these cases, completely closing soffice DID result in the memory being cleared. We first started investigating this while developing with document server (and trying to figure out a memory leak there). Closing a file and cleaning the memory should be at the forefront, right? Is this by design? If a bug or memory leak, then it would be nice to see it addressed in the new version coming out soon :) -Chris Rider - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] An unusual hyperlink format??
I have a program that allows people to brand PDF files that have been constructed in a specifc way. I have been using Serif's PagePlus software to write documents. This allows me to highlight text on a page, and then use a menu to enter a hyperlink as: {Enter your link|The required URL} The result is that the text appears underlined, and the PDF source code shows as: /S/URI /URI({Enter your link|The required URL}) However, I have tried various arrangements in the program, but all I can create is: /S/URI/(chosen url) Before I modify my site to say OpenOffice will not create the brndable PDF files correctly, is there a work around users could add / method that will allow the above string to be generated? Thanks for your advice. Chris Brown
[dev] Building a wireless presenter application
Hello I'm new to openoffice.org and i want to know if i can build a wireless presenter application on my phone to manage my presentation. But to be honest, i don't know where to start. Thanks.
[dev] Rich Text Format Support in OpenOffice.org Writer
Hello, First off, I need to say that this is -not- a message complaining about rich text format support. Now that that is out of the way... I would like to volunteer my services to help improve the RTF support for openoffice.org writer. However, I am a fairly new programmer and would require some guidance getting into the code base, and also some guidance on how to work with a large project such as this one. The first question is probably: Why would I want to improve RTF support? Well, my college uses exclusively Microsoft Word for essentianally everything, and doesn't support anything else well. The only concession they will make is to allow submissions in, and send documents in, RTF format. Since RTF support isn't the best right now, i'd like to see if I can manage to improve it, even if only a little bit. I had a discussion about why I'd want to do this here: http://user.services.openoffice.org/en/forum/viewtopic.php?f=7t=31596. If anyone has the time to point me in the right direction, it would be appreciated. Thank you, Chris Carpenter(mordocai)
Re: [dev] Please Help: Getting the width / height sizes to create a RectangleShape to create a boundary box
Hello, I ended up solving my problem going about it the other way around adding the text to an auto expanding Textshape, then capturing the size that way. Thanks anyway... // get internal service factory of the document XMultiServiceFactory xWriterFactory_tmp = (XMultiServiceFactory) UnoRuntime.queryInterface( XMultiServiceFactory.class, xWriterComponent_sdraw_dest); Object shape = xWriterFactory_tmp.createInstance( com.sun.star.drawing.TextShape); XShape xShape = (XShape) UnoRuntime.queryInterface( XShape.class, shape); xShape.setPosition(new Point(pageBorderLeft, pageBorderTop)); xDrawPage.add(xShape); XPropertySet shapeProperties = (XPropertySet)UnoRuntime.queryInterface( XPropertySet.class, shape); shapeProperties.setPropertyValue(TextContourFrame, new Boolean(true)); shapeProperties.setPropertyValue(FillTransparence, 100); shapeProperties.setPropertyValue(FillStyle , FillStyle.SOLID); shapeProperties.setPropertyValue(FillColor, new Color(255, 0, 0).getRGB()); shapeProperties.setPropertyValue(TextAutoGrowHeight, new Boolean(true)); shapeProperties.setPropertyValue(TextAutoGrowWidth, new Boolean(true)); if (showBorder == true) { shapeProperties.setPropertyValue(LineTransparence, 100); shapeProperties.setPropertyValue(LineColor, new Color(255, 0, 0).getRGB()); shapeProperties.setPropertyValue(LineWidth, 0); } else { shapeProperties.setPropertyValue(LineColor, new Color(0, 0, 0).getRGB()); shapeProperties.setPropertyValue(LineWidth, 1); } // set the text XText xText = (XText) UnoRuntime.queryInterface(XText.class, xShape); // setSizeAndStyle(xText, fontToUse, centreText); XTextCursor xTextCursor = xText.createTextCursor(); xTextCursor.gotoEnd(false); setSizeAndStyle(xText, fontToUse, centreText); xText.setString(message); // Now fix the size and shape of the text object. int nSaveWidth = xShape.getSize().Width; int nSaveHeight = xShape.getSize().Height; xShape.setSize(new Size(nSaveWidth + 50, nSaveHeight)); Chris Fleischmann wrote: Thanks for the hints... I have since tried the following: // get internal service factory of the document XMultiServiceFactory xWriterFactory_tmp = (XMultiServiceFactory) UnoRuntime.queryInterface( XMultiServiceFactory.class, xWriterComponent_sdraw_dest); XModel model = (XModel) UnoRuntime.queryInterface(XModel.class, xWriterComponent_sdraw_dest); XController controller = model.getCurrentController(); XWindow xWindow = controller.getFrame().getContainerWindow(); XWindowPeer xWindowPeer = (XWindowPeer) UnoRuntime.queryInterface(XWindowPeer.class, xWindow); // XToolkit aToolkit = xWindowPeer.getToolkit(); XUnitConversion m_xConversion = (XUnitConversion) UnoRuntime.queryInterface(XUnitConversion.class, xWindowPeer); XDevice xDevice = (XDevice)UnoRuntime.queryInterface(XDevice.class, xWindow); FontDescriptor fontDescriptors[] = xDevice.getFontDescriptors(); FontDescriptor fontDescriptor = null; Vector names = new Vector(); width = 0; height = 0; for (int i = 0; i fontDescriptors.length; i++) { if (!names.contains(fontDescriptors[i].Name)) { names.add((String)fontDescriptors[i].Name); } if (fontDescriptors[i].Name.equalsIgnoreCase(fontToUse.name)) { fontDescriptors[i].Height = (short)fontToUse.size; fontDescriptor = fontDescriptors[i]; XFont xFont = xDevice.getFont(fontDescriptors[i]); width = xFont.getStringWidth(message); SimpleFontMetric simpleFontMetric = xFont.getFontMetric(); height = simpleFontMetric.Ascent + simpleFontMetric.Descent + simpleFontMetric.Leading; break; } } Then I use these settings in an attempt to wrap the text I am about to add with a boundary using a rectangle shape: Object shape = xWriterFactory_tmp.createInstance( com.sun.star.drawing.RectangleShape); XShape xShape = (XShape) UnoRuntime.queryInterface( XShape.class, shape); xShape.setPosition(new Point(pageBorderLeft, pageBorderTop)); Size aSize
[dev] Please Help: Getting the width / height sizes to create a RectangleShape to create a boundary box
Hello folks, just wondering if there is a more accurate way of converting pixels to 1/00mm in OpenOffice... Other than the 72 DPI type of calculation people use? Currently I do the following: if (fontDescriptor[i].Name.equalsIgnoreCase(Arial)) { fontDescriptor[i].Height = (short)12; // just an arbitrary height number. XFont xFont = xDevice.getFont(fontDescriptor[i]); width = xFont.getStringWidth(message); SimpleFontMetric simpleFontMetric = xFont.getFontMetric(); height = simpleFontMetric.Ascent + simpleFontMetric.Descent + simpleFontMetric.Leading; break; } } Object shape = xWriterFactory_tmp.createInstance( com.sun.star.drawing.RectangleShape); XShape xShape = (XShape) UnoRuntime.queryInterface( XShape.class, shape); xShape.setPosition(new Point(pageBorderLeft, pageBorderTop)); int nwidth = (int)(((float)width / (float)72) * (float)2540) + 50; // This is what I use to convert, which works on the MAC. int nheight = (int)(((float)height / (float)72) * (float)2540) + 50; // This is what I use to convert, which works on the MAC. System.out.println(New Height: + nheight); System.out.println(New Width: + nwidth); xShape.setSize(new Size(nwidth, nheight)); Now the above code works hapilly on my Apple Laptop, but when I move the same code over to OpenSolaris and the width calculation is way off the font is either larger or smaller depending on the height size of the font. Any advice or help, much appreciated. Thanks, Chris -- View this message in context: http://old.nabble.com/Please-Help%3A-Getting-the-width---height-sizes-to-create-a-RectangleShape-to-create-a-boundary-box-tp27152636p27152636.html Sent from the openoffice - dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Please Help: Getting the width / height sizes to create a RectangleShape to create a boundary box
Thanks for the hints... I have since tried the following: // get internal service factory of the document XMultiServiceFactory xWriterFactory_tmp = (XMultiServiceFactory) UnoRuntime.queryInterface( XMultiServiceFactory.class, xWriterComponent_sdraw_dest); XModel model = (XModel) UnoRuntime.queryInterface(XModel.class, xWriterComponent_sdraw_dest); XController controller = model.getCurrentController(); XWindow xWindow = controller.getFrame().getContainerWindow(); XWindowPeer xWindowPeer = (XWindowPeer) UnoRuntime.queryInterface(XWindowPeer.class, xWindow); // XToolkit aToolkit = xWindowPeer.getToolkit(); XUnitConversion m_xConversion = (XUnitConversion) UnoRuntime.queryInterface(XUnitConversion.class, xWindowPeer); XDevice xDevice = (XDevice)UnoRuntime.queryInterface(XDevice.class, xWindow); FontDescriptor fontDescriptors[] = xDevice.getFontDescriptors(); FontDescriptor fontDescriptor = null; Vector names = new Vector(); width = 0; height = 0; for (int i = 0; i fontDescriptors.length; i++) { if (!names.contains(fontDescriptors[i].Name)) { names.add((String)fontDescriptors[i].Name); } if (fontDescriptors[i].Name.equalsIgnoreCase(fontToUse.name)) { fontDescriptors[i].Height = (short)fontToUse.size; fontDescriptor = fontDescriptors[i]; XFont xFont = xDevice.getFont(fontDescriptors[i]); width = xFont.getStringWidth(message); SimpleFontMetric simpleFontMetric = xFont.getFontMetric(); height = simpleFontMetric.Ascent + simpleFontMetric.Descent + simpleFontMetric.Leading; break; } } Then I use these settings in an attempt to wrap the text I am about to add with a boundary using a rectangle shape: Object shape = xWriterFactory_tmp.createInstance( com.sun.star.drawing.RectangleShape); XShape xShape = (XShape) UnoRuntime.queryInterface( XShape.class, shape); xShape.setPosition(new Point(pageBorderLeft, pageBorderTop)); Size aSize = new Size(width + 3, height + 3);// add a few pixels for padding... Size aPointInMM_100TH = m_xConversion.convertSizeToLogic(aSize, MeasureUnit.MM_100TH); //int nwidth = (int)(((float)width / (float)72) * (float)2540) + 50; //int nheight = (int)(((float)height / (float)72) * (float)2540) + 50; int nwidth = aPointInMM_100TH.Width; int nheight = aPointInMM_100TH.Height; System.out.println(New Height: + nheight); System.out.println(New Width: + nwidth); xShape.setSize(new Size(nwidth, nheight)); xDrawPage.add(xShape); // Now set the text XText xText = (XText) UnoRuntime.queryInterface(XText.class, xShape); XTextCursor xTextCursor = xText.createTextCursor(); xTextCursor.gotoEnd(false); XPropertySet xPropertySet = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, xTextCursor); xPropertySet.setPropertyValue(CharFontCharSet, fontDescriptor.CharSet); xPropertySet.setPropertyValue(CharFontFamily, fontDescriptor.Family); xPropertySet.setPropertyValue(CharHeight, fontDescriptor.Height); xPropertySet.setPropertyValue(CharFontName, fontDescriptor.Name); xPropertySet.setPropertyValue(CharFontPitch, fontDescriptor.Pitch); xPropertySet.setPropertyValue(CharPosture, fontDescriptor.Slant); xPropertySet.setPropertyValue(CharStrikeout, fontDescriptor.Strikeout); xPropertySet.setPropertyValue(CharUnderline, fontDescriptor.Underline); xPropertySet.setPropertyValue(CharWeight, fontDescriptor.Weight); xText.setString(message); However, the resultant image is still not correct, see the following image: http://old.nabble.com/file/p27155936/image1.jpg if I go then to draw and expand the image, I then get the text, see image 2, http://old.nabble.com/file/p27155936/image2.jpg However, If I use my DPI calculation of 72 DPI FYI: int nwidth = (int)(((float)width / (float)72) * (float)2540) + 50; int nheight = (int)(((float)height / (float)72) * (float)2540) + 50; I get the right sized image, at least for hte MAC, on OpenSolaris its no good. Any tips, or anything I am doing wrong, please let me know... Thanks once again! Regards, Chris Ariel Constenla-Haile wrote: Hello Chris, On Wednesday 13 January 2010, 18:49, Chris Fleischmann wrote
Re: [dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject
Thanks for responding, I have since tried playing around with the orientation settings, but alas, its still not keeping the x/y position from the paragraph anchor when I open it up in Word ... See the picture properties here for one of my images in openoffice 3.1.1: http://old.nabble.com/file/p26992864/Screen%2Bshot%2B2010-01-02%2Bat%2B11.46.15%2BPM.png Unfortunately, it still moves to the TOP of the paragraph anchor, and also moves to the leftmost position possible. So given the paragraph anchor, the image moves to the top left position of the anchor. Thanks in advance for any other tips. tora - Takamichi Akiyama wrote: I am not sure, but, hopefully, this could be a hint. After manually inserting a graphic image into an empty Writer document, the following code fragment of OpenOffice.org Basic reports that HoriOrientRelation = 7 VertOrientPosition = 7 Sub Main oObject = ThisComponent.getDrawPage().getByIndex(0) print AnchorType = oObject.AnchorType print Height = oObject.Height print Width =oObject.Width print HoriOrient = oObject.HoriOrient print HoriOrientPosition = oObject.HoriOrientPosition print HoriOrientRelation = oObject.HoriOrientRelation print VertOrient = oObject.VertOrient print VertOrientPosition = oObject.VertOrientPosition print VertOrientRelation = oObject.VertOrientRelation End Sub They seem to be described at http://api.openoffice.org/docs/common/ref/com/sun/star/text/RelOrientation.html An export filter for Microsoft Word 97-2003 (not for 2007, though) has some relevant code. http://svn.services.openoffice.org/ooo/tags/OpenOffice_3_1_1/sw/source/filter/ww8/wrtw8esh.cxx bool WinwordAnchoring::ConvertPosition( SwFmtHoriOrient _iorHoriOri, ... { ... // convert horizontal position, if needed { enum HoriConv { NO_CONV, CONV2PG, CONV2COL, CONV2CHAR }; HoriConv eHoriConv( NO_CONV ); ... case text::RelOrientation::PAGE_FRAME: case text::RelOrientation::PAGE_PRINT_AREA: { if ( bConvDueToOrientation || bFollowTextFlow ) eHoriConv = CONV2PG; } ... case text::RelOrientation::FRAME: { if ( bConvDueToOrientation ) eHoriConv = CONV2COL; } ... Tora Chris Fleischmann wrote: OpenOffice 3.1.1. Java SDK, MAC OS X 10.6.2, MS Word 2007/2008. Firstly I am happily able to position my TextGraphicObject's where I need them, ie., I use the following code to position the TextGrahicObject in OpenOffice with a particular width and height: xProps.setPropertyValue(HoriOrient, new Short(HoriOrientation.NONE)); xProps.setPropertyValue(HoriOrientPosition, new Integer(pos_x)); However when I open up the document in MS Word, the image, has been left-aligned (lots its X position) and lots its Y position? Is there a way to make sure the position is maintained in both OOo and MS Word? Thanks in advance, Chris - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org -- View this message in context: http://old.nabble.com/Please-help%3A-saving-document-as-DOC-format%2C-then-opening%2C-losing-position-properties-for-TextGraphicObject-tp26989671p26992864.html Sent from the openoffice - dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject
Hello... I have since tried the following code, which aims to do just that... It add the picture to a frame, The frame is either anchored to a paragraph or frame...Thats is, I have a parent frame which is anchored to a particular page, with PAGE anchoring... Inside that frame is the NEW frame that now holds the image. This all works in OpenOffice... The document works perfectly. In MS Word... I don't see the images or new frames at all. See code here: protected XTextFrame getTextFrame(XText xText, int width, int height, int x, int y, TextContentAnchorType anchorType, short horiOrient, short vertOrient) throws Exception { Object textFrame = xWriterFactory_dest.createInstance(com.sun.star.text.TextFrame); XTextFrame xTextFrame = (XTextFrame) UnoRuntime.queryInterface(XTextFrame.class, textFrame); XPropertySet xShapeProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xTextFrame); BorderLine aBorderLine = new BorderLine(); aBorderLine.OuterLineWidth = 1; aBorderLine.Color = new Integer(0x00); xShapeProps.setPropertyValue(TopBorder, aBorderLine); xShapeProps.setPropertyValue(BottomBorder, aBorderLine); xShapeProps.setPropertyValue(LeftBorder, aBorderLine); xShapeProps.setPropertyValue(RightBorder, aBorderLine); xShapeProps.setPropertyValue(AnchorType, anchorType); // Setting the vertical and horizontal position xShapeProps.setPropertyValue(FrameIsAutomaticHeight, new Boolean(false)); xShapeProps.setPropertyValue(SizeType, new Short((short)1)); xShapeProps.setPropertyValue(HoriOrient, new Short(horiOrient)); xShapeProps.setPropertyValue(VertOrient, new Short(vertOrient)); xShapeProps.setPropertyValue(FrameWidthAbsolute, new Integer(width)); xShapeProps.setPropertyValue(FrameHeightAbsolute, new Integer(height)); xShapeProps.setPropertyValue(LeftBorderDistance, new Integer(0)); xShapeProps.setPropertyValue(RightBorderDistance, new Integer(0)); xShapeProps.setPropertyValue(TopBorderDistance, new Integer(0)); xShapeProps.setPropertyValue(BottomBorderDistance, new Integer(0)); // Setting the vertical and horizontal position if (horiOrient == HoriOrientation.NONE) { xShapeProps.setPropertyValue(HoriOrientPosition, new Integer(x)); } if (vertOrient == VertOrientation.NONE) { xShapeProps.setPropertyValue(VertOrientPosition, new Integer(y)); } xShapeProps.setPropertyValue(TextWrap, WrapTextMode.NONE); xText.insertTextContent(xText.getEnd(), xTextFrame, false); return xTextFrame; } And the addImage method has since been changed too: /** * Use this method to add a JPG to the textframe. * * @param strImgFileName The image to add. * @param width The width of the image. * @param height The height of the image. * @param centreImage Centre the image. * @param x The position on the frame from the left margin (of the frame). * @param y The position on the frame from the top margin (of the frame). * * @throws Exception */ private void addJPGImage(XTextFrame xTextFrame, String strImgFileName, int width, int height, boolean centreImage, int x, int y) throws Exception { // allocate an xText object in case it's required. XText xText = xTextDocument_dest.getText(); // Test whether we need to assign a different text frame. if (xTextFrame != null) { xFrameText = (XText) UnoRuntime.queryInterface(XText.class, xTextFrame); } XTextFrame tmp_xTextFrame = null; if (centreImage == true) { int anchor = -1; if (xTextFrame != null) { anchor = TextContentAnchorType.AT_FRAME_value; } else { anchor = TextContentAnchorType.AT_PARAGRAPH_value; } tmp_xTextFrame = getTextFrame(xFrameText.getText(), width, height, x, y, TextContentAnchorType.fromInt(anchor), HoriOrientation.CENTER, VertOrientation.TOP); } else { int pos_x = -1; int pos_y = -1; short horiOrient = HoriOrientation.NONE; short vertOrient = VertOrientation.NONE; int anchor = -1; if (xTextFrame != null) { anchor = TextContentAnchorType.AT_FRAME_value; } else { anchor = TextContentAnchorType.AT_PARAGRAPH_value; } // The X orientation, is moved 10mm to the right... move it back. if (x == (-1)) { horiOrient = HoriOrientation.NONE; pos_x = 0;
[dev] Please help: saving document as DOC format, then opening, losing position properties for TextGraphicObject
Hello All, OpenOffice 3.1.1. Java SDK, MAC OS X 10.6.2, MS Word 2007/2008. Firstly I am happily able to position my TextGraphicObject's where I need them, ie., I use the following code to position the TextGrahicObject in OpenOffice with a particular width and height: Object newImage = xWriterFactory_dest.createInstance(com.sun.star.text.TextGraphicObject); XTextContent xNewTextContent = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, newImage); XTextCursor xTextCursor = xFrameText.createTextCursor(); xTextCursor.gotoEnd(false); XPropertySet xProps = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, newImage); // helper-stuff to let OOo create an internal name of the graphic // that can be used later (internal name consists of various checksums) MessageDigest md = MessageDigest.getInstance(MD5); md.update(strImgFileName.getBytes(), 0, strImgFileName.length()); String internalName = new BigInteger(1, md.digest()).toString(16); XNameContainer xBitmapContainer = (XNameContainer) UnoRuntime.queryInterface( XNameContainer.class, xWriterFactory_dest.createInstance( com.sun.star.drawing.BitmapTable)); xBitmapContainer.insertByName(internalName, strImgFileName); String internalURL = (String)(xBitmapContainer.getByName(internalName)); xProps.setPropertyValue(AnchorType, TextContentAnchorType.AT_PARAGRAPH); xProps.setPropertyValue(Width, width); xProps.setPropertyValue(Height, height); if (centreImage == true) { int pos_x = (frame_size.Width / 2) - (width / 2); // update frame width with the new dimensions. xProps.setPropertyValue(HoriOrient, new Short(HoriOrientation.NONE)); xProps.setPropertyValue(HoriOrientPosition, new Integer(pos_x)); } else { int pos_x = 1000; int pos_y = 1000; xProps.setPropertyValue(HoriOrient, new Short(HoriOrientation.NONE)); xProps.setPropertyValue(HoriOrientPosition, new Integer(pos_x)); xProps.setPropertyValue(VertOrient, new Short(HoriOrientation.NONE)); xProps.setPropertyValue(VertOrientPosition, new Integer(pos_y)); } xtext.insertTextContent(xTextCursor, xNewTextContent, false); // remove unnecessary object reference xBitmapContainer.removeByName(internalName); However when I open up the document in MS Word, the image, has been left-aligned (lots its X position) and lots its Y position? Is there a way to make sure the position is maintained in both OOo and MS Word? Thanks in advance, Chris -- View this message in context: http://old.nabble.com/Please-help%3A-saving-document-as-DOC-format%2C-then-opening%2C-losing-position-properties-for-TextGraphicObject-tp26989671p26989671.html Sent from the openoffice - dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Job offer in UK: Openoffice and free software consultant
Hi all credativ is an open source services and support company with offices in Europe and North America. We are looking for someone for this role in our Rugby, UK office: http://www.credativ.co.uk/about/careers/open-source-consultant/ The reason why I am posting here is that we do a fair amount of OpenOffice.org development and support work, so this would be a good opportunity for someone looking to get paid to work on OOo. Our current projects include: - Support for over 10,000 OOo desktops - Packaging newer OOo versions for Debian - Fixing various issues - Improving PPT import - Driving the Impress API Contact details are on the website. Chris -- credativ ltd Open Source for business 36 Regent Street Tel +44 1788 298150 Rugby CV21 2PS www.credativ.co.uk credativ limited is registered in England Wales, company no. 5261743 registered office: Suite 2 Bloxam Court, Corporation Street, Rugby CV21 2DU - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Is this how you create a bitmap image from using xDevice.createDisplayBitmap
I found this code here: // System.out.println( The bitmap is going to be painted! ); XDevice xDevice = (XDevice)UnoRuntime.queryInterface( XDevice.class, m_xWindow ); if ( xDevice != null ) { // System.out.println( Step1 ); XGraphics xGraphics = xDevice.createGraphics(); if ( xBitmap != null ) { // System.out.println( Step2 ); XDisplayBitmap xDisplayBitmap = xDevice.createDisplayBitmap( xBitmap ); com.sun.star.awt.Size aSize = xBitmap.getSize(); xGraphics.draw( xDisplayBitmap, 0, 0, aSize.Width, aSize.Height, aRect.X, aRect.Y, aRect.Width, aRect.Height ); } // System.out.println( Step3 ); xGraphics.drawLine( aRect.X - 1, aRect.Y - 1, aRect.X + aRect.Width + 1, aRect.Y - 1 ); xGraphics.drawLine( aRect.X + aRect.Width + 1, aRect.Y - 1, aRect.X + aRect.Width + 1, aRect.Y + aRect.Height + 1 ); xGraphics.drawLine( aRect.X + aRect.Width + 1, aRect.Y + aRect.Height + 1, aRect.X - 1, aRect.Y + aRect.Height + 1 ); xGraphics.drawLine( aRect.X - 1, aRect.Y + aRect.Height + 1, aRect.X - 1, aRect.Y - 1 ); - Is this how you draw to your new bitmap? Is it this command that says draw to this bitmap from now on? xGraphics.draw( xDisplayBitmap, 0, 0, aSize.Width, aSize.Height, aRect.X, aRect.Y, aRect.Width, aRect.Height ); So the next few lines that are drawn are drawn to the bitmap? Thanks in advance, the API on it was faily vague. http://api.openoffice.org/docs/common/ref/com/sun/star/awt/XGraphics.html#draw Thanks once again!!! Chris -- View this message in context: http://www.nabble.com/Is-this-how-you-create-a-bitmap-image-from-using-xDevice.createDisplayBitmap-tp24372638p24372638.html Sent from the openoffice - dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] TextGraphicObject, XTransferable and Save As, Microsoft Word, out of memory errors
I've also noticed that if I open up the saved word document in Word, and right mouse click to see options for the picture... I see that it is anchored as, AS CHARACTER, I then reselect AT PARAGRAPH and save it... What I notice is that I am now able to open up the document in M$ Word...? My code for the embedding of an image is as follows: You will see from the code below that I retrieve the URL from the image loaded in the document, and then use queryGraphics to reload the embedded image. -- try { XTextGraphicObjectsSupplier os = (XTextGraphicObjectsSupplier) UnoRuntime.queryInterface( XTextGraphicObjectsSupplier.class, xTextDocument_dest); XNameAccess as = os.getGraphicObjects(); if ((as != null) (as.hasElements())) { String names[] = as.getElementNames(); for (int i = 0; i names.length; i++) { Object o = (Object) as.getByName(names[i]); XTextContent xImage = (XTextContent) UnoRuntime.queryInterface( XTextContent.class, o); XPropertySet xProps = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, xImage); String url = (String)xProps.getPropertyValue(GraphicURL); PropertyValue aMediaProperties[] = new PropertyValue[1]; aMediaProperties[0] = new PropertyValue(); aMediaProperties[0].Name = URL; aMediaProperties[0].Value = url; xProps.setPropertyValue(AnchorType, TextContentAnchorType.AT_PARAGRAPH); XGraphic xGraphic = xGraphicProvider.queryGraphic(aMediaProperties); xProps.setPropertyValue(GraphicURL, null); xProps.setPropertyValue(Graphic, xGraphic); XPropertySetInfo xPropertySetInfo = xProps.getPropertySetInfo(); Property property[] = xPropertySetInfo.getProperties(); for (int j = 0; j property.length; j++) { System.out.println(property[j].Name + = + xProps.getPropertyValue(property[j].Name)); } } } } catch (Exception e) { e.printStackTrace(); } Chris Fleischmann wrote: Hello Folks... I am using the XTransferable Object to copy sections of a source document over to a destination document (that was opened as blank).. This seems to work, copying images, text, text styles etc. In terms of the source document I am loading images like so: protected void loadJpgImage(XText xText, String strImgFileName, int width, int height) { try { Object newImage = xWriterFactory_src.createInstance(com.sun.star.text.TextGraphicObject ); XTextContent xNewTextContent = ( XTextContent ) UnoRuntime.queryInterface(XTextContent.class, newImage); XTextCursor xTextCursor = xText.createTextCursor(); xTextCursor.gotoEnd(false); xText.insertTextContent( xTextCursor, xNewTextContent, false); XPropertySet xProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, newImage); xProps.setPropertyValue( GraphicURL, strImgFileName); xProps.setPropertyValue(AnchorType, TextContentAnchorType.AT_PARAGRAPH); xProps.setPropertyValue(Width, new Integer((int)(width))); xProps.setPropertyValue(Height, new Integer((int)(height))); } catch (Exception e) { e.printStackTrace(); System.out.println(Failed to insert Graphic); } } Then as the images loaded in to the source document and then copied over to the destination object by XTransferable as linked image(s). Moving the destination file over to another system/PC, the file wouldn't be found (AFAIK). So I attempt to perform the following, on the destination document: xText = xTextDocument_dest.getText(); try { XTextGraphicObjectsSupplier os = (XTextGraphicObjectsSupplier) UnoRuntime.queryInterface( XTextGraphicObjectsSupplier.class, xTextDocument_dest); XNameAccess as = os.getGraphicObjects(); if ((as != null) (as.hasElements())) { String names[] = as.getElementNames(); for (int i = 0; i names.length; i++) { Object o = (Object) as.getByName(names[i]); XTextContent xImage = (XTextContent) UnoRuntime.queryInterface( XTextContent.class, o); XPropertySet xProps = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, xImage); String url
[dev] TextGraphicObject, XTransferable and Save As, Microsoft Word, out of memory errors
Hello Folks... I am using the XTransferable Object to copy sections of a source document over to a destination document (that was opened as blank).. This seems to work, copying images, text, text styles etc. In terms of the source document I am loading images like so: protected void loadJpgImage(XText xText, String strImgFileName, int width, int height) { try { Object newImage = xWriterFactory_src.createInstance(com.sun.star.text.TextGraphicObject ); XTextContent xNewTextContent = ( XTextContent ) UnoRuntime.queryInterface(XTextContent.class, newImage); XTextCursor xTextCursor = xText.createTextCursor(); xTextCursor.gotoEnd(false); xText.insertTextContent( xTextCursor, xNewTextContent, false); XPropertySet xProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, newImage); xProps.setPropertyValue( GraphicURL, strImgFileName); xProps.setPropertyValue(AnchorType, TextContentAnchorType.AT_PARAGRAPH); xProps.setPropertyValue(Width, new Integer((int)(width))); xProps.setPropertyValue(Height, new Integer((int)(height))); } catch (Exception e) { e.printStackTrace(); System.out.println(Failed to insert Graphic); } } Then as the images loaded in to the source document and then copied over to the destination object by XTransferable as linked image(s). Moving the destination file over to another system/PC, the file wouldn't be found (AFAIK). So I attempt to perform the following, on the destination document: xText = xTextDocument_dest.getText(); try { XTextGraphicObjectsSupplier os = (XTextGraphicObjectsSupplier) UnoRuntime.queryInterface( XTextGraphicObjectsSupplier.class, xTextDocument_dest); XNameAccess as = os.getGraphicObjects(); if ((as != null) (as.hasElements())) { String names[] = as.getElementNames(); for (int i = 0; i names.length; i++) { Object o = (Object) as.getByName(names[i]); XTextContent xImage = (XTextContent) UnoRuntime.queryInterface( XTextContent.class, o); XPropertySet xProps = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, xImage); String url = (String)xProps.getPropertyValue(GraphicURL); PropertyValue aMediaProperties[] = new PropertyValue[1]; aMediaProperties[0] = new PropertyValue(); aMediaProperties[0].Name = URL; aMediaProperties[0].Value = url; // Create new XGraphic object XGraphic xNewGraphic = xGraphicProvider.queryGraphic(aMediaProperties); xProps.setPropertyValue(Graphic, xNewGraphic); } } } catch (Exception e) { e.printStackTrace(); } The resultant destination file can happily be saved and reopened in ODT format, but if I choose to Save AS a word doc, re-opening the file in office 2007 or mac office 2008, I get the following error/dialog: There is not enough memory or disk space to display or print the picture Although I have over 45GB spare with 4Gig of RAM... The Word Doc size is only 2.4MB in size. I have also tried iWork Pages, the images show, but the program also shows a warning saying, Type, Missing File, Value, Image. The Full Java code is here: http://www.nabble.com/file/p24296829/TextDocumentStructure3.java TextDocumentStructure3.java Any thoughts, ideas or how-to's? I've been trying to solve this for 3 days now. :( Its been driving me crazy. Thanks in advance, -- View this message in context: http://www.nabble.com/TextGraphicObject%2C-XTransferable-and-Save-As%2C-Microsoft-Word%2C-out-of-memory-errors-tp24296829p24296829.html Sent from the openoffice - dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] OO 2.4.0 compile/install help
For the last couple of days I have been trying to get OO 3 to compile, with no luck. I decided to try an older version, so I chose 2.4.0 (http://download.openoffice.org/2.4.0/source.html). I followed the instructions and it built with no errors. I am now trying to install my build and was following the instructions here: (http://tools.openoffice.org/dev_docs/build_linux.html#GetTheSourceCode) but I do not have a setup binary as described in the instructions. My directories are also different, ex: They say the setup should be here: $SRC_ROOT cd instsetoo_native/unxlngi4.pro/OpenOffice/install/en-US en-US ./setup but the closest I have is: :~/OOo2/OOH680_m12/instsetoo_native/unxlngx6.pro/OpenOffice/deb/install/en-US but no luck finding a setup binary. Does this mean that the build failed somehow but did not throw an error? Or am I just doing something wrong. Thanks everyone. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Ubuntu Linux OO.o compile errors
Christian Lohmaier wrote: Hi *, On Fri, May 16, 2008 at 07:34:58PM -0400, Chris Brown wrote: Thanks for the response. I downloaded cairo, made it, and installed it. It was a newer version, libcairo.so.2.17.15...the one that was erroring out was libcairo.so.2.17.3. Hopefully this will do it. Ill know in about 5 hours :) When building with cairo, you almost certainly need to specify --with-sytem-freetype, since the that is in OOo's sources just is too old. ciao Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks for the tip. I am going to try recompiling the whole thing again this afternoon. The last one didnt go so welllots of errors. Hopefully I have them resolved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Ubuntu Linux OO.o compile errors
Hello everyone. I am new to Linux and this list as well. I am attempting to compile OO.o build BEA300_m2 on my system running Ubuntu 8.04. I get about 4 hours into it and it has errored out twice now. Here are the last few lines from the terminal: * SHL1FILTERFILE not set! - dummy file to keep the dependencies for later use. -- Making: ../../unxlngx6.pro/lib/libofficebean.so g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib' -shared -L../../ unxlngx6.pro/lib -L../lib -L/home/chris/OpenOfficeSource/BEA300_m2/solenv/unxlngx6/lib -L/home/chris/OpenOfficeSource/BEA300_m2/solver/300/unxlngx6.pro/lib-L/home/chris/OpenOfficeSource/BEA300_m2/solenv/unxlngx6/lib -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/lib64 -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/jre/lib/amd64 -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/jre/lib/amd64/server -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/jre/lib/amd64/native_threads -L/usr/lib ../../unxlngx6.pro/slo/officebean_version.o -o ../../ unxlngx6.pro/lib/libofficebean.so ../../ unxlngx6.pro/slo/com_sun_star_comp_beans_LocalOfficeWindow.o ../../ unxlngx6.pro/slo/com_sun_star_beans_LocalOfficeWindow.o -ljawt -lstdc++ -ldl -lpthread -lm rm -f ../../unxlngx6.pro/lib/check_libofficebean.so mv ../../unxlngx6.pro/lib/libofficebean.so ../../ unxlngx6.pro/lib/check_libofficebean.so /home/chris/OpenOfficeSource/BEA300_m2/solenv/bin/checkdll.sh -L../../ unxlngx6.pro/lib -L/home/chris/OpenOfficeSource/BEA300_m2/solver/300/ unxlngx6.pro/lib ../../unxlngx6.pro/lib/check_libofficebean.so Checking DLL ../../unxlngx6.pro/lib/check_libofficebean.so ...: ERROR: /usr/lib/libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter dmake: Error code 1, while making '../../unxlngx6.pro/lib/libofficebean.so' ERROR: Error 65280 occurred while making /home/chris/OpenOfficeSource/BEA300_m2/bean/native/unix dmake: Error code 1, while making 'build_instsetoo_native' [EMAIL PROTECTED]:~/OpenOfficeSource/BEA300_m2$ * I was hoping someone here could help me figure out what I am doing wrong. I'm sure this probably isn't enough information so just let me know what you need to know. Thanks in advance! I look forward to meeting working with everyone in here. -chris brown
Re: [dev] Ubuntu Linux OO.o compile errors
Thanks for the response. I downloaded cairo, made it, and installed it. It was a newer version, libcairo.so.2.17.15...the one that was erroring out was libcairo.so.2.17.3. Hopefully this will do it. Ill know in about 5 hours :) On Fri, May 16, 2008 at 6:41 PM, Ariel Constenla-Haile [EMAIL PROTECTED] wrote: Chris Brown escribió: Hello everyone. I am new to Linux and this list as well. I am attempting to compile OO.o build BEA300_m2 on my system running Ubuntu 8.04. I get about 4 hours into it and it has errored out twice now. Here are the last few lines from the terminal: * SHL1FILTERFILE not set! - dummy file to keep the dependencies for later use. -- Making: ../../unxlngx6.pro/lib/libofficebean.so g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib' -shared -L../../ unxlngx6.pro/lib -L../lib -L/home/chris/OpenOfficeSource/BEA300_m2/solenv/unxlngx6/lib -L/home/chris/OpenOfficeSource/BEA300_m2/solver/300/ unxlngx6.pro/lib-L/home/chris/OpenOfficeSource/BEA300_m2/solenv/unxlngx6/lib -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/lib64 -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/jre/lib/amd64 -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/jre/lib/amd64/server -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/jre/lib/amd64/native_threads -L/usr/lib ../../unxlngx6.pro/slo/officebean_version.o -o ../../ unxlngx6.pro/lib/libofficebean.so ../../ unxlngx6.pro/slo/com_sun_star_comp_beans_LocalOfficeWindow.o ../../ unxlngx6.pro/slo/com_sun_star_beans_LocalOfficeWindow.o -ljawt -lstdc++ -ldl -lpthread -lm rm -f ../../unxlngx6.pro/lib/check_libofficebean.so mv ../../unxlngx6.pro/lib/libofficebean.so ../../ unxlngx6.pro/lib/check_libofficebean.so /home/chris/OpenOfficeSource/BEA300_m2/solenv/bin/checkdll.sh -L../../ unxlngx6.pro/lib -L/home/chris/OpenOfficeSource/BEA300_m2/solver/300/ unxlngx6.pro/lib ../../unxlngx6.pro/lib/check_libofficebean.so Checking DLL ../../unxlngx6.pro/lib/check_libofficebean.so ...: ERROR: /usr/lib/libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter I had this same error on SuSe when building other apps (for example Mozilla IIRC): libcairo.so: undefined reference to `FT_Library_SetLcdFilter libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter ... So I downloaded the sources from Cairo, and build it myself. Not the best solution, but since then I have no more troubles with Cairo libs. Google libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter and you may find something dmake: Error code 1, while making '../../ unxlngx6.pro/lib/libofficebean.so' ERROR: Error 65280 occurred while making /home/chris/OpenOfficeSource/BEA300_m2/bean/native/unix dmake: Error code 1, while making 'build_instsetoo_native' [EMAIL PROTECTED]:~/OpenOfficeSource/BEA300_m2$ * I was hoping someone here could help me figure out what I am doing wrong. I'm sure this probably isn't enough information so just let me know what you need to know. Thanks in advance! I look forward to meeting working with everyone in here. -chris brown -- Ariel Constenla-Haile La Plata, Argentina [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.ArielConstenlaHaile.com.ar/ooo/ Aus der Kriegsschule des Lebens - Was mich nicht umbringt, macht mich härter. Nietzsche Götzendämmerung, Sprüche und Pfeile, 8. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -chris brown
Re: [dev] Ubuntu Linux OO.o compile errors
No, I didn't remove any of it. Do I need to? Also, if an error like this happens, I fix it, and remove the unglngx6.pro will I be able to begin compiling where I left off or is a complete recompile necessary on every error? I guess I need to do some research on what the unglngx file does. On Fri, May 16, 2008 at 7:42 PM, Ariel Constenla-Haile [EMAIL PROTECTED] wrote: Chris Brown escribió: Thanks for the response. I downloaded cairo, made it, and installed it. It was a newer version, libcairo.so.2.17.15...the one that was erroring out was libcairo.so.2.17.3. Hopefully this will do it. Ill know in about 5 hours :) did you remove *all* you builded up to know? I always (yes...sadly with every new version, there are new build breakers) remove *only* the unxlngx6.pro folder in the module where the error ocurred, and then re-build. Regards Ariel. On Fri, May 16, 2008 at 6:41 PM, Ariel Constenla-Haile [EMAIL PROTECTED] wrote: Chris Brown escribió: Hello everyone. I am new to Linux and this list as well. I am attempting to compile OO.o build BEA300_m2 on my system running Ubuntu 8.04. I get about 4 hours into it and it has errored out twice now. Here are the last few lines from the terminal: * SHL1FILTERFILE not set! - dummy file to keep the dependencies for later use. -- Making: ../../unxlngx6.pro/lib/libofficebean.so g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib' -shared -L../../ unxlngx6.pro/lib -L../lib -L/home/chris/OpenOfficeSource/BEA300_m2/solenv/unxlngx6/lib -L/home/chris/OpenOfficeSource/BEA300_m2/solver/300/ unxlngx6.pro/lib-L/home/chris/OpenOfficeSource/BEA300_m2/solenv/unxlngx6/lib -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/lib64 -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/jre/lib/amd64 -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/jre/lib/amd64/server -L/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0/jre/lib/amd64/native_threads -L/usr/lib ../../unxlngx6.pro/slo/officebean_version.o -o ../../ unxlngx6.pro/lib/libofficebean.so ../../ unxlngx6.pro/slo/com_sun_star_comp_beans_LocalOfficeWindow.o ../../ unxlngx6.pro/slo/com_sun_star_beans_LocalOfficeWindow.o -ljawt -lstdc++ -ldl -lpthread -lm rm -f ../../unxlngx6.pro/lib/check_libofficebean.so mv ../../unxlngx6.pro/lib/libofficebean.so ../../ unxlngx6.pro/lib/check_libofficebean.so /home/chris/OpenOfficeSource/BEA300_m2/solenv/bin/checkdll.sh -L../../ unxlngx6.pro/lib -L/home/chris/OpenOfficeSource/BEA300_m2/solver/300/ unxlngx6.pro/lib ../../unxlngx6.pro/lib/check_libofficebean.so Checking DLL ../../unxlngx6.pro/lib/check_libofficebean.so ...: ERROR: /usr/lib/libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter I had this same error on SuSe when building other apps (for example Mozilla IIRC): libcairo.so: undefined reference to `FT_Library_SetLcdFilter libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter ... So I downloaded the sources from Cairo, and build it myself. Not the best solution, but since then I have no more troubles with Cairo libs. Google libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter and you may find something dmake: Error code 1, while making '../../ unxlngx6.pro/lib/libofficebean.so' ERROR: Error 65280 occurred while making /home/chris/OpenOfficeSource/BEA300_m2/bean/native/unix dmake: Error code 1, while making 'build_instsetoo_native' [EMAIL PROTECTED]:~/OpenOfficeSource/BEA300_m2$ * I was hoping someone here could help me figure out what I am doing wrong. I'm sure this probably isn't enough information so just let me know what you need to know. Thanks in advance! I look forward to meeting working with everyone in here. -chris brown -- Ariel Constenla-Haile La Plata, Argentina [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.ArielConstenlaHaile.com.ar/ooo/ Aus der Kriegsschule des Lebens - Was mich nicht umbringt, macht mich härter. Nietzsche Götzendämmerung, Sprüche und Pfeile, 8. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ariel Constenla-Haile La Plata, Argentina [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.ArielConstenlaHaile.com.ar/ooo/ Aus der Kriegsschule des Lebens - Was mich nicht umbringt, macht mich härter. Nietzsche Götzendämmerung, Sprüche und Pfeile, 8. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -chris brown
Re: [dev] How to run from solver
Hi Elke, many thanks. I will try that. Cheers Chris Eike Rathke wrote: Hi Chris, On Wed, Jun 07, 2006 at 22:19:33 +0200, Chris wrote: Question: How can I install my build in a separate directory without affecting the package system? Is it possible to run OO directly from the source tree ? You can use the following commands to unpack the DEBs and copy everything to an installation directory, note that you may want to exclude the openoffice.org-*-integration_* packages to not clutter up your desktop, so move them away first. mkdir temppath cd temppath for x in PathToDebs/*.deb; do alien --to-tgz --generate $x; done mkdir YourInstPath cp -av */opt/openoffice.org2.0/* YourInstPath Then edit YourInstPath/program/bootstraprc to let UserInstallation point to a path not interferring with your work environment. Do this before running OOo the first time. If building RPMs, ftp://ftp.stardiv.de/pub/OpenOffice.org/developer/install_scripts/ has some scripts to install RPMs in userland. Eike P.S.: As you're not subscribed to the mailing list you were posting to, you will miss replies that are directed to the list only. When answering, please reply only to the list (Reply-To header is set), not to my personal account. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] How to run from solver
Hello ! I just started trying to hack OO a bit. I finally made it to run a complete build from the CVS repository. The build ends with a bunch ob .deb files to install on my Debian system. Question: How can I install my build in a separate directory without affecting the package system? Is it possible to run OO directly from the source tree ? Any hints welcome. Thanks Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] OpenOffice without Java
All, I have some questions regarding the use of Java in OOo. 1. Would there be any OOo performance gains by disabling Java in the build process? 2. If java was disabled in the build what besides the Base application and some Wizards would be affected? 3. In order to build OOo without Java are there any other flags that need to be passed besides the --disable Java? Thanks, --Chris -Original Message- From: Nikolai Pretzell [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 6:53 AM To: dev@openoffice.org Subject: [dev] OOo scans by Coverity? Hi, in April there was a posting here by Ben Chelf, who announced that Coverity does OOo code scans. (See http://www.openoffice.org/servlets/ReadMsg?list=devmsgId=2565502) Meanwhile when I look at http://scan.coverity.com/, OOo does no longer seem to be listed there. Does anybody know details? Also I'd be interested, if some of the issues Coverity found (there have been about 50 in the OOo code itself) are worked on by anybody already? Best regards, Nikolai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] ./dmake: Permission Denied
Do an ls -lpa in your Cygwin window for that directory and see who the owner is. I had originally installed Cygwin as a different Windows user and it caused a very similar issue. I had to chown the tree to get the permissions correct. --Chris Alexandre Laforest wrote: Greetings I'm trying to build OOo b680 and after running the 'configure' and the 'bootstrap' scripts, I should be ready to build. But, still in tcsh shell, I type $SRC_ROOT dmake but I get this error: ./dmake: Permission denied I browsed and queried the dev mailing list and only found an old 2001 post: http://www.openoffice.org/servlets/ReadMsg?list=dev http://www.openoffice.org/servlets/ReadMsg?list=devmsgNo=1118 msgNo=1118 I tried the suggested fix (rehashing and/or re-sourcing 'winenv.set') to no avail. Any help or ideas greatly appreciated :) Thanks in advance! Alexandre Laforest - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Installing And Bypassing Registration Prompt
The easiest way I have found to do this is edit \OpenOffice.org 2.0\share\registry\data\org\openoffice\setup.xcu Change prop oor:name=ooSetupInstCompleted valuefalse/value /prop to prop oor:name=ooSetupInstCompleted valuetrue/value /prop Then add this right below it: prop oor:name=LicenseAcceptDate oor:type=xs:string value2006-05-16T12:55:49/value /prop prop oor:name=FirstStartWizardCompleted oor:type=xs:boolean valuetrue/value /prop --Chris Hal Vaughan wrote: I have a situation where I have to install OOo on a series of systems. Some will be used regularly, but in other cases, OOo will always be used in a headless mode. Under 1.x, this was workable and it wasn't a nightmare working out two ways to do it for Linux and Windows. I've got it working now, but I have one problem: The first time a user uses OOo, they have to register. This does not work on systems where it will always be run as headless. That means the installer had to start it an extra time and has created problems where someone forgot to do this and then a system was not working for days in the headless mode. I've only had this problem on Linux. I can set the value for running the initial wizard to false and it's on problem in Windows. I can't get it to work with Linux, though. I've seen many comments on this, but nothing that works. I saw several comments that said to edit Common.xcu and add this to the Registration node: prop oor:name=ReminderDate oor:type=xs:string value xsi:nil=true/ /prop prop oor:name=RequestDialog oor:type=xs:int value0/value /prop I've done that and it makes no difference. This is enough of a critical problem that we may have to discontinue use of OOo if it can't be solved. It wouldn't be so bad if OOo could be run in headless mode without the registration being done, but if it hasn't been registered, OOo won't start in headless mode. Any suggestions? Google has not been of much help on this. Thanks! Hal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Changing icons on quickstarter menu
All, I want to change the application icons on the quickstarter, on Windows. I want to replace the Writer icon with a MS Word like icon, etc. Does quickstarter use an .ico file for those app icons or a png file from the RES folder? Thanks, --Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] OT: Contract OpenOffice developer needed
All, I am in need of a contract developer who can do some menu / toolbar customization and a little re-branding. Please contact me off list for more information. Thanks, --Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] language.tar needed for a build?
Pavel Janík wrote: From: Chris H [EMAIL PROTECTED] Date: Fri, 03 Mar 2006 21:35:46 -0500 I am trying to build OOb-oob680_m5 on Windows 2003 / Cygwin. Is the language.tar file needed or do I just need the core.tar? The build failed saying it could not find localize.sdf. Processing File shlxthdl.ulf ... ERROR : Can't open localize.sdf You are using ooo-build. Please ask ooo-build related questions in ooo-build mailing lists. Yes, you need so called -lang package, see http://go-oo.org/packages/OOB680/. Thanks Pavel. It has been a bit frustrating just trying to find out what source to build. I didn't realize ooo-build was a separate entity. Per Volker's suggestions I am building OOo_2.0.2rc4_060227_src.tar.gz. Thanks again, --Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] language.tar needed for a build?
All, I am trying to build OOb-oob680_m5 on Windows 2003 / Cygwin. Is the language.tar file needed or do I just need the core.tar? The build failed saying it could not find localize.sdf. Processing File shlxthdl.ulf ... ERROR : Can't open localize.sdf dmake: Error code 255, while making '../../../../wntmsci10.pro/misc/shlxthdl/shlxthdl.ulf' ---* TARGET.MK *--- dmake: Error code 255, while making '../../../../wntmsci10.pro/misc/shlxthdl.dpc' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /home/build/oo/shell/source/win32/shlxthandler/res dmake: Error code 1, while making 'build_instsetoo_native' ---* *--- My configure completed with no waringings: ./configure --with-use-shell=tcsh --with-build-version=Office build 20060303 --with-nsis-path=$nsis --with-jdk-home=/cygdrive/c/j2sdk1.4.2_10 --with-ant-home=/cygdrive/c/ant --with-psdk-home=$psdk --with-cl-home=$vchome --with-midl-path=$midlpath --with-csc-path=$cscpath Thanks for putting up with my newb questions. --Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Error configuring Windows build environment
Volker Quetschke wrote: Most propably you have an invalid entry in your %PATH% variable. Volker, You are correct, it was a bad entry in the PATH variable. There was also another issue with the DirectX SDK. The instructions at http://tools.openoffice.org/dev_docs/build_windows_tcsh.html are not totally accurate. It states that the Summer 2004 SDK is not available any more. A quick Google gave me the link to download it. http://www.microsoft.com/downloads/details.aspx?FamilyId=FD044A42-9912-42A3-9A9E-D857199F888Edisplaylang=en The configure script checks to see if the DirectX SDK is installed by locating a registry entry. This entry is not present with the 2005 or 2006 SDK's, only with the 2004. After that was cleared up it has been building for about 3 hours. Thanks for the help. --Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Packimages.pl error during Windows build
I was trying to build against OOA680_m1which looks like the latest stable. What version should I be working with instead? m156? Thanks for your patience. --Chris On 3/1/06, Volker Quetschke [EMAIL PROTECTED] wrote: Volker Quetschke wrote: You build in a mounted cygwin directory, that's also brave ;) Last time (it's bin a while) I tried that, it actually worked for me, ... s/bin/been/ Oops, :) Volker -- If you like my work consider: http://www.scytek.de/donations.html PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Packimages.pl error during Windows build
Volker Quetschke wrote: $ ls -l /home/build/oo | grep default_images show? drwx--+ 27 Administrators None 0 Feb 24 15:34 default_images And what is the result of: $ /usr/bin/perl -e 'if( -x /home/build/oo/default_images){ print OK;};' ? That returns nothing. --Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Sun logo on when compiling from source?
Just curious (and impatient waiting for the build to finish), does the Sun logo still show up in places like the splash screen when compiling from source? Or is it just the pre-compiled binaries that have the Sun logo's? Thanks, --Chris
[dev] GCC 4.1 and OpenOffice build 2.0.1.2
Hi all, I'm currently building Open Office with gcc-4.1.0 20060120 snapshot. It says my compiler is unkown, and to post the configure results ( gcc.hpp:67:7:warning #warning Unknown compiler version... ). However, I'd like to know if the compiler unknown warning is based upon the version or the compiler itself. Should the results of the configure tests (are you looking for a config.log? Something along that?) be posted as requested, or has someone already done that? I've checked the archives and noticed a gjc related note for 4.1, but that's about it. I'll go ahead and save a log to watch for any warnings that are specific to that version. As for that status, it's compiled about 75% through (I estimate) and nothing's bombed out so far. Chris White
Re: [dev] GCC 4.1 and OpenOffice build 2.0.1.2
On Thursday 02 February 2006 08:01, Hanno Meyer-Thurow wrote: On Thu, 2 Feb 2006 06:32:46 +0900 Chris White [EMAIL PROTECTED] wrote: Hi all, Hi Chris, it won't break because of 'Unknown compiler version' warning. This comes from Gentoos gcc version like 4.1.0-beta20060127 instead of 4.1.0-20060127 Nothing to care about. Just a warning. Ok, thanks for clearing that up, wanted to make sure it wasn't anything that someone needed. For now I'll just let it compile away and see what sort of results it brings, then find any sort of warnings (One's that can be delt with without doing too much weird stuff with the code), and hopefully fix them. btw, this is all done on a PPC (32Bit), so it would be interesting to see the combination of the two. Chris White
[dev] One small job...
One small job for a developer ...one giant help for teacher-kind: I have developed a toolbar for Microsoft Word called Teacher's Pet which can be used to create classroom material. The toolbar incorporates a range of useful VBA macros and it is freely available for download from my website at www.teachers-pet.org. Since I began two years ago, the tool has been downloaded by some 41,000 teachers and the website is now visited by between 200 and 300 visitors per day. A search on Google for the words free teacher software gives a measure of the site's popularity. However, not all of my visitors download the toolbar and, judging by the regular emails that I receive, the reason for this is often that they do not have Microsoft Word - perhaps because, being teachers, they cannot afford such a suite. I have also received many direct requests for me to create a version of the Teacher's Pet for OpenOffice. This is something I would gladly do if I had the time, money or skills to achieve such a task, and this is why I am writing to you. The Teacher's Pet is a small tool which would require little effort to convert to OpenOffice for a programmer (which I am not). If someone were willing to arrange for the Teacher's Pet to be converted to OpenOffice, then you can be sure that I would actively encourage my visitors to download the OpenOffice suite and would fully credit OpenOffice for their support in making such the tool available to teachers. I see this not only as a great opportunity for those teachers who are currently unable to make use of the Teacher's Pet, but also as a great opportunity for OpenOffice to boost there presence in the Education sector. I hope this suggestion appeals to you. If you can offer any advice on how best to pursue this issue further, it would be greatly appreciated. Kind regards, Chris Lacey www.teachers-pet.org Skype: teachpet -Original Message- From: Louis Suarez-Potts [mailto:[EMAIL PROTECTED] Sent: 19 January 2006 05:58 To: Chris Subject: Re: Teachers-Pet.org Hi Chris, On 2006-01-18, at 13:27 , Chris wrote: Louis, I am not sure if you are the person to whom I should be sending this letter. If you are not, I apologise but would greatly appreciate it if you forwarded it to the appropriate person. Let's see if I am :-) I have developed a toolbar for Microsoft Word called Teacher's Pet which teachers can use to create classroom material. The toolbar incorporates a range of useful macros and it is freely available for download from my website at www.teachers-pet.org. okay... Since I began two years ago, the tool has been downloaded by some 41,000 teachers and the website is now visited by between 200 and 300 visitors per day. You need only search for the words free teacher software in Google to see that the Teacher's Pet is currently the most popular free software for teachers available on the web. However, not all of my visitors download the Teachers Pet and, judging by the regular emails that I receive, the reason for this is often that they do not have Microsoft Word - perhaps because, being teachers, they cannot afford such a suite. I have also received many direct requests for me to create a version of the Teacher's Pet for OpenOffice. This is something I would gladly do if I had the time, money or skills to achieve such a task, and this is why I am writing to you. Hm. The Teachers Pet is a small tool which would require little effort to convert to OpenOffice for a programmer (which I am not). If your organisation were willing to arrange for the Teachers Pet to be converted to OpenOffice, then you can be sure that I would actively encourage my visitors to download the OpenOffice suite and would fully credit OpenOffice for their support in making such a tool available. The way it works is a developer or group of them do it. Then it is done. In the case of OOo, which has such corporate interests, the corporate execs may allocate resources. But then they are marching to the beat of their own drummers. The overall community can suggest things that are important to do, but we can't just arrange for things to be done. So, this leaves us with marketing. What you can do, then, is to inform the developer community and others of your app/toolbar and how they can intervene. We can help by providing the marketing gravity (for lack of a better term) that will draw developers in. I see this not only as a great opportunity for those teachers who are currently unable to make use of the Teacher's Pet, but also as a great opportunity for OpenOffice to boost there presence in the Education sector. I'm sure it is, but the point is persuading other developers. I hope this suggestion appeals to you and I look forward to hearing from you soon. It does; does my response clarify things? best Louis Kind regards, Chris Lacey www.teachers-pet.org Tel. +36 30 409 7221
Re: [dev] OpenOffice.org internal documentation templates
Rumour has it Eike Rathke, on or about 29/04/2005 7:12 AM, whispered: You'll find all the specification stuff at http://specs.openoffice.org/, and of course you're not only free to use the template if you want to specify a new feature but you're obliged to do so ;) You'll find the template and the guidelines linked at the bottom of the page. Thanks Eike. A quick check of the specification template leads me to believe that you use this one document for Requirements, Specification, and Design. Is this true? Cheers, Chris PS - I'm checking for replies on the web archive. -- Chris Beck - http://pacanukeha.blogspot.com Why did the chicken cross the road? I blame society. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Load only OpenOffice text editor inside java app
Greetings: I am a developer which would like to load the text editor inside my java app. But unfortunately after going thru the api, i didn't see a way to load only the text editor, together with the functionality of the openoffice text documents, inside my java app. Is that a way to integrate the text editor inside my java app? regards, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] VBA Macro Conversion Request
I have a simple but painfully awkward request: Would you like to do lots of work for no money? On my website www.teachers-pet.org I offer a free Microsoft Word template for teachers that includes a range of useful macros for producing classroom exercises and games. I developed the tool myself, starting with zero knowledge of programming two years ago and learning as I went along. Since then I have had many requests from visitors to my site for this tool to be made available for OpenOffice. Unfortunately, I simply do not have the time or necessary skills to do the job and I have no idea how much work it would entail - though my amateur code may make the job more difficult than expected! I am looking for someone who would be interested in converting the tool to work in OpenOffice. However, as I receive donations that barely cover the cost of running the site, I can offer little more than credit for the work. If this fact is of any interest to you; I would also be very happy to encourage all those visitors to my site who do not have Microsoft Word (there are many poor teachers around the world who fit into this category) to download the OpenOffice suite so that they can utilise the macros. What do you say? Am I making a complete fool of myself by sending such a brazen request to a mailing list of serious professional developers, or what? Chris www.teachers-pet.org
Re: [dev] Opening SYLK from Java code
Niklas Nebel wrote: Chris wrote: I have Java code that opens OOo and Excel files in OOo. However it doesn't work with SYLK files. I set the convertor to be Flat XML File (Calc). Do I have to set it to something else for it to open SYLK files? Or is there some other trick? The filter name for SYLK files is just SYLK. If I set the convertor to be SYLK then the Java code, xstorable.storeAsURL(url, propertyvalue) throws an IOException. Is there some other trick involved? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Opening SYLK from Java code
I have Java code that opens OOo and Excel files in OOo. However it doesn't work with SYLK files. I set the convertor to be Flat XML File (Calc). Do I have to set it to something else for it to open SYLK files? Or is there some other trick? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] embed OpenOffice.org in C++ application
Hi, I need an application to 1) open a CSV file, 2) generate a chart from it, 3) display the chart within a fixed dimension GUI frame at a fixed location on the screen, 4) do this without the user viewing or manipulating the spreadsheet or chart. The application is C++, the GUI is Motif, and the OS is Solaris 8. I've been evaluating the SDK, but I can't tell if steps 3 and 4 are possible. I would appreciate any comments or suggestions. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]