Re: [Libreoffice] [GSoc] Students and mentors, apply now!
On 03/29/2011 12:18 AM, Cedric Bosdonnat wrote: Hi all, this reminder is for both the students and the mentors: please apply now on Google Melange. http://www.google-melange.com/gsoc/org/show/google/gsoc2011/libreoffice * Students applications can be filed from March 28th (yesterday) to April 8th (less than 2 weeks). * Mentors need to apply now too in order to be able to participate in the applications selection process after that period. Don't hesitate to tell me if you have any trouble to apply. Hello, I will be applying to LibreOffice for GSoC. I haven't put together my proposal yet, because the wiki says that applicants need to fix a bug to be accepted. I'm still working on the "Print current page" Easy Hack, but I have midterms this week, so I haven't had much time to dedicate to that this week. My question is this: Should I finish fixing my bug before making and submitting my proposal, or should I submit my proposal and just get my bug fixed ASAP? Thanks in advance -- Skyler Hawthorne a.k.a. Cosmopolitan ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] [EasyHack][Print current page] How to get the last active page number?
Hello all, I am working on the EasyHack "Print current page" ( http://wiki.documentfoundation.org/Easy_Hacks#Print_current_page ), and I need a little help. I believe I've found out how to change the default value: In PrintDialog::setupOptionalUI, it appears the default text for the page range edit box is set on line 1507 ( http://opengrok.libreoffice.org/xref/libs-gui/vcl/source/window/printdlg.cxx#1507 ). As a test, I commented out line #1516, where it actually sets the string value for the edit box, and added: rtl::OUString curActivePageNum( RTL_CONSTASCII_USTRINGPARAM("2") ); pField->SetText( curActivePageNum ); maPController->setValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PageRange" ) ), makeAny( curActivePageNum ) ); And that sets the PrinterController's PageRange property to 2, and sets it as the default value for the edit box. Now, I just need to be able to access the current document's page number. However, I've been digging through this code all weekend, and I cannot find anything that stores that value. Is it some other PropertyValue stored in maPController? If so, what is the name? Is there some static function that can access information about the current document? Any help is much appreciated. -- Skyler Hawthorne a.k.a. Cosmopolitan ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] [BUG 32598] How to access the current document from a MediaWindow?
Hello, all! I am Skyler Hawthorne, and I am a student hoping to work with LibreOffice on this year's Summer of Code. I am working on a BS in Computer Science, currently finishing up my lower division courses at a community college before I transfer to California State University, Northridge. My nickname on the IRC channel is "cosmopolitan". Now that introduction is out of the way, I was hoping someone could help me with a bug! As per the LO GSoC Wiki ( http://wiki.documentfoundation.org/Development/GSoc ), I am working on an EasyHack bug. I chose Bug #32598 ( https://bugs.freedesktop.org/show_bug.cgi?id=32598 ). I assume that there is some function called something like "setChanged()" or something to that effect that just needs to be added to the code that controls the video. Using opengrok, I found that "mediawindow.cxx" appears to control Mute and Repeat with its "setMute()" and "setPlayBackLoop()" functions, respectively. From here, I was just going to add the call to the function that broadcasts the document's modification, but I don't see any "getSdDrawDocument()" function, or any other that grabs the current document. MediaWindow does not inherit anything, and I've been unable to find the function on opengrok, so I've run out of places to look. Can someone help me find the function that returns the current document? And for those knowledgeable, would my proposed fix be sufficient? Thanks in advance -- Skyler Hawthorne a.k.a. Cosmopolitan ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice