I wish to set a character custom style only with these two “features”: italic and a given language (f.e. italic + German, or italic+French), leaving (keeping) preexisting font-size and font-type (Times, Arial and the like).
So far I’m not be able to do so, because when I set a custom character style I have to choose a particular font(type) and a particular (font-)size.
Thanks
EDIT
I know that with a macro it is possible
sub set_selection_deutsch
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Language"
args1(0).Value = "Current_German (Germany)"
dispatcher.executeDispatch(document, ".uno:LanguageStatus", "", 0, args1())
rem ----------------------------------------------------------------------
dim args2(0) as new com.sun.star.beans.PropertyValue
args2(0).Name = "Italic"
args2(0).Value = true
dispatcher.executeDispatch(document, ".uno:Italic", "", 0, args2())
end sub
But with a style?