Hi All! Sorry for my belated report! I was busy with university stuff during weeks 1-2-3, but I was able to start work last week.
The first goal Tomaž and Kendy want me to achieve is to have the colors of the currently opened document available as a palette. To achieve this I added a method for getting all the colors to the SwDoc class, and I tried calling it from the palette toolbar code, but apparently the code pointer[1] given in the task description is not for the toolbar used in Writer or Draw, neither the ctor nor the methods of SvxColorDockingWindow get called when clicking the color toolbar. What I found instead is that SvxColorToolBoxControl[2] methods get called when the color toolbar in Writer is used. It seems to use UNO to listen to status changes. Right now I'm trying to figure out if this is the code for the toolbar where I have to make the changes, and how I'm going to achieve bidirectional communication between SwDoc and the toolbar code. If anyone has any insights about this, please don't hesitate to share them! Thank you! All the best, Krisztian Pinter [1] http://opengrok.libreoffice.org/xref/core/svx/source/tbxctrls/colrctrl.cxx [2] http://opengrok.libreoffice.org/xref /core/svx/source/tbxctrls/tbcontrl.cxx#2315
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice