openoffice.org

Version-controlling zipped files (docx, odt)

感情迁移 提交于 2020-01-30 16:26:38
问题 There are formats that are actually zip files in disguise, e.g. docx or odt. If I store them directly in version control, they are handled as binary files. My ideal solution would be have a hook that creates a foo.docx/ directory for each foo.docx files before commit, unzipping all files into it optionally, have a hook that reindents the xml files have a hook that recreates foo.docx from the stored files after update I don't want the docx files themselves to be version-controlled. (I am aware

Version-controlling zipped files (docx, odt)

╄→尐↘猪︶ㄣ 提交于 2020-01-30 16:25:10
问题 There are formats that are actually zip files in disguise, e.g. docx or odt. If I store them directly in version control, they are handled as binary files. My ideal solution would be have a hook that creates a foo.docx/ directory for each foo.docx files before commit, unzipping all files into it optionally, have a hook that reindents the xml files have a hook that recreates foo.docx from the stored files after update I don't want the docx files themselves to be version-controlled. (I am aware

openoffice: duplicating rows of a table in writer

北战南征 提交于 2020-01-14 03:26:05
问题 I need to programmatically duplicate rows of a Table in openoffice writer. It's not difficult to add rows via table.Rows.insertByIndex(idx, count) , that adds empty rows and it's easy to add text in that row assigning DataArray to the CellRange . Doing this way you loose control on the style of the cells and specifically if a cell has words with different style (bold/italic) they get flattened to the same face. What I need is to duplicate a row in a way that preserves the style of each word

Problem copying HTML from JEditorPane to external applications

大城市里の小女人 提交于 2020-01-14 03:04:30
问题 I'm having trouble copying HTML from JEditorPane to system clipboard and then pasting into other applications: OpenOffice 3.2 - Says "Requested clipboard format isn't available" Thunderbird 3.13 - Does nothing on paste Firefox 3.6.9 - Accepts plain text but for example in GMail "Compose mail" does nothing on paste I'm running WinXP by the way. In other applications like text-editors, MS Outlook, MS Word etc. it works as expected, ie I get plain text with HTML tags stripped or formatted text

Formatted output in OpenOffice/Microsoft Word with Python

让人想犯罪 __ 提交于 2020-01-12 19:29:41
问题 I am working on a project (in Python) that needs formatted, editable output. Since the end-user isn't going to be technically proficient, the output needs to be in a word processor editable format. The formatting is complex (bullet points, paragraphs, bold face, etc). Is there a way to generate such a report using Python? I feel like there should be a way to do this using Microsoft Word/OpenOffice templates and Python, but I can't find anything advanced enough to get good formatting. Any

Formatted output in OpenOffice/Microsoft Word with Python

一笑奈何 提交于 2020-01-12 19:29:30
问题 I am working on a project (in Python) that needs formatted, editable output. Since the end-user isn't going to be technically proficient, the output needs to be in a word processor editable format. The formatting is complex (bullet points, paragraphs, bold face, etc). Is there a way to generate such a report using Python? I feel like there should be a way to do this using Microsoft Word/OpenOffice templates and Python, but I can't find anything advanced enough to get good formatting. Any

Add space between every letter

丶灬走出姿态 提交于 2020-01-09 19:07:11
问题 How can I add spaces between every character or symbol within a UTF-8 document? E.g. 123hello! becomes 1 2 3 h e l l o ! . I have BASH , OpenOffice.org , and gedit , if any of those can do that. I don't care if it sometimes leaves extra spaces in places (e.g. 2 or 3 spaces in a single place is no problem). 回答1: sed(1) can do this: $ sed -e 's/\(.\)/\1 /g' < /etc/passwd r o o t : x : 0 : 0 : r o o t : / r o o t : / b i n / b a s h d a e m o n : x : 1 : 1 : d a e m o n : / u s r / s b i n : / b

Add space between every letter

ぃ、小莉子 提交于 2020-01-09 19:06:33
问题 How can I add spaces between every character or symbol within a UTF-8 document? E.g. 123hello! becomes 1 2 3 h e l l o ! . I have BASH , OpenOffice.org , and gedit , if any of those can do that. I don't care if it sometimes leaves extra spaces in places (e.g. 2 or 3 spaces in a single place is no problem). 回答1: sed(1) can do this: $ sed -e 's/\(.\)/\1 /g' < /etc/passwd r o o t : x : 0 : 0 : r o o t : / r o o t : / b i n / b a s h d a e m o n : x : 1 : 1 : d a e m o n : / u s r / s b i n : / b

How to create ODS documents in .Net

家住魔仙堡 提交于 2020-01-05 04:40:10
问题 I'm going to convert an existing C# project, which writes an Excelfile with multiple tabs, to write ODS documents instead. I can open the existing Excel files in Open Office and convert them there, but this isn't a good solution in the long run. Anybody know of any existing (preferably free/open source) API's that let you do this? Or if not, a not too complex How-To? 回答1: Open Office is open source and has some section of its code that turns an internal representation into an ODS file. That

How do I generate an OpenOffice Draw document?

半世苍凉 提交于 2020-01-03 08:32:19
问题 I want to create a flowchart in OpenOffice Draw. Since there's a lot of steps to show (and may change in future) but I can extract the data, I want to automate the creation with the following steps: Create a new ODG document with specified page settings. Insert flow chart shapes with specified properties. Connect those things with arrows. Ideally, auto-organise things into sensible positions. I don't want to spend hours reading about some "UNO" thing - I just want code examples that I can