poniedziałek, 28 listopada 2022
COOLDays 2022 - Berlin
poniedziałek, 6 czerwca 2022
New formulabar in Collabora Online
Previous "tunneled" approach had some disadvantages like blurry look under some conditions and cursor position setup depending on a pixel based coordinates. Now it become edit field which is rendered by the browser - so we have always crisp text. Position of the carret is represented as a logical value and also handled by the browser - so on touch devices it is much easier to type.
Here you can see how it looks on a smartphone:
poniedziałek, 14 czerwca 2021
Sidebar converted to „native” HTML controls
In the new approach we use HTML controls with „native” listboxes and spinfields instead of pictures generated by the server. The data transfer from the server to the browser for fields invalidation should be reduced as we don’t have to send images. Widgets can be now styled using the same CSS like other UI components what will improve look of the sidebar. Thanks to the conversion for a desktop I also improved the mobile menus and did few optimizations.
Sidebar is still under development but looks promising:
czwartek, 21 lutego 2019
Hack Week - Browsersync integration for Online
Recently my LibreOffice work is mostly focused on the Online. It's nice to see how it is growing with new features and has better UI. But when I was working on improving toolbars (eg. folding menubar or reorganization of items) I noticed one annoying thing from the developer perspective. After every small change, I had to restart the server to provide updated content for the browser. It takes few seconds for switching windows, killing old server then running new one which requires some tests to be passed.
Last week during the Hack Week funded by Collabora Productivity I was able to work on my own projects. It was a good opportunity for me to try to improve the process mentioned above.
I've heard previously about browsersync so I decided to try it out. It is a tool which can automatically reload used .css and .js files in all browser sessions after change detection. To make it work browsersync can start proxy server watching files on the original server and sending events to the browser clients if needed.
What is the advantage? Developer tools in the browser are not good enough?
- Changes tracked by git - no need to copy changes from the browser's developer tools to the source files
- You can setup testing matrix with all apps (writer, calc, impress) and all is reloaded instantly at one time (even on other devices like tablet or smartphone)
- Fast prototyping
Disadvantages
- You have to remember to run syntax tests before commiting the changes
To integrate browsersync I needed to do some build system changes. First, all static files are served from 'loleaflet/dist' directory. These files are not the original sources but copies. I modified the Makefiles to create symlinks instead if the browsersync is activated. Thanks to that we can modify sources tracked by git and proxy can detect changes.
To try it out on your own:
- Delete your 'loleaflet/dist' folder or
make clean
you might need to delete generated 'Makefile' if repository was used before - Install browsersync:
npm install -g browser-sync - Run 'configure' script with additional
--enable-browsersyncargument - Run server with:
LOOL_SERVE_FROM_FS=1 make run - In the other console run browsersync:
make sync-[writer|calc|impress]
In the video below you can see how it works:
Next step will be to allow browsersync usage with cloud storage integrations like richdocuments, I noticed also some issues with access from other devices (app is still using original server for some resources).
czwartek, 18 października 2018
wtorek, 27 marca 2018
Highlight colors customization for Calc
wtorek, 13 czerwca 2017
Watermark for LibreOffice Writer
I improved also export and import for that kind of shapes from .dotx files. Now font-family is correctly loaded:
RTF import also was improved, before Watermark was visible as a plain text:







