summaryrefslogtreecommitdiff
path: root/svx/source
AgeCommit message (Collapse)Author
2015-04-09vcl: VclPtr conversion in variousNoel Grandin
Change-Id: Id4f0cc26e4f5bda345f41130c9838fc44312e98e
2015-04-09vcl: VclPtr conversion in svx.Noel Grandin
Change-Id: I3a1000baa049b11728c46efbc2f0af0d8f34cf2b Conflicts: include/svx/charmap.hxx include/svx/float3d.hxx include/svx/fontwork.hxx include/svx/galctrl.hxx svx/inc/svdibrow.hxx svx/source/dialog/dlgctl3d.cxx svx/source/dialog/fontwork.cxx svx/source/engine3d/float3d.cxx svx/source/fmcomp/gridctrl.cxx svx/source/gallery2/galbrws1.cxx svx/source/inc/docrecovery.hxx
2015-04-09Resolves: tdf#90384 queue_resize needs to Invalidate the optimal cache sizeCaolán McNamara
but the PanelLayout didn't Change-Id: I38a8975f1488fa2a2ffe91b66745e1a1c6c48a28
2015-04-09Just use a plain std::vector<OUString>Stephan Bergmann
Nothing obvious that would speak against converting from the original SvStringsDtor to plain std::vector<...> instead of slavishly sticking to boost::ptr_vector<boost::nullable<...>>. Also, prevents a false -fsanitize=null warning about "reference binding to null pointer of type 'rtl::OUString'" in boost::void_ptr_iterator<...>::operator*() during ~SvxClipboardFmtItem_Impl(). Change-Id: I08d8fc573ff99a5bddd67c0d2be4e7ea38025958
2015-04-09loplugin:staticmethodsNoel Grandin
Change-Id: I715374b531da2850434b2436633b6042ecb9ebe0
2015-04-09remove DELETEZ in tbcontrlTomaž Vajngerl
DELETEZ is redefined here and used just 2 times in the code. Better to just delete it - it doesn't really make the code more readable. Change-Id: I094a7d41fa9e86d3f20cce357bc13e9fc04df3df
2015-04-09use std::unique_ptr for Impl in SvxStyleToolBoxControlTomaž Vajngerl
Change-Id: Ia01755ee617002ef2c234e29b1edd497b031ef8a
2015-04-07Remove dead INetProtocol::VimStephan Bergmann
...which removes the need to abstract over the standard URI '%' escape prefix vs. the silly vim '=' special case invention. Change-Id: I54a52dd912c3aafc38275a0ac2466a6daeec328f
2015-04-07Change "blink times" to be of type sal_uInt64Stephan Bergmann
...and thus consistent with Timer::Get/SetTimeout since 9c7016b5b530ca212b1275f44f9e2fc0527109ee "Scheduler: Changed uLong to uInt32/uInt64." Otherwise, at least JunitTest_forms_unoapi on 32-bit Linux would stay busy forever in vcl::Cursor::ImplTimerHdl, alternating among ImplRestore() and ImplDraw(). Change-Id: Ic3fd349344c105078b52749ca85559fce485d0c4
2015-04-07convert SvtModuleOptions::EModule to scoped enumNoel Grandin
Change-Id: I9665fc003cb3a44f4db857b24584fa3a70487259
2015-04-07convert SvtModuleOptions::EFactory to enum classNoel Grandin
and fix issues in iterating through o3tl::enumarray Change-Id: Ia59ef9be44d8c92c2e406fa71aa92269578e26e3
2015-04-07Anz -> Count, and some reformatting.Jan Holesovsky
Change-Id: I6d1b34f12e505a6119394a60f6ce6352c35a7fa0
2015-04-07sc tiled editing: Make the editing of text in shapes in Calc work.Jan Holesovsky
I suspect the change in svdedxv.cxx is a hack and that the root cause is that we should initialize the pDrawView somehow more / better wrt. the output device that we are passing to BeginDrawLayers. [Probably the AddPaintWindowToPageView() called in ScGridWindow::PaintTile() is not enough.] But otherwise this makes the situation much better, and also makes the code even more on par with the non-tiled-rendering case, so let's live with that for now. Change-Id: I347b0af9e21acacc9aff4ebb7155246abd3beb43
2015-04-07SdrPaintView tiled rendering: ignore visual areaMiklos Vajna
With this, a number of so far missing images properly show up in Draw and Impress. Images are loaded asynchronously, and the AsynchGraphicLoadingEvent is registered in the SdrPageWindow. This means that in case the event is registered in the temporary page window that's created by SdrPageView::CompleteRedraw(), invoked by paintTile() call, then chances are high that the page window will be destructed earlier than the scheduler would execute the async event. This leads to missing images. Fix the problem by not ignororing Invalidate() calls depending on what core thinks is a visible area: then the view that is an sd::Window will also try to do the async image loading, and that will be actually executed properly. Change-Id: Icf5fd772b66c31d3876bf3673ba5e283c7e08083
2015-04-07SvxTableController::setCursorLogicPosition: fix unexpected graphic selectionMiklos Vajna
Without this, an editeng selection handle dragged to the next cell and turning into an Impress table selection triggers a graphic selection, too. Change-Id: Idf5e28f9b8d1ee8dacc6f869a17157e080f2c478
2015-04-07sd tiled rendering: support turning an editeng selection into a table oneMiklos Vajna
With this, it's possible to drag the selection handle of an editeng selection in an Impress table and drag it outside the table cell to create an Impress table selection. Some unexpected graphic selection still appears, though. Change-Id: Ia7b36036ce2bda5cca570e8b6075238d5167090f
2015-04-04callcatcher: update unusedcodeCaolán McNamara
mostly changed due to loplugin:constantfunction Change-Id: Ib677c78db256f8032a99b3f02a3e363fee68ebcc
2015-04-02Kill INetProtocol::NewsTor Lillqvist
Change-Id: I393edc816aaf189b1001e630c76f67dd53fd5be3
2015-04-02Kill INetProtocol::Imap and Pop3Tor Lillqvist
I doubt very much these actually get used. Couldn't find in any of the sample bug docs collected from bugzillas, for instance. Change-Id: I47a586fabb1efdf8315ed5f7bd09cbaea4c860b5
2015-04-02Change INetProtocol enumerators to CamelCaseStephan Bergmann
...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02loplugin:staticmethodsNoel Grandin
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
2015-04-01Add support for cppu::UnoType<void>Stephan Bergmann
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
2015-04-01convert BOX_LINE and BOXINFO_LINE to enum classNoel Grandin
since their usage is intertwined. Also introduce new o3tl utilities enumrange and enumarray to make working with scoped enums a little simpler. Change-Id: I2e1cc65dd7c638e59f17d96dfae504747cad6533
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
Change-Id: I4791f064f223487ce57e68f8e0b1e3d74e66e868
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann
Change-Id: I571893a8340ee0f4a0de393395b5eef7a4795451
2015-03-30sc tiled editing: Hide the cell selection when we select graphic.Jan Holesovsky
Change-Id: I50f68cc292e971af8bb59782e0495d6142007d67
2015-03-30Add SvxTableController::setCursorLogicPosition()Miklos Vajna
With this, it's possible to drag the start or end handle of an Impress table selection and let it grow/shrink. Change-Id: Icdee1207c1c3a6b1c4fb15d00008db6327d6e2de
2015-03-30svx tiled rendering: double-click in empty table cell selects itMiklos Vajna
This brings Impress tables in sync with Writer, where long push on Android selects the empty cell. Change-Id: If8403ec43daeea6ca79b488a54253cb8b71794d9
2015-03-30SdrTableObj tiled rendering: implement selection callbacksMiklos Vajna
This makes selections of Impress tables visible. Double-click in an empty cell doesn't select the cell yet, neither extending cell text selections into table ones work, but it's a start. Change-Id: Idb8921d980ac9d7ab363c68c91c1a9e6cf0918e3
2015-03-30SdrMarkView tiled rendering: partially disable SdrTableObj graphic selectionMiklos Vajna
If one or more cells are selected in an Impress table, then the shape already provides its own text selection, don't overwrite it with the generic graphic selection in this case. Change-Id: I4f84a220df6cd9d225ed67d6f70ba2df6eff38af
2015-03-30SdrMarkView tiled rendering: fix unexpected empty graphic selection eventsMiklos Vajna
There are a number of mark views, but we're only interested in the one that belongs to the editing window. Ignore the virtual device of the slide sorter and everything else. With this, a shape remains selected after resized, and can be resized multiple times again properly. Change-Id: I7f31c72567b9d01aaa75871ff5d1efdb3151a0e4
2015-03-30svx tiled rendering: grow hittest size when map mode is in mm100Miklos Vajna
Change-Id: I908b7a5687e49f8cc9ec7e6ca333fe7cab84fcfd
2015-03-30SdrMarkView::SetMarkHandles: perform the mm100 -> twip conversion on a copyMiklos Vajna
Otherwise the position of the mark handles will depend on if we do tiled rendering or not, which is not wanted. Change-Id: Id415aa75977bb0224866ad0defc3c256357c366f
2015-03-30SdrObject::dumpAsXml: show bounding rectangleMiklos Vajna
Change-Id: I15e7d9645ce97a1014e0e74c116aebeb2e3a9ab7
2015-03-30svx tiled rendering: fix Impress graphic selectionMiklos Vajna
With this, shapes on Impress slides can be selected and the graphic selection appears correctly around the expected shape. Change-Id: Ie819918a34952e8182553b26ff892fe9b5ae0258
2015-03-28sdr::table::SvxTableController::onMouseMove: remove dead codeMiklos Vajna
Change-Id: I7df271e5542359cbc1570244ba1381b0e18607b2
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I5f4029fc583952ae6392dbf2d478155982ccecef
2015-03-27ambiguous symbolCaolán McNamara
Change-Id: I90798a036ba630456939d383e7e4288eb630cd86
2015-03-27fix macro and enum name collision using CamelCaseNoel Grandin
so that the enum names remain consistent Change-Id: I656069b484038d3bf17ecbb4f3e26395ca5a1b6d
2015-03-27convert CUTFLAG_ constants to enum classNoel Grandin
Change-Id: I98dc5488954a4d46f7e0158790a4c3dabebfc1b3
2015-03-27convert AVMEDIA_ constants to enum classNoel Grandin
Change-Id: Ic4918f57a1575a24cf0b9251cc7e7c6180ee25fd
2015-03-27convert BUTTON_ constants to enum classNoel Grandin
Change-Id: I0fd391a6b2850e5d7dcbf2cb95cfa39ee5561bd9
2015-03-27Experimental: draw handles instead of getting them from bitmapTomaž Vajngerl
Currently object handles are defined in the bitmap which is a pain when using in HiDPI as they have to be scaled and don't look pretty. They are also hard to change and non theme-able (change of color needs a change the bitmap). This commit experimentaly enables the drawn handles (enable with environment variable SVX_DRAW_HANDLES) which currently exchanges the default some basic handles. Change-Id: If80aa7fe756a6d8d6991e9515f2951ee21b31b72
2015-03-26tdf#81073 :Addition of text zoom levels to print preview zoomRishabh Kumar
SvxZoomItem includes text zoom level Ids unlike SfxUInt16Iem which only includes zoom percent id.SfxUInt16Item is the base class for SvxZoomItem. Change-Id: I8ad2a8cf48632853538aa2d99993f8dfccf49f4c Reviewed-on: https://gerrit.libreoffice.org/14488 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann
Change-Id: Ic90647cc4da716b54b00520b683cee027a664c22
2015-03-26Cleanup comments for easyhacksPopa Adrian Marius
Change-Id: Ic6bd4d277bc464bf96573ba95c0cf5c0cc96ab73 Reviewed-on: https://gerrit.libreoffice.org/15019 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-26survive 'enable jre' dialog interrupting CreateAccessibilityObjectsCaolán McNamara
Change-Id: I4395160780fc055d14554ad62c6ec757ec8dbbe1
2015-03-26convert SvxNumRuleType to enum classNoel Grandin
Change-Id: I4707b2f0325d2e39c11bb99ef687100eb55639e1
2015-03-26convert NUM_ constants to enum clasNoel Grandin
Change-Id: Id41ea91aaf618c7f3f323698c09caa7c8df2290a