1. 16 Kas, 2015 29 kayıt (commit)
    • Mihai Varga's avatar
      LOK: calc formula callback + formula bar implementation in gtk · 8a5cf61b
      Mihai Varga yazdı
      We need the callback to be able implement the formula bar
      
      Change-Id: I1c78ab0b9ed9304c0465a9993a7101f8efb91052
      
      Conflicts:
      	include/LibreOfficeKit/LibreOfficeKitEnums.h
      	libreofficekit/source/gtk/lokdocview.cxx
      
      Conflicts:
      	libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
      	libreofficekit/source/gtk/lokdocview.cxx
      8a5cf61b
    • Mihai Varga's avatar
      LOK: setClientZoom() - sets the client zoom level · c4d5cbfa
      Mihai Varga yazdı
      We need to know the client's view level to correctly handle the mouse
      events in calc. PaintTile() set a zoom level that corresponds to the
      requested tiles and previously postMouseEvent would call SetZoom(1,1).
      Now we can make use of knowing the client's view level and call
      SetZoom() with the correct parameters
      
      Change-Id: I34b5afcdcc06a671a8ac92c03e87404e42adf4cd
      
      Conflicts:
      	sc/source/ui/unoobj/docuno.cxx
      
      Conflicts:
      	libreofficekit/source/gtk/lokdocview.cxx
      	libreofficekit/source/gtk/tilebuffer.hxx
      c4d5cbfa
    • Miklos Vajna's avatar
      SwPostItField::dumpAsXml: survive 0 mpText · de0dd50f
      Miklos Vajna yazdı
      And no need to copy it to be able to dump it.
      
      Change-Id: I5c0782c489a5d7c24173a81cc82efd195c4aa56e
      (cherry picked from commit 44c7272f)
      de0dd50f
    • Miklos Vajna's avatar
      CppunitTest_desktop_lib: add Writer comments textcase · ac6c75b7
      Miklos Vajna yazdı
      Fails without e.g. the last hunk of commit
      1ba9d7fd (sw lok: forward key events to
      annotation window if necessary, 2015-11-12).
      
      Change-Id: I7f39530881f6141fea956b751aa57eb2bdcadcb2
      (cherry picked from commit 1118689e)
      ac6c75b7
    • Miklos Vajna's avatar
      CppunitTest_sw_tiledrendering: replace various ifdefs with a single condition · b7dc1edd
      Miklos Vajna yazdı
      LOK is Linux-only at the moment, don't bother with disabling each and
      every unit test on Mac/Windows for now.
      
      Change-Id: I2ff1ed47251c16ec6a8d43138789480d95ea720e
      (cherry picked from commit 18dfcbb1)
      b7dc1edd
    • Miklos Vajna's avatar
      sw lok comments: implement mouse move and mouse up · bd929bc5
      Miklos Vajna yazdı
      As long as we don't tweak the map mode of the comment widgets
      permanently we also have to disable the selection engine's timer, as
      that would emit events without the correct map mode: so disable that for
      the LOK case for now.
      
      (cherry picked from commit b3dc0d7c)
      
      Conflicts:
      	sw/inc/SidebarWin.hxx
      	sw/source/uibase/docvw/SidebarTxtControl.hxx
      
      Change-Id: If377ff2f064c30feb473f153f9d5b29b8ace7113
      bd929bc5
    • Miklos Vajna's avatar
      sw lok comments: fix cursor position of a newly created sidebar window · ac9cf739
      Miklos Vajna yazdı
      With this, pressing ctrl-alt-c to create a new comment has the correct
      cursor position.
      
      Change-Id: Icb8d708dab015d8ffa9bcfe28de66238a75b50bc
      (cherry picked from commit d78432e9)
      ac9cf739
    • Miklos Vajna's avatar
      sw lok comments: fix callback of newly created outliner views · f06a9ec1
      Miklos Vajna yazdı
      SwPostItMgr::registerLibreOfficeKitCallback() already took care of
      informing existing outliners, this commit gives a callback to newly
      registered ones as well.
      
      (cherry picked from commit dacc616f)
      
      Conflicts:
      	sw/inc/drawdoc.hxx
      	sw/source/core/draw/drawdoc.cxx
      
      Change-Id: I660dcb54231a9d404bf80b4284003d119dae6a5c
      f06a9ec1
    • Miklos Vajna's avatar
      sw lok comments: implement setTextSelection() API · 2aa91f0d
      Miklos Vajna yazdı
      So that it's possible to drag the text selection start/end handles in
      comment text when there is an existing selection.
      
      (cherry picked from commit e320d070)
      
      Conflicts:
      	sw/source/uibase/docvw/SidebarWin.cxx
      
      Change-Id: I3acc4770928d4f385f0ca09a2484a9e112409907
      2aa91f0d
    • Miklos Vajna's avatar
      sw lok comments: emit invalidation events in SidebarTextControl · 33bc6f8b
      Miklos Vajna yazdı
      With this, newly typed characters show up instantly in comments, not
      only after changing the zoom level.
      
      (cherry picked from commit 4cbbaf57)
      
      Conflicts:
      	sw/source/uibase/docvw/SidebarTxtControl.hxx
      
      Change-Id: I1470db1ec03cc415917375f1f95434cf0944e559
      33bc6f8b
    • Miklos Vajna's avatar
      sw lok comments: fix position of blinking cursor after mouse click · 7e9a60c9
      Miklos Vajna yazdı
      LOK always works in absolute twips (origo being the top left corner of
      SwEditWin), so not only the callbacks have to translate relative twips
      to absolute ones, but the opposite have to be done for mouse event
      coordinates.
      
      With this, clicking at a random position inside a comment places the
      blinking cursor at a reasonable position, not always at 0,0.
      
      (cherry picked from commit 57972554)
      
      Conflicts:
      	sw/source/uibase/docvw/SidebarWin.cxx
      
      Change-Id: Ic8d20f177acd9e1908acf17698c53a1470bd4aec
      7e9a60c9
    • Miklos Vajna's avatar
      sw lok: disable comment menu button for now · f12c15f2
      Miklos Vajna yazdı
      Change-Id: Ic052544b2835181652732b8de9eaf79572a9db6e
      (cherry picked from commit 022c716f)
      f12c15f2
    • Miklos Vajna's avatar
      editeng lok: respect origin of map mode for TEXT_SELECTION · cac5525f
      Miklos Vajna yazdı
      With this, selections of Writer comment text show up at the correct
      position, not at the top left corner of the window.
      
      Change-Id: If865503d9a02a27730e382d65c42c706dd533a93
      (cherry picked from commit 22e97c13)
      cac5525f
    • Miklos Vajna's avatar
      sw lok: fix blinking cursor position of comments · a792468f
      Miklos Vajna yazdı
      With this, it is possible to click inside a comment (and get a blinking
      cursor inside a comment), and also possible to use the arrow keys to
      native around and still get correct blinking cursor position.
      
      (cherry picked from commit 5fb91dfd)
      
      Conflicts:
      	sw/inc/SidebarWin.hxx
      	sw/source/uibase/docvw/SidebarTxtControl.hxx
      	sw/source/uibase/docvw/SidebarWin.cxx
      
      Change-Id: I29eb1e60e4e571151f0b18bec8cf765ea09af09f
      a792468f
    • Miklos Vajna's avatar
      editeng lok: respect origin of map mode for INVALIDATE_VISIBLE_CURSOR · 739dad1e
      Miklos Vajna yazdı
      Writer comments are separate widgets, but we want to have coordinates in
      absolutes twips, so give Writer a chance to inform us about the delta.
      
      For now only do this in case the map unit is twips, as Impress sets the
      origin already.
      
      Change-Id: Idf340944165e44b0888c00965d6be7798712ff76
      (cherry picked from commit e988ab84)
      739dad1e
    • Miklos Vajna's avatar
      sw: don't show main cursor when editing a postit · 8d3c7181
      Miklos Vajna yazdı
      This is primarily for tiled editing that doesn't know about multiple
      cursors, so if both the postit cursor and the main cursor is shown for a
      short period of time, then the main one is hidden, then gtktiledviewer
      still shows the main one.
      
      OTOH if we can avoid showing the cursor in general just to hide it a bit
      later in general, let's not do that.
      
      With this, the "cursor is shown at the comment anchor, not inside the
      anchor when clicking on the postit" bug disappears.
      
      Change-Id: I2383292c5f84604dc8b126510b0797b8426920ae
      (cherry picked from commit 1c482cb5)
      8d3c7181
    • Miklos Vajna's avatar
      sw lok: forward key events to annotation window if necessary · ba040aa0
      Miklos Vajna yazdı
      And to allow proper reaction by the annotation windows, inform them when
      a LOK callback is registered.
      
      With this, it's possible to modify the contents of annotations via LOK.
      
      (cherry picked from commit 1ba9d7fd)
      
      Conflicts:
      	sw/inc/PostItMgr.hxx
      	sw/inc/SidebarWin.hxx
      	sw/source/core/view/viewsh.cxx
      	sw/source/uibase/docvw/SidebarTxtControl.hxx
      	sw/source/uibase/docvw/edtwin.cxx
      
      Change-Id: I4489941512197880940e20cbaeb0b47a7a6f26fc
      ba040aa0
    • Miklos Vajna's avatar
      sw lok: route SwEditWin::MouseButtonDown to SidebarTextControl if necessary · 2f678408
      Miklos Vajna yazdı
      LOK sends all mouse events to SwEditWin, so add initial hit testing in
      its mouse handler to forward the mouse events to the right VCL widget.
      
      (cherry picked from commit b7ecf627)
      
      Conflicts:
      	sw/inc/PostItMgr.hxx
      	sw/source/uibase/docvw/SidebarWin.cxx
      	sw/source/uibase/docvw/edtwin.cxx
      
      Change-Id: I67e8e19f47156261fd7c7eafd4e63f743e0c4ce9
      2f678408
    • Miklos Vajna's avatar
      sw lok: fix sidebarwindows::SwSidebarWin pixel position · 932353eb
      Miklos Vajna yazdı
      So SwSidebarWin member functions don't get twip values when they call
      GetPosPixel().
      
      Change-Id: Ied4ff7f49d0320766b045d78f731900af92d37ef
      (cherry picked from commit c4ef30ea)
      932353eb
    • Miklos Vajna's avatar
      This PixelToLogic() call can be conditional in SwSidebarWin::SetPosAndSize() · 1ec988ed
      Miklos Vajna yazdı
      It is only needed when tiled rendering.
      
      (cherry picked from commit 88f48668)
      
      Conflicts:
      	sw/source/uibase/docvw/SidebarWin.cxx
      
      Change-Id: Ie1668f5f3d4d17abc212e2262a6c155dcb855d2e
      1ec988ed
    • Miklos Vajna's avatar
      sw lok: fix length of the line overlay above the notes · 155c57d4
      Miklos Vajna yazdı
      With this, e.g. a line above a note (with width of 180 px) is also 180
      px, not 12 px.
      
      (cherry picked from commit 09640807)
      
      Change-Id: I7c4eeda1bc904242dc298013411b9671ba0f2149
      155c57d4
    • Miklos Vajna's avatar
      sw lok: fix width of the notes sidebar · 0d990874
      Miklos Vajna yazdı
      The map mode is in general disabled during tiled rendering, so mouse
      positions can be sent in using twips, but here we have to temporarily
      enable it, otherwise the width will be returned always in pixels.
      
      With this, the gray background of the sidebar has the proper width, not
      e.g. fifteenth of the expected value (using default zoom).
      
      Change-Id: I4380ee0ba6bcda97cf71735161dbdc826e7a2532
      (cherry picked from commit 6c3dbdbc)
      0d990874
    • Miklos Vajna's avatar
      sw: allow doc model xml dump creation while editing comment text · 769be57c
      Miklos Vajna yazdı
      Change-Id: Ie682cfe97b8c48bc66575b89875ca617dbb8ab4e
      (cherry picked from commit b3b9f2c5)
      769be57c
    • Miklos Vajna's avatar
      sw doc model xml dump: show comment text · 4fcd6073
      Miklos Vajna yazdı
      (cherry picked from commit 9b504ad3)
      
      Conflicts:
      	sw/inc/docufld.hxx
      
      Change-Id: If15ca89f2b7c54441f076eb233c4e1414dac25c0
      4fcd6073
    • Miklos Vajna's avatar
      sc lok annotations: paint range and anchor overlay · a3afe96c
      Miklos Vajna yazdı
      Change-Id: I16e51e074704026a45471e7a08c3b96846d44053
      (cherry picked from commit 5f687598)
      a3afe96c
    • Miklos Vajna's avatar
      sw lok annotations: disable the scrollbar for now · 3880944c
      Miklos Vajna yazdı
      Change-Id: I7493eaab55c23c79ca0878c34a97dfb4af857260
      (cherry picked from commit 8fc6aafc)
      3880944c
    • Miklos Vajna's avatar
      sw lok annotations: paint all child window · 93a5544c
      Miklos Vajna yazdı
      And use map modes to get the painting to the correct position instead of
      manually adjusting each and every Paint() method.
      
      (cherry picked from commit 177e375d)
      
      Conflicts:
      	sw/source/uibase/docvw/SidebarTxtControl.cxx
      	sw/source/uibase/docvw/SidebarTxtControl.hxx
      
      Change-Id: I66798321b8bbf2c7968d6ac1edebb1f8df60bce8
      93a5544c
    • Miklos Vajna's avatar
      sw tiled rendering: initial annotation support · 266f8b8a
      Miklos Vajna yazdı
      (cherry picked from commit d54aaea3)
      
      Conflicts:
      	sw/inc/PostItMgr.hxx
      	sw/inc/SidebarWin.hxx
      	sw/source/uibase/docvw/SidebarTxtControl.cxx
      	sw/source/uibase/docvw/SidebarTxtControl.hxx
      	sw/source/uibase/docvw/SidebarWin.cxx
      
      Change-Id: I4fcb05f8a58965341cf44a1b7e2367b5cbff981d
      266f8b8a
    • László Németh's avatar
      tdf#38395 enable smart apostrophe replacement by default · edc62041
      László Németh yazdı
      Unicode apostrophe is mandatory for French, English, etc. typography,
      and it is a default option in all modern word processors.
      
      The fix enables single quote AutoCorrect replacement for all languages.
      
      Change-Id: I2964242ecd1cc839bf27e9a3d772f5cab95d8db0
      (cherry picked from commit e6fade1c)
      edc62041
  2. 13 Kas, 2015 11 kayıt (commit)