Page 1 of 1
New colour palette fear!
Posted: Fri Jul 26, 2013 7:22 pm
by Alexandrasaurus
I have just installed Openoffice 4 and would like to switch to the new colour palette. However, the release notes seem to suggest that not all the old colours are on the new palette.
I use several different colours to highlight areas of text so I'm wondering: if some of the colours I have used are only on the old palette, will my highlights be lost when I install the new palette or will they be replaced by similar colours?
Alexandra.
Re: New colour palette fear!
Posted: Fri Jul 26, 2013 8:51 pm
by acknak
Alexandrasaurus wrote:... not all the old colours are on the new palette.
Yes, that's correct.
... will my highlights be lost when I install the new palette or will they be replaced by similar colours?
Your old highlights will maintain the same colors--nothing will be lost.
However, with the new palette installed, you won't have any easy way to choose some of the old colors. If the document uses old colors that are not defined in the new palette, there won't be any way to apply them. You can always add to the new palette any colors you might need from the old palette, but it's a bit of a chore to do that.
Re: New colour palette fear!
Posted: Fri Jul 26, 2013 9:26 pm
by Alexandrasaurus
Thanks, acknack.
I don't mind using new colours instead of the old ones, I was just worried that highlighted sections would not be highlighted anymore because they were highlighted in colours that were not on the new palette. Just in case though - is it easy to revert to the old palette if necessary?
Re: New colour palette fear!
Posted: Fri Jul 26, 2013 10:17 pm
by RGB
Look at the third note under
"known issues" on the release notes.
You can also use this extension:
ooEs Palette. Note that there are two versions, one for AOO 3.4.x and the other for 4.x.
Re: New colour palette fear!
Posted: Fri Jul 26, 2013 10:50 pm
by Alexandrasaurus
Thanks RGB. I had seen that note - that's how I knew the new palette does not contain all the old colours. Thanks for the extension tip!
Re: New colour palette fear!
Posted: Fri Jul 26, 2013 11:44 pm
by Hagar Delest
RGB, for the record, you can change the number of columns displayed in the palette. It may help improving the extension so that each hue is displayed on a row without the following one.
See:
http://www.mail-archive.com/dev@openoff ... 06830.html
Don't know if it's easy to implement with the extension.
Re: New colour palette fear!
Posted: Fri Jul 26, 2013 11:52 pm
by RGB
Hagar Delest wrote:RGB, for the record, you can change the number of columns displayed in the palette. It may help improving the extension so that each hue is displayed on a row without the following one.
See:
http://www.mail-archive.com/dev@openoff ... 06830.html
Don't know if it's easy to implement with the extension.
No idea. I'll pass the suggestion to the extension author

Re: New colour palette fear!
Posted: Sat Jul 27, 2013 1:58 am
by SLV-es
Hello
I am "author"
I'll try changing the extension to set the palette to 10 or 12 columns, at will.
I'll informed of progress
thanks
Re: New colour palette fear!
Posted: Sat Jul 27, 2013 9:58 pm
by Alexandrasaurus
I think I may have found a bug in the palette - or at least in the old one. Basically, the old palette seems to be infinitely resizeable but if you try to make it too small, Openoffice crashes. I haven't tried it with the new palette as I haven't installed it yet.
Re: New colour palette fear!
Posted: Mon Sep 02, 2013 8:07 pm
by SLV-es
Hello
I tried to change the value from 12 to 10 columns.
I could not find the string "ColorValueSetColumnCount" in the file contents.
Any ideas?
Code: Select all
Sub ooEsP_Columns(nCols As Integer)
'--------------------------------------------------------------------------------------------
' <prop oor:name="ColorValueSetColumnCount" oor:type="xs:short"><value>12</value></prop>
Dim oFileText As Object, sf As Object, FileStream As Object
Dim LineOfText As String, myFile As String
myFile = ConvertToURL("C:\Program Files\OpenOffice 4\share\registry\main.xcd")
sf = CreateUNOService("com.sun.star.ucb.SimpleFileAccess")
On Local Error GoTo FileError
FileStream = sf.openFileRead(myFile)
oFileText = CreateUNOService("com.sun.star.io.TextInputStream")
oFileText.InputStream = FileStream
oFileText.Encoding = "ISO-8859-15"
Do While Not oFileText.IsEOF
LineOfText = oFileText.readLine
If InStr(LineOfText, "ColorValueSetColumnCount") > 0 Then
MsgBox(LineOfText)
EndIf
Loop
FileStream.closeInput
oFileText.closeInput
MsgBox "End"
On Local Error GoTo 0
Exit Sub
FileError:
On Local Error Resume Next
MsgBox("File read error !", 16)
FileStream.closeInput
oFileText.closeInput
On Local Error GoTo 0
End Sub
The file "main.xcd" should be edited as administrator.
I think that although I find the string "ColorValueSetColumnCount", I may not save changes
Re: New colour palette fear!
Posted: Mon Sep 02, 2013 9:39 pm
by Hagar Delest
No idea for such operation! You should ask the dev mailing list.