Return-Path: X-Original-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CC0F9FC0 for ; Tue, 5 Jun 2012 13:56:35 +0000 (UTC) Received: (qmail 55851 invoked by uid 500); 5 Jun 2012 13:56:35 -0000 Delivered-To: apmail-incubator-ooo-issues-archive@incubator.apache.org Received: (qmail 55819 invoked by uid 500); 5 Jun 2012 13:56:35 -0000 Mailing-List: contact ooo-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-issues@incubator.apache.org Delivered-To: mailing list ooo-issues@incubator.apache.org Received: (qmail 55810 invoked by uid 99); 5 Jun 2012 13:56:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 13:56:35 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.123] (HELO sif.zones.apache.org) (140.211.11.123) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 13:56:32 +0000 Received: by sif.zones.apache.org (Postfix, from userid 80) id A0C354616; Tue, 5 Jun 2012 13:56:11 +0000 (UTC) From: bugzilla@apache.org To: ooo-issues@incubator.apache.org Subject: [Bug 5092] formula styles Date: Tue, 05 Jun 2012 13:56:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: word processor X-Bugzilla-Component: code X-Bugzilla-Keywords: X-Bugzilla-Severity: trivial X-Bugzilla-Who: purity89@gmail.com X-Bugzilla-Status: CONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: requirements@qa.openoffice.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/ooo/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://issues.apache.org/ooo/show_bug.cgi?id=5092 --- Comment #13 from Filip Sund --- I couldn't get(In reply to comment #12) > Hi, > I'am pleased to give a macro. > See here : > You will find a file to test it and the extension. > > It's certainely not a "good macro" but it's "a macro" that I use every day > for > my work. > The macro does only what I need, it could do more if necessary. > However, there's still a problem, sometimes, with refreshing the document. > > The macro is in french, as you could suspect from my poor english, but I > think > you could easily manage with it. I couldn't get your macro to work (I get an error message about halfway through my document), but here is a simpler, more manual macro that does the job: Sub Main embeddedObjects = ThisComponent.getEmbeddedObjects() elementNames = embeddedObjects.getElementNames() for i=0 to UBOUND(elementNames) element = embeddedObjects.getByName(elementNames(i)).Model if (not isNull(element)) then if (element.supportsService("com.sun.star.formula.FormulaProperties")) then element.BaseFontHeight = 14 element.FontNameVariables= "Arial" element.FontNameFunctions = "Arial" element.FontNameNumbers= "Arial" element.FontNameText= "Arial" endif endif next i ThisComponent.reformat() End Sub Replace "Arial" with whatever font you want, and 14 with wanted font size. Thanks to Brecht Machiels at Superuser.com and the French OpenOffice Wiki. - - -- You are receiving this mail because: You are on the CC list for the bug.