[Libreoffice-bugs] [Bug 128357] [Enhancement] "Default Style" should be first on all languages

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jan 31 15:51:10 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=128357

--- Comment #5 from Shivam Kumar Singh <shivamhere247 at gmail.com> ---
(In reply to Heiko Tietze from comment #4)
> (In reply to Pierre C from comment #3)
> > The problem is the same with page styles. Default style is not on the top.

Hi everyone , After working a lot on this bug I understood that :-

- the code pointer for page style is in 
 /sw/source/core/doc/DocumentStylePoolManager.cxx where the styles are declared 
 in line 497 .

- the style array is converted to a vector<OUString> in 
  SwStyleNameMapper::GetPageDescUINameArray and after that it is inserted into 
  unordered_map<OUString> in /sw/source/core/doc/SwStyleNameMapper.cxx in the 
  HashFromRange method .
I cannot follow the code after this point, also as we are employing an
unordered_map in HashFromRange , it does not really sort the elements in any
specific order . Where is the actual sorting of style names done  then ?

Someone please guide me on this .

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200131/9053550d/attachment.htm>


More information about the Libreoffice-bugs mailing list