Return-Path: X-Original-To: apmail-openoffice-dev-archive@www.apache.org Delivered-To: apmail-openoffice-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 43AB1E81B for ; Tue, 15 Jan 2013 10:28:10 +0000 (UTC) Received: (qmail 72524 invoked by uid 500); 15 Jan 2013 10:28:09 -0000 Delivered-To: apmail-openoffice-dev-archive@openoffice.apache.org Received: (qmail 72427 invoked by uid 500); 15 Jan 2013 10:28:09 -0000 Mailing-List: contact dev-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openoffice.apache.org Delivered-To: mailing list dev@openoffice.apache.org Received: (qmail 72410 invoked by uid 99); 15 Jan 2013 10:28:09 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 10:28:09 +0000 Received: from localhost (HELO [9.155.131.51]) (127.0.0.1) (smtp-auth username hdu, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 10:28:08 +0000 Message-ID: <50F52F5B.7070707@apache.org> Date: Tue, 15 Jan 2013 11:28:43 +0100 From: Herbert Duerr User-Agent: generic MIME-Version: 1.0 To: dev@openoffice.apache.org Subject: Re: Adding a new type of cursor on LINUX platform References: <201301151640038281915@cs2c.com.cn> In-Reply-To: <201301151640038281915@cs2c.com.cn> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Hi, On 15.01.2013 09:40, Liang Weike wrote: > I want to add a new type of cursor into office. Currently I've finished it on Windows. But when I run it on Linux the new cursor disappears. So how to write #_mask.h and #_curs.h? And does it come from the converted .cur file? If it does, then how to convert? I'm afraid the tool that did such conversions is no longer available and has to be rewritten. The format of these *_mask.h and *_curs.h files are the ones written out by X11's XWriteBitmapFile() [1] function. The Windows CUR file format is described in [2]. [1] http://www.x.org/archive/X11R7.5/doc/man/man3/XReadBitmapFile.3.html [2] http://en.wikipedia.org/wiki/ICO_%28icon_image_file_format%29 You'd also need to use the MAKE_CURSOR macro in main/vcl/unx/generic/app/saldisp.cxx and main/vcl/unx/gtk/app/gtkdata.cxx Hope that helps, Herbert