summaryrefslogtreecommitdiff
path: root/svx
AgeCommit message (Collapse)AuthorFilesLines
2015-04-09prophylactic double dispose audit.Michael Meeks3-3/+7
Change-Id: Ia18c0b7a76fb0894efe33afaf69a0079c4583228
2015-04-09Double dispose protection.Michael Meeks1-0/+1
Change-Id: Iadc0a4fcb711e4f846e0e047880e512c9d42d0f8
2015-04-09vcl: ensure that VclBuilder is disposed before parent window.Michael Meeks3-0/+11
Move VclBuilder to use VclPtr, link to documentation, and fix more double dispose issues. Change-Id: I4900b69dbb381bd7d6fda97f2a5e623bb58e0a9f
2015-04-09vclref: protect vs. double disposes.Michael Meeks1-3/+8
Change-Id: I86fe17ad9afba7ee1e87aaa732bebee1746c140f
2015-04-09vcl: more double-dispose protection, and survival after dispose.Michael Meeks1-7/+8
Change-Id: I271f9bcb85d07a28abef2d97ef3c31287878324d
2015-04-09vclwidgets: wrap all vcl::Window subclasses allocated on stack in VclPtrNoel Grandin10-133/+133
Change-Id: Ia8b0d84bbf69f9d8f85505d019acdded14e25133 Conflicts: sw/qa/tiledrendering/tiledrendering.cxx
2015-04-09vcl: some VclPtr fixes found by the new plugin codeNoel Grandin4-0/+17
Change-Id: Ib4f591aaa88d8710fdb9b672533cfa8bb024160f
2015-04-09vcl: VclPtr conversion in variousNoel Grandin1-1/+1
Change-Id: Id4f0cc26e4f5bda345f41130c9838fc44312e98e
2015-04-09vcl: VclPtr conversion in svx.Noel Grandin111-1136/+1744
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 McNamara1-0/+1
but the PanelLayout didn't Change-Id: I38a8975f1488fa2a2ffe91b66745e1a1c6c48a28
2015-04-09Just use a plain std::vector<OUString>Stephan Bergmann1-8/+9
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 Grandin1-5/+5
Change-Id: I715374b531da2850434b2436633b6042ecb9ebe0
2015-04-09remove DELETEZ in tbcontrlTomaž Vajngerl1-7/+5
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ž Vajngerl1-4/+3
Change-Id: Ia01755ee617002ef2c234e29b1edd497b031ef8a
2015-04-07Remove dead INetProtocol::VimStephan Bergmann1-2/+2
...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 Bergmann5-14/+8
...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-07Remove unused getBlinkTime functionsStephan Bergmann1-3/+0
Change-Id: I9820f0ede94e1b335410a3aa803ff10b6f246b00
2015-04-07convert SvtModuleOptions::EModule to scoped enumNoel Grandin2-3/+3
Change-Id: I9665fc003cb3a44f4db857b24584fa3a70487259
2015-04-07convert SvtModuleOptions::EFactory to enum classNoel Grandin1-14/+14
and fix issues in iterating through o3tl::enumarray Change-Id: Ia59ef9be44d8c92c2e406fa71aa92269578e26e3
2015-04-07More additions about SdrView / SdrModel.Jan Holesovsky1-2/+18
Change-Id: I2178d61af1f49c971ccec817852260020ec8f0aa
2015-04-07Added some ascii art for the SdrObject and SdrView.Jan Holesovsky1-0/+41
Change-Id: If7e1e25315e282432a344b60b4602b1a51971399
2015-04-07Anz -> Count, and some reformatting.Jan Holesovsky1-10/+16
Change-Id: I6d1b34f12e505a6119394a60f6ce6352c35a7fa0
2015-04-07sc tiled editing: Make the editing of text in shapes in Calc work.Jan Holesovsky1-1/+9
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 Vajna1-1/+2
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 Vajna1-0/+4
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 Vajna2-8/+19
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 McNamara1-46/+0
mostly changed due to loplugin:constantfunction Change-Id: Ib677c78db256f8032a99b3f02a3e363fee68ebcc
2015-04-02Kill INetProtocol::NewsTor Lillqvist1-1/+1
Change-Id: I393edc816aaf189b1001e630c76f67dd53fd5be3
2015-04-02Kill INetProtocol::Imap and Pop3Tor Lillqvist1-1/+1
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 Bergmann24-50/+50
...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann24-50/+50
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02loplugin:staticmethodsNoel Grandin11-20/+20
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
2015-04-01Add support for cppu::UnoType<void>Stephan Bergmann1-1/+1
Change-Id: I88259ffaffc73979c240721d2db166c79d3085f1
2015-04-01convert BOX_LINE and BOXINFO_LINE to enum classNoel Grandin3-105/+108
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 Bergmann20-93/+94
Change-Id: I4791f064f223487ce57e68f8e0b1e3d74e66e868
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann1-6/+6
Change-Id: I571893a8340ee0f4a0de393395b5eef7a4795451
2015-03-30sc tiled editing: Hide the cell selection when we select graphic.Jan Holesovsky1-0/+3
Change-Id: I50f68cc292e971af8bb59782e0495d6142007d67
2015-03-30Add SvxTableController::setCursorLogicPosition()Miklos Vajna2-0/+22
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 Vajna1-0/+32
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 Vajna1-7/+37
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 Vajna2-0/+16
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 Vajna1-2/+5
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 Vajna1-1/+5
Change-Id: I908b7a5687e49f8cc9ec7e6ca333fe7cab84fcfd
2015-03-30SdrMarkView::SetMarkHandles: perform the mm100 -> twip conversion on a copyMiklos Vajna1-6/+7
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 Vajna1-0/+1
Change-Id: I15e7d9645ce97a1014e0e74c116aebeb2e3a9ab7
2015-03-30svx tiled rendering: fix Impress graphic selectionMiklos Vajna1-0/+12
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 Vajna1-6/+0
Change-Id: I7df271e5542359cbc1570244ba1381b0e18607b2
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann21-142/+142
Change-Id: I5f4029fc583952ae6392dbf2d478155982ccecef
2015-03-27ambiguous symbolCaolán McNamara1-5/+5
Change-Id: I90798a036ba630456939d383e7e4288eb630cd86
2015-03-27fix macro and enum name collision using CamelCaseNoel Grandin2-2/+2
so that the enum names remain consistent Change-Id: I656069b484038d3bf17ecbb4f3e26395ca5a1b6d