Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - for writer
for writer
 
   NeoOffice Forum Index -> New Features Program
View previous topic :: View next topic  
Author Message
Sokilw
Pure-blooded Human


Joined: Nov 05, 2008
Posts: 37

PostPosted: Thu Jan 22, 2009 7:52 am    Post subject: for writer

paste and much style is wished Wink
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu Jan 22, 2009 9:00 am    Post subject: Re: for writer

Sokilw wrote:
paste and much style is wished Wink


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

PostPosted: Thu Jan 22, 2009 1:12 pm    Post subject: Re: for writer

pluby wrote:
Sokilw wrote:
paste and much style is wished Wink


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

PostPosted: 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
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: 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

PostPosted: 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
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: 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
Display posts from previous:   
   NeoOffice Forum Index -> New Features Program All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.