Re: [Libreoffice] [EasyHack][#34697][MHST] How to get the current page number in Calc, Impress, Draw

2011-08-26 Thread Ta Duc Tung
On 08/18/2011 01:19 AM, Markus Mohrhard wrote: Hello, 2011/8/17 Ta Duc Tung mailto:tatung2...@gmail.com>> Hi, I'm trying to fix the bug number #34697 in https://bugs.freedesktop.org/show_bug.cgi?id=34697 (No option for printing current page). The bug was fixe

Re: [Libreoffice] [EasyHack][#34697][MHST] How to get the current page number in Calc, Impress, Draw

2011-08-18 Thread Ta Duc Tung
On 08/18/2011 01:19 AM, Markus Mohrhard wrote: I think we have someting in this direction already in calc. You should have a closer look at ScPrintFunc, especially at ScPrintfunc::PrintPage. Thank you, Markus. I will try to poke into ScPrintFunc :D Best Regards, Ta Tung ___

[Libreoffice] [EasyHack][#34697][MHST] How to get the current page number in Calc, Impress, Draw

2011-08-17 Thread Ta Duc Tung
Hi, I'm trying to fix the bug number #34697 in https://bugs.freedesktop.org/show_bug.cgi?id=34697 (No option for printing current page). The bug was fixed in Writer. Now I'm trying to make it in Calc. The problem is that I don't know how to get the current page number. If in Writer, I can get

Re: [Libreoffice] [MHST] GDB doesn't show name of methods in backtrace

2011-08-03 Thread Ta Duc Tung
On 08/02/2011 05:06 PM, Ta Duc Tung wrote: On 08/01/2011 06:55 PM, Michael Meeks wrote: Hi there, On Thu, 2011-07-28 at 01:09 +0700, Ta Duc Tung wrote: I've tried to make with debug=t but no change. GDB log still the same :( Any one please help! You need to 'make clean'

Re: [Libreoffice] [MHST] GDB doesn't show name of methods in backtrace

2011-08-02 Thread Ta Duc Tung
On 08/01/2011 06:55 PM, Michael Meeks wrote: Hi there, On Thu, 2011-07-28 at 01:09 +0700, Ta Duc Tung wrote: I've tried to make with debug=t but no change. GDB log still the same :( Any one please help! You need to 'make clean' in sw and then 'make debug=true'

Re: [Libreoffice] [MHST] GDB doesn't show name of methods in backtrace

2011-08-01 Thread Ta Duc Tung
2011-07-28 at 01:09 +0700, Ta Duc Tung wrote: I've tried to make with debug=t but no change. GDB log still the same :( Any one please help! You need to 'make clean' in sw and then 'make debug=true' - and -then- you need to ensure that your install is linked to the de

Re: [Libreoffice] [MHST] GDB doesn't show name of methods in backtrace

2011-07-27 Thread Ta Duc Tung
On 07/22/2011 06:51 PM, Andor E wrote: Hi, did you build module sw with debug=t? Otherwise you won't get any method names and line numbers. Greetings eymux On Fri, Jul 22, 2011 at 12:57 PM, Ta Duc Tung wrote: Hi, I've tried to add a radio button into print dialog for Writer. In

Re: [Libreoffice] [MHST] GDB doesn't show name of methods in backtrace

2011-07-27 Thread Ta Duc Tung
On 07/22/2011 06:51 PM, Andor E wrote: Hi, did you build module sw with debug=t? Otherwise you won't get any method names and line numbers. Greetings eymux On Fri, Jul 22, 2011 at 12:57 PM, Ta Duc Tung wrote: Hi, I've tried to add a radio button into print dialog for Writer. In

Re: [Libreoffice] [MHST] GDB doesn't show name of methods in backtrace

2011-07-23 Thread Ta Duc Tung
On 07/22/2011 06:51 PM, Andor E wrote: Hi, did you build module sw with debug=t? Otherwise you won't get any method names and line numbers. Greetings eymux On Fri, Jul 22, 2011 at 12:57 PM, Ta Duc Tung wrote: Hi, I've tried to add a radio button into print dialog for Writer. In

[Libreoffice] [MHST] GDB doesn't show name of methods in backtrace

2011-07-22 Thread Ta Duc Tung
Hi, I've tried to add a radio button into print dialog for Writer. In /sw/source/core/view/printdata.cxx, I have this piece of code (around line 310) http://pastebin.com/gMu70wYm ~~~ aChoices[3] = aLocalizedStrings.GetSt

Re: [Libreoffice] [MHST][Easy Hack] Get current page number for printing

2011-07-20 Thread Ta Duc Tung
Hi Christoph, all, On 07/19/2011 12:20 PM, Christoph Noack wrote: Hi TaTung, all! Sorry for answering so late ... Am Samstag, den 16.07.2011, 21:40 +0700 schrieb Ta Duc Tung: On 07/16/2011 07:29 PM, Christoph Noack wrote: [...] We are trying to hack into this easy hack https

Re: [Libreoffice] [MHST][Easy Hack] Get current page number for printing

2011-07-19 Thread Ta Duc Tung
On 07/18/2011 11:07 AM, Andrew Douglas Pitonyak wrote: On 07/16/2011 05:02 AM, Ta Duc Tung wrote: Hi, 1. How to get current page number for printing? We've found a variable mnCurPage from printdlg.cxx but it seems not to be the right one. I think it is current page numbe

Re: [Libreoffice] [MHST][Easy Hack] Get current page number for printing

2011-07-17 Thread Ta Duc Tung
On 07/18/2011 11:07 AM, Andrew Douglas Pitonyak wrote: On 07/16/2011 05:02 AM, Ta Duc Tung wrote: Hi, 1. How to get current page number for printing? We've found a variable mnCurPage from printdlg.cxx but it seems not to be the right one. I think it is current page numbe

[Libreoffice] [MHST][EasyHack] #38830 code review request

2011-07-17 Thread Ta Duc Tung
Hi, We've submitted a patch for easy hack number #34697 (#38830) about printing current page https://bugs.freedesktop.org/show_bug.cgi?id=38830 https://bugs.freedesktop.org/show_bug.cgi?id=34697 Above easy hacks are marked as duplicate so I've submitted to #34697. Please help me to review it :)

Re: [Libreoffice] [MHST][Easy Hack] Get current page number for printing

2011-07-16 Thread Ta Duc Tung
On 07/16/2011 07:29 PM, Christoph Noack wrote: Hi TaTung!, all! Am Samstag, den 16.07.2011, 16:02 +0700 schrieb Ta Duc Tung: Hi, We are trying to hack into this easy hack https://bugs.freedesktop.org/show_bug.cgi?id=38830 We're still studying source code. We have 2 questions:

[Libreoffice] [MHST][Easy Hack] Get current page number for printing

2011-07-16 Thread Ta Duc Tung
Hi, We are trying to hack into this easy hack https://bugs.freedesktop.org/show_bug.cgi?id=38830 We're still studying source code. We have 2 questions: 1. How to get current page number for printing? We've found a variable mnCurPage from printdlg.cxx but it seems not to be the right

Re: [Libreoffice] [MHST] Problem with building Libreoffice after modifying some trivial code

2011-07-16 Thread Ta Duc Tung
On 07/15/2011 08:37 PM, Caolán McNamara wrote: On Thu, 2011-07-14 at 20:57 +0200, Matúš Kukan wrote: On 14 July 2011 20:33, Ta Duc Tung wrote: Hi, I've run make clean and make but still failed, same error: Is it possible you did git pull -r in libs-gui but not in ure ? 'Ex

Re: [Libreoffice] [MHST] Problem with building Libreoffice after modifying some trivial code

2011-07-14 Thread Ta Duc Tung
module 'clean' /bin/sh cd /home/tatung/mhst2011/git/libo source ./LinuxX86Env.Set.sh cd i18npool build when the problem is isolated and fixed exit and re-run 'make' from the top-level make: *** [all] Error 1 ~~~~~~~ What sho

Re: [Libreoffice] [MHST] Problem with building Libreoffice after modifying some trivial code

2011-07-14 Thread Ta Duc Tung
On 07/14/2011 10:55 PM, Caolán McNamara wrote: On Thu, 2011-07-14 at 22:44 +0700, Ta Duc Tung wrote: Hi, After getting the code from repo, I could build it very well. Then I tried to modify some trivial code, building's still OK. However, after half of a day of browsing source code and *

[Libreoffice] [MHST] Problem with building Libreoffice after modifying some trivial code

2011-07-14 Thread Ta Duc Tung
Hi, After getting the code from repo, I could build it very well. Then I tried to modify some trivial code, building's still OK. However, after half of a day of browsing source code and *maybe* modified some code (I'm not sure about this cause I think I've disable all of my changes), I've com

Re: [Libreoffice] [MHST] Problem with make on fedora 15

2011-07-04 Thread Ta Duc Tung
Thank you Miklos. I've applied the patch and everything is ok now. Again, thank you very much tatung On 07/02/2011 06:46 PM, Miklos Vajna wrote: On Sat, Jul 02, 2011 at 01:16:09PM +0700, Ta Duc Tung wrote: Thank you for replying soon. Can you show me how to apply that patch? [1]

Re: [Libreoffice] Problem with make on fedora 15

2011-07-01 Thread Ta Duc Tung
+0700, Ta Duc Tung wrote: We are group of 3 students from Vietnam. We are trying to build Libreoffice on Fedora 15 Build environment

[Libreoffice] Problem with make on fedora 15

2011-07-01 Thread Ta Duc Tung
Hi, We are group of 3 students from Vietnam. We are trying to build Libreoffice on Fedora 15 Build environment: Fedora 15, default in