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 BC3A0EF8D for ; Tue, 15 Jan 2013 10:56:55 +0000 (UTC) Received: (qmail 54296 invoked by uid 500); 15 Jan 2013 10:56:55 -0000 Delivered-To: apmail-openoffice-dev-archive@openoffice.apache.org Received: (qmail 54060 invoked by uid 500); 15 Jan 2013 10:56:55 -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 54038 invoked by uid 99); 15 Jan 2013 10:56:54 -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:56:54 +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:56:54 +0000 Message-ID: <50F53619.9060107@apache.org> Date: Tue, 15 Jan 2013 11:57:29 +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> <50F52F5B.7070707@apache.org> In-Reply-To: <50F52F5B.7070707@apache.org> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit On 15.01.2013 11:28, Herbert Duerr wrote: > 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 FWIW both "imagemagick" and "icotool" can read *.cur files and convert them to a more common format. > 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