Hi Szabolcs,
2012/2/28 Dézsi Szabolcs <dezsiszabi@hotmail.com>:
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
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.