View previous topic :: View next topic |
Author |
Message |
Sokilw Pure-blooded Human

Joined: Nov 05, 2008 Posts: 37
|
Posted: Thu Jan 22, 2009 7:52 am Post subject: for writer |
|
paste and much style is wished  |
|
Back to top |
|
 |
pluby The Architect


Joined: Jun 16, 2003 Posts: 11949
|
Posted: Thu Jan 22, 2009 9:00 am Post subject: Re: for writer |
|
Sokilw wrote: | paste and much style is wished  |
I do not understand what you are asking for. By default, NeoOffice Writer copies and pastes Rich Text Format (RTF) which contains style information like font name, height, italics, and bold.
Patrick |
|
Back to top |
|
 |
Sokilw Pure-blooded Human

Joined: Nov 05, 2008 Posts: 37
|
Posted: Thu Jan 22, 2009 1:12 pm Post subject: Re: for writer |
|
pluby wrote: | Sokilw wrote: | paste and much style is wished  |
I do not understand what you are asking for. By default, NeoOffice Writer copies and pastes Rich Text Format (RTF) which contains style information like font name, height, italics, and bold.
Patrick |
Means Paste and fit content to the text in which we paste.
To preclude different style in paragraph or sentence. It's not a big problem but almost every time after "paste" additional text format is needed. |
|
Back to top |
|
 |
ovvldc Captain Naiobi

Joined: Sep 13, 2004 Posts: 2352 Location: Zürich, CH
|
Posted: Thu Jan 22, 2009 3:03 pm Post subject: |
|
You can do that by pasting as unformatted text. Then the pasted text will assume the style of the text it is being pasted into.
-Oz |
|
Back to top |
|
 |
pluby The Architect


Joined: Jun 16, 2003 Posts: 11949
|
Posted: Thu Jan 22, 2009 4:00 pm Post subject: |
|
ovvldc wrote: | You can do that by pasting as unformatted text. Then the pasted text will assume the style of the text it is being pasted into. |
To do this, select Edit :: Paste Special and you will see all of the "data flavors" that you can choose from. With text, you should see Rich Text Format and Unformatted Text as the options. As Oscar mentioned, the Unformated Text data flavor has no formatting data in it so the document's existing format will be applied to the pasted text.
Patrick |
|
Back to top |
|
 |
yoxi Cipher

Joined: Sep 07, 2004 Posts: 1799 Location: Dawlish, Devon
|
Posted: Thu Jan 22, 2009 4:56 pm Post subject: |
|
By default, the keyboard shortcut for Paste Special is cmd-shift-v, and then you choose the text-type - you can cut out a step and directly assign Paste Unformatted to a key combo using the following UNO macro:
Code: | sub pasteUnformatted
rem This macro directly pastes the clipboards text as Unformatted Text...
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 formatType(0) as new com.sun.star.beans.PropertyValue
formatType(0).Name = "SelectedFormat"
formatType(0).Value = 1
dispatcher.executeDispatch(document, ".uno:ClipboardFormatItems", "", 0, formatType())
end sub |
|
|
Back to top |
|
 |
sardisson Town Crier


Joined: Feb 01, 2004 Posts: 4588
|
Posted: Fri Jan 23, 2009 9:50 am Post subject: |
|
yoxi wrote: | By default, the keyboard shortcut for Paste Special is cmd-shift-v, and then you choose the text-type - you can cut out a step and directly assign Paste Unformatted to a key combo using the following UNO macro: |
Can you make sure this finds its way into the wiki somewhere (maybe just hang it off the Using Macros page if nothing else); it's too good a hint to just live out its days at the end of a forum thread....
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki |
|
Back to top |
|
 |
|