Hi Szabolcs, 2012/2/28 Dézsi Szabolcs <[email protected]>: > Hello! > > I created a new class in cui/. : CopyableWarningBox (copywarnbox.hxx and > copywarnbox.cxx). This class gets instantiated in > cui/source/dialogs/scriptdlg.cxx (last method). > > I couldn't manage to do the sizing dynamically, so it creates a fix > (500*300) > dialog. > > To test the dialog run ./soffice. Tools/Macros/Run Macro... > Expand LibreOffice Macros/Gimmicks/GetTexts and run GetCellTexts. >
Thanks for the patch, it is the first step into the right direction. A few notes: * When you create a new file, please use the boilerplate licence header, it is TEMPLATE.SOURCECODE.HEADER in root. Fill it in with your details, e.g. you are the initial contributor, etc. * What did you try for dynamical resizing? I did not try, but I think you can query the text width and height with GetCtrlTextWidth and GetTextHeight methods, then (textwidth % dialogwidth + 1)*textheight or something like this will give you the required height of the control. Would you please try and send a new patch? Thanks, Andras _______________________________________________ LibreOffice mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice
