Hi,
I am working with the code related to docking of toolbars
[*here<http://opengrok.libreoffice.org/xref/core/framework/source/layoutmanager/toolbarlayoutmanager.cxx#2628>
*]. When a toolbar is docked, I need to reset all the toolbars in the row
such that there is equal spaces between each toolbar in a row. So, on any
docking action, I set the value of each toolbar by setting
aRowColWinData.aRowColumnWindowSizes[i].X in a separate function made by me
called just after this
*line<http://opengrok.libreoffice.org/xref/core/framework/source/layoutmanager/toolbarlayoutmanager.cxx#2845>
*. I rechecked from SAL_DEBUG which shows that values of al the toolbar are
correct as I wish to set, but actually docked toolbar takes correct
position and the position of pre-existing toolbars don't change and still
remain the same as was before the docking. Since these positions (of
pre-existing toolbars) were correctly written here (as shown by SAL_DEBUG)
but in the end the value remains unchanged (as shown in the UI by actually
running LO), means these values are overridden somewhere in between.
So, to gist - the toolbar that is getting docked takes its correct position
(and is shown correctly in the UI), but the problem is that the
pre-existing toolbars in the row never change their position + I am unable
to find that code. If someone is acquainted with the place where the
*absolute positions of toolbars in a row is set after some toolbar docking
action*, please help me with the same.
Thanks and Regards,
Prashant
IRC- elixir
Context
- [GSoC]: need help with toolbar layout · Prashant Pandey
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.