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

Download or installation problems? Try these steps
Problems after upgrading to NeoOffice 2017? Try these steps


Support
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


RSS Feeds
· Announcements Only
· All Posts


  
NeoOffice :: View topic - for writer
for writer
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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 Reply with quote

paste and much style is wished Wink
Back to top
View user's profile Send private message
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11856
Location: California, USA

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

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
View user's profile Send private message Visit poster's website
Sokilw
Pure-blooded Human


Joined: Nov 05, 2008
Posts: 37

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

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
View user's profile Send private message
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Thu Jan 22, 2009 3:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11856
Location: California, USA

PostPosted: Thu Jan 22, 2009 4:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Thu Jan 22, 2009 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Fri Jan 23, 2009 9:50 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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.
Page Generation: 0.03 Seconds