aboutsummaryrefslogtreecommitdiff
path: root/source/nb/dictionaries
ModeNameSize
-rw-r--r--af_ZA.po791logplain
-rw-r--r--an_ES.po772logplain
-rw-r--r--ar.po779logplain
-rw-r--r--be_BY.po777logplain
-rw-r--r--bg_BG.po816logplain
-rw-r--r--bn_BD.po751logplain
-rw-r--r--br_FR.po751logplain
-rw-r--r--bs_BA.po802logplain
-rw-r--r--da_DK.po810logplain
-rw-r--r--de.po871logplain
-rw-r--r--el_GR.po801logplain
-rw-r--r--en.po878logplain
d---------en70logplain
-rw-r--r--es.po841logplain
-rw-r--r--et_EE.po787logplain
-rw-r--r--fr_FR.po844logplain
-rw-r--r--gl.po844logplain
-rw-r--r--gu_IN.po757logplain
-rw-r--r--he_IL.po751logplain
-rw-r--r--hi_IN.po751logplain
-rw-r--r--hr_HR.po789logplain
-rw-r--r--hu_HU.po887logplain
d---------hu_HU70logplain
-rw-r--r--is.po807logplain
-rw-r--r--it_IT.po815logplain
-rw-r--r--kmr_Latn.po769logplain
-rw-r--r--lo_LA.po798logplain
-rw-r--r--lt_LT.po806logplain
-rw-r--r--lv_LV.po802logplain
-rw-r--r--ne_NP.po782logplain
-rw-r--r--nl_NL.po789logplain
-rw-r--r--no.po886logplain
-rw-r--r--oc_FR.po753logplain
-rw-r--r--pl_PL.po810logplain
-rw-r--r--pt_BR.po886logplain
d---------pt_BR70logplain
-rw-r--r--pt_PT.po829logplain
-rw-r--r--ro.po811logplain
-rw-r--r--ru_RU.po883logplain
d---------ru_RU70logplain
-rw-r--r--si_LK.po773logplain
-rw-r--r--sk_SK.po814logplain
-rw-r--r--sl_SI.po816logplain
-rw-r--r--sr.po828logplain
-rw-r--r--sv_SE.po830logplain
-rw-r--r--sw_TZ.po755logplain
-rw-r--r--te_IN.po807logplain
-rw-r--r--th_TH.po749logplain
-rw-r--r--uk_UA.po816logplain
-rw-r--r--vi.po756logplain
-rw-r--r--zu_ZA.po743logplain
n> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewport.cxx
AgeCommit message (Collapse)Author
2024-07-25tdf#85677: Add support for Windows touch gestures (panning,zooming)Tibor Nagy
Change-Id: Ib0243889621663ddb9b6789ede7643d54f06041e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170988 Tested-by: Jenkins Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
2024-01-20ofz#65979 Null-dereference READCaolán McNamara
Change-Id: I1eec7948bef2838a439fe05eedddb7245d3c2e31 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162331 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-11-13ofz#64106 Null-dereference READCaolán McNamara
Change-Id: Ie279f9f54fa6cc7fcc6add9b737d2c5dc248a236 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159349 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-08-02split Point/Size/Rectangle into AbsoluteScreenPixel* typesNoel Grandin
to attempt to make it obvious in code what kind of coordinate system we are dealing with. The idea is that by doing this, the compile-time type checking will flush out inconsistencies between different code. I started with vcl::Window::OutputToAbsoluteScreenPixel and worked outwards from there. Change-Id: Ia967d7a0bb38886695f3a761b85c8b9340ddb1c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154676 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-07-07Related: tdf#155462 Avoid tooltip window hide before showing againMike Kaganski
SwView::EndScrollHdl calls Help::ShowQuickHelp with empty text when nPgNum is not 0, which hides and destroys the window immediately. When moving the scrollbar thumb, tooltip should just move to the new position (and update text), which happens in ImplShowHelpWindow, if the window exist, and its parent is unchanged. So avoid hiding/destroying the tooltip window before checking if it should be updated, and only do that when necessary. Additionally, I noticed that the guarding condition around the code showing tooltip, 'if( !nPgNum || nPgNum != nPhNum )', was always true, because SwView::EndScrollHdl called previously makes sure that nPgNum is 0 unconditionally. Change-Id: Id10dd6236379660ab0b1d6f14159cfd4f9c61256 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154151 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-07-06Drop commented out obsolete codeMike Kaganski
Change-Id: I869e9f20e30f69d8da713f2c69b10a038169891f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154045 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-07-06tdf#155462: fix the scrollbar tooltip textMike Kaganski
Over the time when it was completely unused, it regressed in a couple of aspects: 1. It got assembled in incorrect order: instead of appending chapter, it got prepended in commit 832e5aadbff006ec24959162c29756fe2b1982be (Related: fdo#38838 remove UniString::SearchAndReplaceAll, 2013-10-08); 2. It started to show chapters, only when the respective heading are at the very top of screen, and show only page elsewhere, likely in commit 835cd06a047717dfe5e0f117959f3c042e13b21b (tdf#38093 Writer outline folding - outline visibility and on canvas ui, 2020-07-30), where a call to SwNode::FindOutlineNodeOfLevel was replaced with SwOutlineNodes::Seek_Entry in SwCursorShell::GetContentAtPos. Change-Id: I3f427f7ecb3b6c58a441220c555b22e765a533c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154077 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-06-30mbFrameView is dead sinceNoel Grandin
commit 407731c9f403c35357a0d1428c9b99835f79a5f7 Author: Noel Grandin <noel@peralex.com> Date: Tue Jul 21 10:44:17 2015 +0200 loplugin:unusedmethods sw removed the SetFrameView() method, which in turn was dead since commit 1c6da69ba2bc437d826573c7909a220290a67311 Author: Frank Schoenheit [fs] <frank.schoenheit@sun.com> Date: Mon Nov 30 12:56:05 2009 +0100 [CWS autorecovery] removed some dead/unused stuff Change-Id: I6e74dd7609ecd6ce459b6397a852caa6bde7fac8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153812 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-05-23categorize the reasons writer calls "LockPaint"Caolán McNamara
and bubble to a new InvalidateAll the collected reasons for that whole document Invalidate https: //github.com/CollaboraOnline/online/issues/6379 Change-Id: Id71c59f9cafebe42085337ee1e9591eb9f1162d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152162 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-02-16SfxViewShell::GetViewFrame never returns null, change to a referenceCaolán McNamara
various null checks can be seen to be redundant and removed Change-Id: Icf49c1de4b0302795d2769a370af3abceaad0221 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147147 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-12-14sw: React to touchpad zoom gestures in SwViewPovilas Kanapickas
Change-Id: I337e5d6873f9cf6d78cb53b2ffdb59a33a9465f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143753 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-12-14sw: Extract SwView::{MIN,MAX}_ZOOM_PERCENT constantsPovilas Kanapickas
Change-Id: Id593752274121ad41dcdeb215be410a3577d890a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143752 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-09-05Resolves: tdf#150797 page preview scrolling not updating positionCaolán McNamara
Change-Id: I8b495d755278ce850d69da8b7fb8588a4f111bd1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139444 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-17cid#1500480 Dereference before null checkCaolán McNamara
Change-Id: I15d9bd7be89eca4552f3d36571caa6a97dcc1b3a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138389 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08no need for ScrollBarBox when bg is already the desired colorCaolán McNamara
Change-Id: Id9dd4d4e3ba2c0b0a335fc9f8b1892cd70daf010 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137945 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-04tdf#150265: properly handle empty rectangle in SwView::CalcVisAreaMike Kaganski
Use PixelToLogic taking Rectangle for this job, that does everything required in this case. Before commit 9426e90c2c339b16487c48cd885a3e4586e1e1f3 Author Mike Kaganski <mike.kaganski@collabora.com> Date Thu Jul 21 09:29:32 2022 +0200 Cleanup restoring last position headless import always returned early from SwView::ReadUserDataSequence, because either !bGotVisibleBottom, or nBottom > (m_pWrtShell->GetDocSize().Height()+nAdd) was true. Thus, SetZoom wasn't called, and SwView::CalcVisArea wasn't called from it. After the change, in SetZoom, the empty rectangle created from passed zero Size got converted from pixels to logic, using transformation loosing its empty state. That resulted in some non-empty VisArea, and later in DOCX export of the table, WW8TableInfo::processSwTableByLayout got garbage from aTableCellInfo.getRect. Using proper Window::PixelToLogic overload allows to simplify and fix it all. Change-Id: Ib5e6d5bda10bf0f8dcb93ff6a46ca6cb81ff5a3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137807 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-08-04split SwScrollbar up for reuse of adaptorCaolán McNamara
Change-Id: Idf46b209c573316e810371597acb1567536d9529 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137806 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-03tdf#117388 use native scrollbar under gtk in writerCaolán McNamara
with the motivation that for gtk4 theming for vcl scrollbar isn't available, so it looks super yuck but this should also support the long-press scrolling thing under gtk3 as a side effect. Change-Id: Iada5a66087d5aa982f9213d7ec0a05f6177f4e66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137750 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-03repair writer's scrollbar tooltip featureCaolán McNamara
where aRect was unused from a missing Help::ShowQuickHelp etc. probably bad merge of commit 6005dd5366a86d6b7b1535233a99e24501e053a3 Date: Tue Dec 11 03:31:17 2012 +0000 Resolves: #i25945# Allow disabling scrollbar tips by API and configuration (cherry picked from commit a2bbabbe141de1303ebf052e5c22b6e77387785e) Change-Id: I72d11f1cdf075a5bb67c596406f19403655f86b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137742 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-07-26convert CRSR_SKIP_* to typed enumNoel Grandin
Change-Id: Ia5cb9915fc7ad3238f4386f5ed3e43efc4b74a32 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137478 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-07-13basegfx: zoomIn() and zoomOut() should be sal_uInt16Chris Sherlock
All zoom functions use sal_uInt16 values. For some reason, basegfx used long when zoomIn and zoomOut were created in 2012 (see commit 315d2ddc16: "optimized zoom to use more common intervals"), this then got mass converted to tools::Long in commit 387a88fa25: "use tools::Long in basegfx..chart2". So fix is to change zoomIn/Out() to use sal_uInt16. Change-Id: I2a56d6f58e14f77aeb8741d332fe9bc282eb969f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135715 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-05-01use more string_view in variousNoel Grandin
found by examining uses of OUString::copy() for likely places Change-Id: I6ff20e7b273ad6005410b82719183c1122f8c018 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133617 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-09-20clean up ambiguous confusing rectangle APIs like IsInside()Luboš Luňák
Reading 'rectA.IsInside( rectB )' kind of suggests that the code checks whether 'rectA is inside rectB', but it's actually the other way around. Rename IsInside() -> Contains(), IsOver() -> Overlaps(), which should make it clear which way the logic goes. Change-Id: I9347450fe7dc34c96df6d636a4e3e660de1801ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122271 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Luboš Luňák <l.lunak@collabora.com> Tested-by: Jenkins
2021-05-26make SwRect(Rectangle) constructor explicitNoel Grandin
Change-Id: I715aa9499598c483ccf907f829c9ba3540edf216 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116120 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-05-17split OutputDevice from WindowNoel Grandin
as part of a longer-term goal of doing our widget rendering only inside a top-level render- context. I moved all of the OutputDevice-related code that existed in vcl::Window into a new subclass of OutputDevice called WindowOutputDevice. Notes for further work (*) not sure why we are getting an 1x1 surface in SvpSalGraphics::releaseCairoContext, but to fix it I clamp the size there (*) might have to dump VCLXDevice, and move it's code down into VCLXWindow and VCLXVirtualDevice (*) can we remove use of VCLXDevice in other places, in favour of just talking to the VCL code? Change-Id: I105946377f5322677d6f7d0c1c23847178a720b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113204 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-05-14Outline folding experimental feature rehackJim Raykowski
* Changes the way the outline content visibility button is shown to similiar how the table un-float button is shown. * Toggle function is replaced by an invalidate function that makes outline content visible or not visible only if needed. * Removes the left and right arrow keys restrictions of cursor movement in and out of an outline node paragraph having outline content visibility attribute set false (folded outline content). These were prevented due to causing an assert in txtfrm.cxx SwTextFrame::MapModelToView but seems to do no harm here if allowed. * Makes a selection read-only if it spans an outline node that has folded content and disallows actions that would cause loss of folded content. * Adds RestoreSavePos when Move fails in SwCursor::LeftRight to fix a bug that occurs in documents with outline content folded at the end of the document. When the cursor is at the end of the visible document and right arrow key is pressed Move fails after moving the cursor to the end of the document model, which doesn't have a node frame and causes wierd numbers to be displayed in the statusbar page number count. Left arrow, when in this state causes a crash without the added RestoreSavePos. * Addresses tdf#141390 concerning position of view when feature is turned off and on. Change-Id: I0430f73643201aa08ffc347c1597b44b1de290e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114255 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2021-04-09Recheck include/ with IWYUGabor Kelemen
See tdf#42949 for motivation Change-Id: Ifc253bf800bb1468b5774663a93f4fb30bec81d3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113657 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-11-16replace std::max(std::min()) with std::clampNoel
Change-Id: I890d19f5e2177294dc1175c90c98b964347f9e85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105751 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-12Revert "remove Fraction::operator tools::Long()"Noel Grandin
This reverts commit 48b667a7e7d25f835f95df89162a7849d6972531. Reason for revert: some discussion required Change-Id: Ia0990d280837fb68b7ddc9f472ec78b1467b4311 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105540 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-12remove Fraction::operator tools::Long()Noel
which was added in commit 331e2e5ed3bf4e0b2c1fab3b7bca836170317827 Author: Noel Grandin <noel.grandin@collabora.co.uk> Date: Thu Sep 14 08:49:52 2017 +0200 long->sal_Int32 in Fraction presumably to make the change impact less code. Instead, update the call sites to reflect the actual bitwidth of the data we will be receiving. Change-Id: If2a678b1cf534f39cb8cb249757462be53658309 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105607 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-11make tools::Long 64-bit on Windows platformNoel Grandin
This is only for the 64-bit windows platform. I don't see the point in messing with the 32-bit platforms, they are (a) become more and more rare (b) unlikely to even have enough available process memory to load extremely large calc spreadsheets The primary problem we are addressing here is bringing Windows-64bit up to same capability as Linux-64bit when it comes to handling very large spreadsheets, which is caused by things like tools::Rectangle using "long", which means that all the work done to make Libreoffice on 64-bit Linux capable of loading large spreadsheets is useless on Windows, where long is 32-bit. The operator<< for tools::Rectangle needs to be inside the tools namespace because of an interaction with the cppunit printing template stuff that I don't understand. SalPoint changed to use sal_Int32, since it needs to be the same definition as the Windows POINT structure. Change-Id: Iab6f1af88847b6c8d46995e8ceda3f82b6722ff7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104913 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-20use tools::Long in swNoel
Change-Id: I44be72b3a9b14823ec37a3c799cffb4fb4d6e1de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104527 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-30loplugin:flatten in sw/uibase/sidebar..sw/uibase/unoNoel Grandin
Change-Id: Ifc9c838ffc94e89d2049969ef28d66fed853548b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99765 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-06-16sw: remove useless SET_CURR_SHELL macroMiklos Vajna
Perhaps it did something useful in the past, but it's better to expand it in its current form. Change-Id: I404e8d274f15a178f519d42a1ecd993c1e530f91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96384 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-04-15add an IsEmpty method to tools::Size and use itNoel Grandin
Change-Id: I7f5201e2ea6c74329336e16bf219630e38ff92cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92264 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-04-11rename vcl::Window::Update to PaintImmediatelyNoel Grandin
To make the code easier to read. Change-Id: Iebc648150391939fba5d1cd815c72dbcf02ceec6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90378 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-16tdf#42949 Fix IWYU warnings in sw/source/uibase/[u-w]*/*cxxGabor Kelemen
Also backtrack a bit and introduce several fw declarations in sw/inc/hintids.hxx to get rid of TypedWhichId -based blacklist entries Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I8487737f5c3327c24b105328e84661d409f381c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86873 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-06-12Revert "improve empty tools::Rectangle (width)"Noel Grandin
This reverts commit a46a257794f1f53b294735fc876c394be23a3811. Too many issues, I'm going to try landing this in smaller pieces to make it easier to fix regressions Change-Id: Ie5e8979838017af86c119c887b580385ba068d54 Reviewed-on: https://gerrit.libreoffice.org/73859 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-06-07improve empty tools::Rectangle (width)Noel Grandin
This is the width part, the height part will come next. Instead of storing "empty" as a special value (which is easy to get wrong, eg. some image filters pass in that special value, expecting it to be a valid width), just use separate boolean values for width and height empty. Also lots of code was calling GetBottom() or GetRight() on an empty rectangle, getting back that magic value and doing calculations on it, resulting in completely bogus data. So (1) make the various Rectangle methods do something reasonable when the empty flags are set (2) fix various other code to handle empty better (3) assert when code accesses Bottom or Right and the empty flag is set. Change-Id: I1163378cd2773dd8b386210f83400bb6b4701069 Reviewed-on: https://gerrit.libreoffice.org/73564 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>