Issue 42119 - Is any way to apply font size to all formulas i used in text document?
Summary: Is any way to apply font size to all formulas i used in text document?
Status: CLOSED DUPLICATE of issue 5092
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 1.1.3
Hardware: All All
: P3 Trivial with 4 votes (vote)
Target Milestone: ---
Assignee: requirements
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-05 12:53 UTC by vytis
Modified: 2008-03-26 14:52 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description vytis 2005-02-05 12:53:08 UTC
Currently it is possible to apply style on new entered formulas. It should be
way how to apply style (font, font size) on already antered formulas. 

I have article with 200 formuleas. I used default style for entering formulas
(font size 12pt). But according journal requirements, formulas must use font
size 10pt. 
Now i have manualy rewrite all formulas... :(
Comment 1 michael.ruess 2005-02-07 10:05:36 UTC
OO definitely needs a way to format Fonts/Fontsizes for MORE THAN ONE formula
AFTER these have been inserted into document.
Reassigned to "requirements".
Comment 2 ftack 2005-10-08 14:58:12 UTC
I would love if such a feature could be implemented through a style mechanism.
This way, equations copied from a different document could automatically inherit
the fonts and base font size of the current document, unless a manual override
is specified.
Comment 3 Regina Henschel 2007-10-22 22:38:56 UTC
The feature request for formula styles is also in issue 5092 and issue 12885.
Shouldn't we collect this request in one issue?
Comment 4 thomas.lange 2008-01-16 11:53:02 UTC
A useful workaround for the time being might be to use a macro:

Sub Main
	embeddedObjects = ThisComponent.getEmbeddedObjects()
	elementNames = embeddedObjects.getElementNames()
	for i=0 to UBOUND(elementNames)
		element = embeddedObjects.getByName(elementNames(i)).Model
		if (element.supportsService("com.sun.star.formula.FormulaProperties")) then
			element.BaseFontHeight = 20		
		endif
	next i
	ThisComponent.reformat()	
End Sub
Comment 5 thomas.lange 2008-01-16 11:54:33 UTC
The macro should work fine with OOo 2.x (at least with OOo 2.3 and 2.4).
Comment 6 michael.ruess 2008-03-26 14:51:56 UTC
Duplicate of issue 5092.

*** This issue has been marked as a duplicate of 5092 ***
Comment 7 michael.ruess 2008-03-26 14:52:17 UTC
Closing duplicate.