<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LiangXu Wang &#187; openoffice</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/openoffice/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlx.westgis.ac.cn</link>
	<description>technology backup/share</description>
	<lastBuildDate>Sat, 14 Jan 2012 03:56:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>odtphp: A nice library to output openoffice odt file</title>
		<link>http://wlx.westgis.ac.cn/711/</link>
		<comments>http://wlx.westgis.ac.cn/711/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 02:33:32 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Program]]></category>
		<category><![CDATA[libreoffice]]></category>
		<category><![CDATA[odt]]></category>
		<category><![CDATA[odtphp]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=711</guid>
		<description><![CDATA[Recently, I want to add a function in our data center website(Which is only Chinese version now, an English version is preparing): “output the geographic metadata to openoffice odt format”. So, the odtphp project came into my sight. After download &#8230; <a href="http://wlx.westgis.ac.cn/711/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently, I want to add  a function in our <a href="http://westdc.westgis.ac.cn" target="_blank">data center website</a>(Which is only Chinese version now, an English version is preparing): “output the geographic metadata to openoffice odt format”. So, the <a href="http://www.odtphp.com" target="_blank">odtphp project</a> came into my sight.</p>
<p>After download the 1.0.1 version, and try some tests in its code. There is no problem in the text replacing, but if I insert into the odt file an image, the OpenOffice (What I use is LibreOffice) always tell me this file need repair, although the repair result nice. Dig into another search, find this problem and<a href="http://vikasmahajan.wordpress.com/2010/12/09/odtphp-bug-solved/" target="_blank"> solution in the author&#8217;s blog</a>.</p>
<p>Use the latest version (1.3) in the author&#8217;s blog, this bug is disappeared. </p>
<p>There is another requirement in my site yet, maybe it is not a problem: The image file which is dynamic produced has not a extension in the url, So the code in odtphp: setImage must change its behavior here.</p>
<p>So I patched the code, and released it here (it&#8217;s GPL license):</p>
<blockquote><p><code>wlx@wlxpc:~$ diff odf.php odtphp-1.0.1_modified_files/odf.php<br />
111a112,113<br />
&gt;         $filename = strtok(strrchr($value, '/'), '/.');<br />
&gt;         $file = substr(strrchr($value, '/'), 1);<br />
116,118d117<br />
&lt;         $filename=md5($value);;<br />
&lt;         $imgext=array('.gif','.jpg','.png','.swf','.psd','.bmp','.tif','.tif','.jpc','.jp2','.jpx','.jb2','.swc','.iff','.wbmp','.xbm','.ico');<br />
&lt;         $file=$filename.$imgext[$size[2]];<br />
287,289c286<br />
&lt;             //$this-&gt;file-&gt;addFile($imageKey, 'Pictures/' . $imageValue);<br />
&lt;             $this-&gt;file-&gt;addFromString('Pictures/' . $imageValue,file_get_contents($imageKey));<br />
&lt;<br />
---<br />
&gt;             $this-&gt;file-&gt;addFile($imageKey, 'Pictures/' . $imageValue);</code></p></blockquote>
<p>In short, what I do: change the filenmae to a hash string (md5(source)), and save it with file_get_contents function (which could parse the url).</p>
<p>And, a big Thanks to you and your odtphp project: <a href="http://vikasmahajan.wordpress.com" target="_blank">Vikas Mahajan</a>.<br />
Download patch file: <a href='http://wlx.westgis.ac.cn/uploads/2011/11/odf.php_.patch_.zip'>odf.php.patch</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/711/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用openoffice计算时间差</title>
		<link>http://wlx.westgis.ac.cn/518/</link>
		<comments>http://wlx.westgis.ac.cn/518/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 18:24:23 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[datetime]]></category>
		<category><![CDATA[exiv2]]></category>
		<category><![CDATA[openoffice]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=518</guid>
		<description><![CDATA[原来一直不知道，因为要修改照片的EXIF时间信息，需要计算两个时间的差值。 用OPENOFFICE试验了一下，可以直接得到结果。 在单元格A1中输入时间1，如2008-10-31 20:05:25，在B1中输入另外一个时间，在C1中输入公式=A1-B1，就可以得到时间差，是时分秒的格式。 然后就可以用exiv2修改元数据了。]]></description>
			<content:encoded><![CDATA[<p>原来一直不知道，因为要修改照片的EXIF时间信息，需要计算两个时间的差值。<br />
用OPENOFFICE试验了一下，可以直接得到结果。<br />
在单元格A1中输入时间1，如2008-10-31 20:05:25，在B1中输入另外一个时间，在C1中输入公式=A1-B1，就可以得到时间差，是时分秒的格式。<br />
然后就可以用exiv2修改元数据了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/518/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>openoffice的小BUG</title>
		<link>http://wlx.westgis.ac.cn/351/</link>
		<comments>http://wlx.westgis.ac.cn/351/#comments</comments>
		<pubDate>Sun, 08 Apr 2007 05:56:00 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[feisty]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/351/</guid>
		<description><![CDATA[今天在升级feisty时，自动安装了一堆的KDE软件，但我记得我之前在这台机器上都没有安装过KDE程序，肯定是哪儿有问题。 去launchpad.net搜索没发现，到irc上就看到有人在说同样的问题，然后就有人汇报了这个bug： https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/104176 是openoffice.org-style-crystal这个包的问题，它推荐了kde-icons-crystal，然后就引起了一系列的连锁反应，最终是把kdesktop都关联上来了，等于是安装了kubuntu。 ubuntuforums里也有讨论： http://ubuntuforums.org/showthread.php?t=403685 从这里可以知道，apt-get不安装推荐包，但aptitude是要安装推荐包的，所以我用aptitude dist-upgrade会导致连锁反应。 BTW：社区发行的效率果然高阿。]]></description>
			<content:encoded><![CDATA[<p>今天在升级feisty时，自动安装了一堆的KDE软件，但我记得我之前在这台机器上都没有安装过KDE程序，肯定是哪儿有问题。<br />
去launchpad.net搜索没发现，到irc上就看到有人在说同样的问题，然后就有人汇报了这个bug：<br />
<a href="https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/104176">https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/104176</a><br />
是openoffice.org-style-crystal这个包的问题，它推荐了kde-icons-crystal，然后就引起了一系列的连锁反应，最终是把kdesktop都关联上来了，等于是安装了kubuntu。<br />
ubuntuforums里也有讨论：<br />
<a href="http://ubuntuforums.org/showthread.php?t=403685">http://ubuntuforums.org/showthread.php?t=403685</a><br />
从这里可以知道，apt-get不安装推荐包，但aptitude是要安装推荐包的，所以我用aptitude dist-upgrade会导致连锁反应。</p>
<p>BTW：社区发行的效率果然高阿。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/351/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenOffice 2.2发布</title>
		<link>http://wlx.westgis.ac.cn/341/</link>
		<comments>http://wlx.westgis.ac.cn/341/#comments</comments>
		<pubDate>Sat, 31 Mar 2007 10:32:01 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[openoffice]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/341/</guid>
		<description><![CDATA[http://software.solidot.org/software/07/03/31/0414218.shtml matrix 写道 OpenOffice.org发布了其最新的升级版本OpenOffice 2。详细的bug修正和新增的变化可看release notes。开发者的口号是“Office 2007的另一款真正选择”，希望能够争取更多用户使用而不要被Office 2007的新面孔而迷惑。微软Office的用户也会发现OpenOffice.org的升级真的很容易。” 从总体而言，OpenOffice 2.2版确实变得更好看了。比如字距调整（kerning），新技术改进了在均衡字符上的表现，字距调整被设为默认使用。OpenOffice上PDF格式输出功能上也得到了加强，通过额外提供的选项可创建书签，支持自定义输出表格域（form fields）。另从发布公告上可发现许多小的bugs在新版中修复了，大多数bugs都是与电子表格和数据库程序相关。” ubuntu feisty中已经包括了openoffice 2.2正式版，默认就应该是安装好的。]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.openoffice.org/branding/images/eggsopen_v6_with_gull.gif" alt="openoffice" /></p>
<p>http://software.solidot.org/software/07/03/31/0414218.shtml</p>
<blockquote><p> matrix 写道 OpenOffice.org发布了其最新的升级版本OpenOffice 2。详细的bug修正和新增的变化可看release notes。开发者的口号是“Office 2007的另一款真正选择”，希望能够争取更多用户使用而不要被Office 2007的新面孔而迷惑。微软Office的用户也会发现OpenOffice.org的升级真的很容易。” 从总体而言，OpenOffice 2.2版确实变得更好看了。比如字距调整（kerning），新技术改进了在均衡字符上的表现，字距调整被设为默认使用。OpenOffice上PDF格式输出功能上也得到了加强，通过额外提供的选项可创建书签，支持自定义输出表格域（form fields）。另从发布公告上可发现许多小的bugs在新版中修复了，大多数bugs都是与电子表格和数据库程序相关。”  </p></blockquote>
<p>ubuntu feisty中已经包括了openoffice 2.2正式版，默认就应该是安装好的。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/341/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenOffice 2.1发布</title>
		<link>http://wlx.westgis.ac.cn/310/</link>
		<comments>http://wlx.westgis.ac.cn/310/#comments</comments>
		<pubDate>Wed, 13 Dec 2006 14:36:37 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Impress]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/310/</guid>
		<description><![CDATA[引自solidot 包含了许多重要的改进。 支持64位Linux， 多屏幕图章支持， 改良的Calc HTML输出， 更新的自动通知 更多的语言等。 “多屏幕图章支持”这个没有看懂，去slashdot才看明白： It includes support for 64-bit Linux and a number of other improvements, including multiple monitor support for Impress, improved Calc HTML export, and automatic notification of updates. 这个翻译啊，无语了。 再继续深究下去，发现这儿有比较详细的说明： *Description* &#8212;&#8212;&#8212;&#8212;- &#8230; <a href="http://wlx.westgis.ac.cn/310/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>引自<a href="http://software.solidot.org/software/06/12/13/025247.shtml">solidot</a></p>
<blockquote><p>包含了许多重要的改进。<br />
支持64位Linux，<br />
多屏幕图章支持，<br />
改良的Calc HTML输出，<br />
更新的自动通知<br />
更多的语言等。
</p></blockquote>
<p>“多屏幕图章支持”这个没有看懂，去<a href="http://slashdot.org/articles/06/12/12/2224243.shtml">slashdot</a>才看明白：</p>
<blockquote><p>It includes support for 64-bit Linux and a number of other improvements,<br />
<strong> including multiple monitor support for Impress, </strong><br />
improved Calc HTML export,<br />
and automatic notification of updates.
</p></blockquote>
<p>这个翻译啊，无语了。<br />
再继续深究下去，发现<a href="http://www.mail-archive.com/allfeatures@openoffice.org/msg00349.html">这儿</a>有比较详细的说明：</p>
<blockquote><p>*Description*<br />
&#8212;&#8212;&#8212;&#8212;-<br />
With this feature you can select the monitor that displays the full<br />
screen slideshow from the impress application. Please see<br />
specification or help for more details.</p>
<p>*Specification URL*<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>http://specs.openoffice.org/impress/slideshow/ControllingSlideShow.odt</p>
</blockquote>
<p>简而言之，就是在作presentation的时候，假如你有多个显示器连接，你可以选择使用那个屏幕进行全屏展示。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/310/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ubuntu edgy下OpenOffice 2.0.3不能存盘</title>
		<link>http://wlx.westgis.ac.cn/251/</link>
		<comments>http://wlx.westgis.ac.cn/251/#comments</comments>
		<pubDate>Fri, 15 Sep 2006 04:04:30 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/251/</guid>
		<description><![CDATA[ubuntu edgy，现在有不能存盘的问题。 就是一存盘，就提示crash，然后恢复，再存盘，就一直循环下去了。 解决办法： 进入OpenOffice后，设置为使用OpenOffice.org对话框。 Options->OpenOffice.org->General and tick the box saying, Use OpenOffice.org dialogs. 问题的原因也找到了： https://launchpad.net/distros/ubuntu/+source/openoffice.org-amd64/+bug/58492]]></description>
			<content:encoded><![CDATA[<p>ubuntu edgy，现在有不能存盘的问题。<br />
就是一存盘，就提示crash，然后恢复，再存盘，就一直循环下去了。</p>
<p>解决办法：<br />
进入OpenOffice后，设置为使用OpenOffice.org对话框。</p>
<blockquote><p>Options->OpenOffice.org->General and tick the box saying, Use OpenOffice.org dialogs.</p></blockquote>
<p>问题的原因也找到了：</p>
<p>https://launchpad.net/distros/ubuntu/+source/openoffice.org-amd64/+bug/58492</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/251/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenOffice无法启动：用scim-bridge解决</title>
		<link>http://wlx.westgis.ac.cn/226/</link>
		<comments>http://wlx.westgis.ac.cn/226/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 08:51:37 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[scim-bridge]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/226/</guid>
		<description><![CDATA[总是找不到原因，一开始以为是显卡驱动的问题，因为不用ati的显卡驱动的确可以起来，但用ati的显卡驱动，以root帐号登录也可以使用。 换驱动，可以解决问题，但目前开源的驱动尚不能驱动我的显卡：ati radeon X1300。 后来才怀疑到scim的身上，于是安装scim-bridge sudo aptitude install scim-bridge 然后修改/etc/X11/xinit/xinput.d/zh_CN GTK_IM_MODULE=”scim-bridge” 应该也可以使用XIM的方法解决：参考http://wlxblog.westgis.ac.cn/171/]]></description>
			<content:encoded><![CDATA[<p>总是找不到原因，一开始以为是显卡驱动的问题，因为不用ati的显卡驱动的确可以起来，但用ati的显卡驱动，以root帐号登录也可以使用。<br />
换驱动，可以解决问题，但目前开源的驱动尚不能驱动我的显卡：ati radeon X1300。<br />
后来才怀疑到scim的身上，于是安装scim-bridge<br />
sudo aptitude install scim-bridge<br />
然后修改/etc/X11/xinit/xinput.d/zh_CN</p>
<blockquote><p>GTK_IM_MODULE=”scim-bridge”
</p></blockquote>
<p>应该也可以使用XIM的方法解决：参考<a href="http://wlxblog.westgis.ac.cn/171/">http://wlxblog.westgis.ac.cn/171/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/226/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>openoffice 2.0的一个BUG</title>
		<link>http://wlx.westgis.ac.cn/143/</link>
		<comments>http://wlx.westgis.ac.cn/143/#comments</comments>
		<pubDate>Thu, 15 Dec 2005 07:12:06 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[openoffice]]></category>

		<guid isPermaLink="false">http://blog.mygis.org/143/</guid>
		<description><![CDATA[若演示文件中含有在WINDOWS的OLE图片，比如VISIO图片，在浏览缩略图的时候会导致系统crash，严重时会导致X crash。 把openoffice的各个版本装了好几遍，才发现问题的所在，郁闷。]]></description>
			<content:encoded><![CDATA[<p>若演示文件中含有在WINDOWS的OLE图片，比如VISIO图片，在浏览缩略图的时候会导致系统crash，严重时会导致X crash。</p>
<p>把openoffice的各个版本装了好几遍，才发现问题的所在，郁闷。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/143/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

