path: root/sw/qa/uibase/frmdlg
AgeCommit message (Collapse)AuthorFilesLines
2021-06-11sw image anchor type: consider a style-based custom valueMiklos Vajna2-0/+27
The anchor type is determined during insertion, it's stored as direct formatting after that. We used to have a user-profile default for the anchor type. This commit allows customizing the Graphics or OLE styles: if they specify a custom anchor type, then that is user instead of the user profile setting. This allows creating templates where the default depends on the used template and not on the user profile. The UI for this was added in commit 5951da5175b9d7e5b3b47bd0d90989d2ef528c79 (sw image anchor type: add style UI for this, 2021-06-10). Change-Id: Id05342a5f38dc6267cdbe68b248dc50b87854ce2 Reviewed-on: Reviewed-by: Miklos Vajna <> Tested-by: Jenkins
2021-01-10fix coverity parse errorsCaolán McNamara1-1/+1
Change-Id: I4884bfb67a061b865e8cf38b2fea6de0cb1bc3d6 Reviewed-on: Tested-by: Jenkins Reviewed-by: Caolán McNamara <>
2020-12-26New loplugin:stringliteralvarStephan Bergmann1-1/+1
See the comment at the top of compilerplugins/clang/stringliteralvar.cxx for details. (Turned some affected variables in included files into inline variables, to avoid GCC warnings about unused variables.) Change-Id: Ie77219e6adfdaaceaa8b4e590b08971f2f04c83a Reviewed-on: Tested-by: Jenkins Reviewed-by: Stephan Bergmann <>
2020-07-30sw: extract createDoc() from various test suites to a single getSwDoc()Miklos Vajna1-15/+1
Change-Id: I72d769860be8a401416e57111bea91d7a26ea4e7 Reviewed-on: Tested-by: Jenkins Reviewed-by: Miklos Vajna <>
2020-07-27tdf#134610 sw: fix incorrect position of math object from DOCXMiklos Vajna2-0/+51
Regression from commit a2f85c062aafb3fd9dfb1c6c6e87e1e73e7545a3 (tdf#130362 sw: fix anchoring of inline math objects, 2020-02-04), the problem was that the SwFlyFrameAttrMgr ctor wanted to set the anchor type to at-char, and then later DocumentContentOperationsManager::InsertEmbObject() wanted to undo that for math objects, but this did not play nicely with objects imported from DOCX. So don't set and clear the anchor type, rather set it conditionally in the first place. This allows setting the anchor type in writerfilter/ before insertion, and then all of 1) docx import (depends) 2) insert of Math objects (as-char) 3) insert of images (at-char) are working. Change-Id: I94d82c12f30d069426db1bab70c456cadf1c91ef Reviewed-on: Reviewed-by: Miklos Vajna <> Tested-by: Jenkins