forked from amazingfate/loongoffice
While at it, move some methods where they are used Change-Id: I56151046f068d355f9bfe9769c0aee7d9cf95f39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174036 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins