New colour palette fear!

Discuss the word processor
Post Reply
Alexandrasaurus
Posts: 9
Joined: Sat Mar 30, 2013 1:47 pm

New colour palette fear!

Post 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.
Openoffice 4.0 on Windows 7
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: New colour palette fear!

Post 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.
AOO4/LO5 • Linux • Fedora 23
Alexandrasaurus
Posts: 9
Joined: Sat Mar 30, 2013 1:47 pm

Re: New colour palette fear!

Post 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?
Openoffice 4.0 on Windows 7
User avatar
RGB
Posts: 1456
Joined: Mon Oct 08, 2007 1:34 am

Re: New colour palette fear!

Post 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.
There are two types of people: those who believe that there are two types of people and those who do not.

openSUSE Leap with KDE Plasma / LibreOffice
Alexandrasaurus
Posts: 9
Joined: Sat Mar 30, 2013 1:47 pm

Re: New colour palette fear!

Post 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!
Openoffice 4.0 on Windows 7
User avatar
Hagar Delest
Moderator
Posts: 33411
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: New colour palette fear!

Post 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.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE Faye) and 24.8 portable on Windows 11.
User avatar
RGB
Posts: 1456
Joined: Mon Oct 08, 2007 1:34 am

Re: New colour palette fear!

Post 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 ;)
There are two types of people: those who believe that there are two types of people and those who do not.

openSUSE Leap with KDE Plasma / LibreOffice
SLV-es
Posts: 10
Joined: Sat Jul 27, 2013 1:36 am
Location: Spain

Re: New colour palette fear!

Post 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
OpenOffice 4.1.1 on Windows 7 / GNU-Linux Mint Mate (both 32bits)
Alexandrasaurus
Posts: 9
Joined: Sat Mar 30, 2013 1:47 pm

Re: New colour palette fear!

Post 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.
Openoffice 4.0 on Windows 7
SLV-es
Posts: 10
Joined: Sat Jul 27, 2013 1:36 am
Location: Spain

Re: New colour palette fear!

Post 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
OpenOffice 4.1.1 on Windows 7 / GNU-Linux Mint Mate (both 32bits)
User avatar
Hagar Delest
Moderator
Posts: 33411
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: New colour palette fear!

Post by Hagar Delest »

No idea for such operation! You should ask the dev mailing list.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE Faye) and 24.8 portable on Windows 11.
Post Reply