Apache OpenOffice (AOO) Bugzilla – Issue 122387
[sidebar] Font colour of text inside a shape in Writer not set by toolbar item
Last modified: 2022-10-28 12:54:26 UTC
- New Writer document - Insert a shape - Write some text inside the shape - Try to change the text colour with the "Font Color" toolbar item in the Text properties panel of the Sidebar The colour does not change. On TextPropertyPanel::TextPropertyPanel mpToolBoxFontColor(ControlFactory::CreateToolBox( mpToolBoxFontColorBackground.get(), rContext.GetApplication_DI() == sfx2::sidebar::EnumContext::Application_WriterVariants ? SVX_RES(TB_FONTCOLOR_SW) : SVX_RES(TB_FONTCOLOR), rxFrame)), when the context is Writer, the controller is created for ".uno:FontColor", as defined in ToolBox TB_FONTCOLOR_SW. This works for text in text context but not for drawing context. In Writer, font colour of text inside shape can be set with ".uno:Color", not with ".uno:FontColor", this command is the one on the toolbar (right-click on the drawing toolbar, select "Visible Buttons" and set "Font Color" visible).
Added a second toolbox for the font color. Now we have mpToolBoxFontColor for .uno:Color and mpToolBoxFontColorSW for .uno:FontColor. The right toolbox is selected when the text panel is created or on context changes.
"af" committed SVN revision 1486603 into trunk: 122387: Use the right tool box for font color in text sidebar.