summaryrefslogtreecommitdiff
path: root/sfx2/source/view
AgeCommit message (Collapse)AuthorFilesLines
2016-02-06Fix typosAndrea Gelmini1-1/+1
Change-Id: I020c7ce4d9aa93cb0292378a410cdb9f7788e920 Signed-off-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit e544f449eded2738b45de4be13c72b128a16bafe)
2016-02-06remove some unnecessary typedefs to pointerNoel Grandin1-2/+1
that were really not helping make the code any clearer. Found with a search git grep -P 'typedef\s+\w+\s*\*\s*\w+\;' and manual inspection (cherry picked from commit d16d9f950f8cb6d8948875372c9ff1f0aae9fb7a) Change-Id: I6a5c031e9e060ad3623a7586ec8a8cc4fe6252e9
2016-02-06loplugin:loopvartoosmallNoel Grandin2-5/+5
(cherry picked from commit 6140ca9f1d728475e332f9fa96ee62dda58687ea) Change-Id: Icb31e51575f7fffd36be73bbd87a3c5e56c3aa26
2016-02-06new uno sidebar api tdf#91806Laurent Godard1-0/+15
the entry point is SfxBaseController::getSidebar() the Decks and panels are now per SidebarController and not global anymore ' macro example Sub testSidebarApi controller = thisComponent.currentcontroller frameIni = thisComponent.currentcontroller.frame sidebar = thisComponent.currentcontroller.getSidebar() sidebar.setVisible(true) frame = sidebar.getFrame() decks = sidebar.getdecks() c = decks.count h = decks.hasElements() e = decks.getElementNames() a = decks.hasByName("MyDeck") deck = decks.getByName("MyDeck") deck.activate(true) t = deck.getTitle() deck.setTitle("new deck title") deck.moveFirst() deck.moveLast() deck.moveUp() deck.moveDown() index = deck.getOrderIndex() panels = deck.getPanels() ep = panels.getElementnames() ap = panels.hasByName("aPanelName") panel = panels.getByName("aPanelName") panel.setTitle("new panel title") panel.collapse() panel.expand(true) ' expand and collapse other index = panel.getOrderIndex() panel.moveLast() panel.moveFirst() panel.moveDown() panel.moveUp() End Sub Change-Id: I7a4b953f2277dea483bb296ba6ead35de7205ace Reviewed-on: https://gerrit.libreoffice.org/15856 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit a64999511ae654131d997eec9a3d78478cfc1c75)
2016-02-06cppcheck:unreadVariableNoel Grandin1-3/+2
Change-Id: I03981ceba67280e8ed98a9add7f24b3bd958d522 (cherry picked from commit dcf6abfcdf3f4b7aec5796c9f6c806889328135f)
2016-02-05Typo: emty->emptyJulien Nabet1-1/+1
Change-Id: I495ae28194da449ab1b31b2b5ec0d9e08fbcc291 (cherry picked from commit c27798b20097602739e3e81a5063109b8c66447d)
2016-02-05convert MENUBAR_MODE constants to scoped enumNoel Grandin1-1/+1
Change-Id: Ie4cda46d02e82cca1710603cfb3af379c702d9d7 (cherry picked from commit 5b248f1348260f953686b20621255aece57358fe)
2015-10-21tdf#95095: Rename "AvoidRecentDocs" to "PickListEntry" for consistency.Jan Holesovsky2-3/+3
It turns out that Base already has a similar property called "PickListEntry". Let's make it consistent then, and rename "AvoidRecentDocs", so that it works in all the apps the same way. So instead of setting "AvoidRecentDocs" to true, set "PickListEntry" to false. Change-Id: Idf0dd8e8892218f387944f0ad43b292c4b052be6
2015-10-21tdf#95095: Implement "AvoidRecentDocs" property for loadComponentFromURL().Jan Holesovsky2-2/+8
When "AvoidRecentDocs" is set to true, the loaded document is not added to the recent documents list, avoiding the (a bit expensive) thumbnail creation. Useful when loadComponentFromURL() is called from macros, or when LibreOffice is controlled via UNO. See the bug for an example. Conflicts: sfx2/source/doc/objxtor.cxx Change-Id: I99d516cae8b278199a01276686465f716b9b4cec
2015-10-06sfx2: add SfxViewShell::libreOfficeKitViewCallback()Miklos Vajna2-0/+17
This is similar to the existing LOK callback, the difference is that the existing one assumes there is only one SfxViewShell instance at the same time. This newer callback is precisely per-view, so model notifications can invoke all view callbacks, while view notifications can invoke only the callback of the relevant view. This is just the framework, all actual client code has to be still ported over (and then the existing callback can be removed). (cherry picked from commit c74ccac7cd94eba052d21cf74e03e214d58942e4) Conflicts: sfx2/source/view/viewimp.hxx Change-Id: I3d8f27740c69fcf6ffbbdce12db2ea088321493d
2015-10-06SfxLokHelper::setView: check if view is already currentMiklos Vajna1-0/+3
Change-Id: I9cf3a4887774657e0e205114688b088fc11c6822 (cherry picked from commit 714257af17f74f8bcb5acceaebb0d0f4b3be3231)
2015-10-06LOK: make getViews() be a member function of DocumentMiklos Vajna1-2/+11
Just to be consistent, as all other view-related member functions are there, too. No real impact, as only the unit test uses this so far, and it always works with a single document. Change-Id: I46f1ed8265ab95017986ab45c1b510e961192241 (cherry picked from commit a04b31c9facb08a8e38b79480b9a73bd2693cb9e)
2015-10-06gtktiledviewer: use setView() before postKeyEvent()Miklos Vajna1-1/+1
Also in SfxLokHelper::setView() set the current view shell directly, GetFocus() in VCL may be a NOP for hidden windows. With this, the Writer layout dump shows that two Gtk windows can have different cursor positions correctly. (cherry picked from commit f2e55ea10676d14c6564696a0648c0edbe4bd36d) Conflicts: libreofficekit/source/gtk/lokdocview.cxx Change-Id: I81890c1d8ad7972f1194db3d5f2e9d8a39fc2f87
2015-10-06Use SfxViewFrame::Current()Miklos Vajna1-2/+2
Allows getting rid of vcl::ITiledRenderable::getCurrentViewShell(), which would do the same, just not implemented outside Writer. Change-Id: Id26ceca560fb9002dc2d5c740c411b9c4a149523 (cherry picked from commit 8cb6094447041b7fbe29bd5584b5daf9babb5cad)
2015-10-06lok::Document: add get/setView()Miklos Vajna1-0/+24
Change-Id: Ic3bce8f01d7e048e853c063c4bce1255845c60d0 (cherry picked from commit 46588c42a546d4517b773853856b9c8f8c2e5ece)
2015-10-06lok::Document: add destroyView()Miklos Vajna1-0/+12
Change-Id: Id9e92593217541b4123e95279019cec3c958056c (cherry picked from commit 10a0cad9d6990abac507899a34fbcdeb466187f7)
2015-10-06lok::Office: add getViews()Miklos Vajna1-0/+6
Change-Id: Iabfb0f2a19106dc4a6bdae45f9e85d76c68a973e (cherry picked from commit 2e523afe61f76d9b065a771e558683afb701b93b)
2015-10-06sfx2: add SfxLokHelperMiklos Vajna1-0/+29
This is meant to be a class that is visible outside sfx2 (so e.g. desktop can use it later), but has access to various sfx2 internals. Change-Id: I83204963492b11c1c4a621e86528a64fba27acf3 (cherry picked from commit 58b5c13b00cd4d881e1d6313316cc621198a4b04)
2015-08-06tdf#91362: Make "printer was modified" status persistentKatarina Behrens2-0/+3
To test: Scenario 1: * go to Writer -> Format -> Page * select page format and orientation, if possible a different one than the default in your env. * File -> Print -> Properties should now show those values (and not the default values from the printer) Scenario 2 (aka Scenario 2 from tdf#61186) * now go to File -> Printer settings * change page format and orientation, if possible to yet a different one than the printer default and a page one * File -> Print -> Properties should now show what was selected in Printer settings and not the format of the page Change-Id: Ibc84540f428b79dbec2587c50eefe526a62751b3 Reviewed-on: https://gerrit.libreoffice.org/16716 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> (cherry picked from commit 0251e61640b94094918406b33ee7b05564409feb) Reviewed-on: https://gerrit.libreoffice.org/16808 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-05-28Rewrite all calls like Dialog(params).Execute()Philippe Jung1-4/+4
Replace all calls looking like ADialog(some params).Execute() by ScopedVclPtrInstance<ADialog>::Create(some parms)->Execute() Change-Id: I0b6f0a9ea5ef0a749ffa30ce131e9dc989604639 Reviewed-on: https://gerrit.libreoffice.org/15915 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-05-20Remove include stdio (part4)Julien Nabet1-2/+0
Change-Id: Ic17885b22167eedd0e56b3e5027c09a1c3aac1d8 Reviewed-on: https://gerrit.libreoffice.org/15819 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-05-14TyposJulien Nabet1-1/+1
Change-Id: I69f02be4a3fc67b06eda6f6215fa136730d10f61
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann3-3/+3
Change-Id: I07aa70401391a4479d09907aa7e78a4fea894879
2015-05-10NOINSTANCE is implied now in IMPL_STATIC_LINK...Stephan Bergmann1-1/+1
Change-Id: Ifb032457d6c1b279c4183282ef2b271c706dd71a
2015-05-05vcl: rename other members of StateChangedType for consistencyMichael Stahl2-2/+2
Change-Id: Ifd3339813e5d3dfb54566fd226aaf2d2a199d59a
2015-05-05Use typed Timer::SetTimeoutHdl LinkStephan Bergmann1-3/+2
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
2015-05-04cppcheck: noExplicitConstructorCaolán McNamara3-3/+3
Change-Id: Icb4273515082bffaeb9d8f3ebcec8d76fa4192ef
2015-04-30Gradually typed LinkStephan Bergmann1-1/+1
Turn the Link class into a template abstracting over the link's argument and return types, but provide default template arguments that keep the generic, unsafe "void* in, sal_IntPtr out" behvior. That way, individual uses of the Link class can be updated over time. All the related macros are duplicated with ..._TYPED counterparts, that additionally take the RetType (except for LINK_TYPED, which manages to infer the relevant types from the supplied Member). (It would have been attractive to change the "untyped" LinkStubs from taking a void* to a properly typed ArgType parameter, too, but that would cause -fsanitize=function to flag uses of "untyped" Link::Call.) Change-Id: I3b0140378bad99abbf240140ebb4a46a05d2d2f8
2015-04-29Remove unnecessary STATIC_LINK macroStephan Bergmann1-2/+2
Change-Id: I4788824667c8e0d1d4e0717b7ae7737bb0fd2c90
2015-04-29convert STR_EVENT constants to scoped enumNoel Grandin4-6/+6
- also add needed infrastructure to o3tl::enumarray so we can use std::find on it - move the Impl inside the .cxx file, no need to expose it in the header Change-Id: I7758a6175849f46723d97b1e657f846524c3b7cd
2015-04-28Merge remote-tracking branch 'origin/feature/vclptr'Michael Meeks9-71/+76
Resolve several thousand lines of conflicts. Conflicts: accessibility/source/extended/accessiblelistbox.cxx accessibility/source/standard/vclxaccessiblecombobox.cxx accessibility/source/standard/vclxaccessibledropdowncombobox.cxx accessibility/source/standard/vclxaccessibledropdownlistbox.cxx accessibility/source/standard/vclxaccessiblelistbox.cxx accessibility/source/standard/vclxaccessibletextfield.cxx basctl/source/basicide/basidesh.cxx cui/source/inc/chardlg.hxx cui/source/tabpages/tpbitmap.cxx dbaccess/source/ui/dlg/UserAdmin.cxx dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx extensions/source/propctrlr/propertyeditor.hxx extensions/source/scanner/sanedlg.cxx filter/source/pdf/impdialog.cxx include/sfx2/mgetempl.hxx include/sfx2/sidebar/SidebarToolBox.hxx include/sfx2/viewsh.hxx include/svtools/brwbox.hxx include/svtools/filectrl.hxx include/svtools/scrwin.hxx include/svx/dlgctrl.hxx include/svx/sidebar/Popup.hxx include/svx/sidebar/PopupContainer.hxx include/svx/sidebar/PopupControl.hxx include/svx/sidebar/SidebarDialControl.hxx include/svx/sidebar/ValueSetWithTextControl.hxx sc/source/ui/condformat/condformatdlgentry.cxx sc/source/ui/navipi/navipi.cxx sc/source/ui/sidebar/CellBorderStyleControl.hxx sd/source/ui/animations/CustomAnimationDialog.cxx sd/source/ui/inc/DrawViewShell.hxx sd/source/ui/inc/Ruler.hxx sd/source/ui/inc/SlideSorter.hxx sd/source/ui/inc/ViewTabBar.hxx sd/source/ui/inc/Window.hxx sd/source/ui/inc/morphdlg.hxx sd/source/ui/inc/sdpreslt.hxx sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx sd/source/ui/sidebar/LayoutMenu.hxx sd/source/ui/sidebar/MasterPagesSelector.hxx sd/source/ui/sidebar/NavigatorWrapper.hxx sd/source/ui/sidebar/PanelBase.hxx sd/source/ui/sidebar/RecentMasterPagesSelector.cxx sd/source/ui/sidebar/RecentMasterPagesSelector.hxx sd/source/ui/slideshow/showwindow.hxx sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx sd/source/ui/view/ViewShellBase.cxx sd/source/ui/view/drviewsa.cxx sfx2/source/appl/fileobj.hxx sfx2/source/appl/opengrf.cxx sfx2/source/control/thumbnailviewacc.hxx sfx2/source/dialog/securitypage.cxx sfx2/source/dialog/templdlg.cxx sfx2/source/doc/docinsert.cxx sfx2/source/doc/guisaveas.cxx sfx2/source/inc/alienwarn.hxx sfx2/source/sidebar/Deck.cxx sfx2/source/sidebar/Deck.hxx sfx2/source/sidebar/DeckTitleBar.cxx sfx2/source/sidebar/DeckTitleBar.hxx sfx2/source/sidebar/MenuButton.cxx sfx2/source/sidebar/MenuButton.hxx sfx2/source/sidebar/Panel.cxx sfx2/source/sidebar/Panel.hxx sfx2/source/sidebar/PanelTitleBar.hxx sfx2/source/sidebar/SidebarDockingWindow.hxx sfx2/source/sidebar/SidebarToolBox.cxx sfx2/source/sidebar/TabBar.hxx sfx2/source/sidebar/TabItem.cxx sfx2/source/sidebar/TabItem.hxx sfx2/source/sidebar/TitleBar.hxx sfx2/source/toolbox/imgmgr.cxx starmath/inc/edit.hxx starmath/inc/smmod.hxx starmath/qa/cppunit/test_starmath.cxx starmath/source/edit.cxx starmath/source/smmod.cxx svtools/source/brwbox/brwbox1.cxx svtools/source/brwbox/datwin.hxx svtools/source/contnr/fileview.cxx svtools/source/contnr/simptabl.cxx svtools/source/control/filectrl.cxx svtools/source/control/valueimp.hxx svx/inc/GalleryControl.hxx svx/source/dialog/dlgctrl.cxx svx/source/dialog/swframeexample.cxx svx/source/fmcomp/fmgridif.cxx svx/source/gallery2/GalleryControl.cxx svx/source/sidebar/EmptyPanel.hxx svx/source/sidebar/area/AreaPropertyPanel.hxx svx/source/sidebar/area/AreaTransparencyGradientControl.hxx svx/source/sidebar/graphic/GraphicPropertyPanel.hxx svx/source/sidebar/insert/InsertPropertyPanel.cxx svx/source/sidebar/insert/InsertPropertyPanel.hxx svx/source/sidebar/line/LinePropertyPanel.hxx svx/source/sidebar/line/LineWidthControl.cxx svx/source/sidebar/line/LineWidthControl.hxx svx/source/sidebar/line/LineWidthValueSet.hxx svx/source/sidebar/paragraph/ParaPropertyPanel.hxx svx/source/sidebar/possize/SidebarDialControl.cxx svx/source/sidebar/text/TextCharacterSpacingPopup.hxx svx/source/sidebar/text/TextPropertyPanel.hxx svx/source/sidebar/tools/PopupContainer.cxx svx/source/sidebar/tools/PopupControl.cxx svx/source/sidebar/tools/ValueSetWithTextControl.cxx svx/source/svdraw/svdfmtf.hxx svx/source/svdraw/svdibrow.cxx svx/source/tbxctrls/colrctrl.cxx svx/source/tbxctrls/tbcontrl.cxx sw/source/ui/dbui/mmaddressblockpage.cxx sw/source/ui/dialog/uiregionsw.cxx sw/source/ui/index/cnttab.cxx sw/source/uibase/inc/drpcps.hxx sw/source/uibase/sidebar/PageColumnControl.hxx sw/source/uibase/sidebar/PageMarginControl.hxx sw/source/uibase/sidebar/PageOrientationControl.hxx sw/source/uibase/sidebar/PagePropertyPanel.hxx sw/source/uibase/sidebar/PageSizeControl.hxx sw/source/uibase/uiview/view2.cxx sw/source/uibase/utlui/navipi.cxx vcl/inc/svdata.hxx vcl/source/control/combobox.cxx vcl/source/control/lstbox.cxx vcl/source/window/dockwin.cxx vcl/source/window/winproc.cxx Change-Id: I056cf3026ff17d65cca0b6e6588bda4a88fa8d95
2015-04-28Rephrase comparisons between bool and sal_BoolStephan Bergmann1-1/+1
...to cater for forthcoming loplugin:implicitboolconversion improvements Change-Id: I801b6b73648715448198d582a087cc834f6e20c8
2015-04-24loplugin:simplifyboolStephan Bergmann2-2/+2
Change-Id: I0a2a7d1af979b24f6d3db9783984e85e1992643d
2015-04-23Improved loplugin:literaltoboolconversion looking into cond. exprs.Stephan Bergmann1-1/+1
...automatic rewriter fixes Change-Id: I6b04ca80f08f8a71ff94e309fd52f44d736751ee
2015-04-23loplugin:staticmethodsNoel Grandin3-19/+19
Change-Id: Ib0c0841e48814d1a6e13bcd4575725d86ffa5e5e
2015-04-17sfx2: convert new to ::Create.Noel Grandin4-11/+10
Change-Id: I53f95a65702c144ba4c4b0caac1e172015fec0fa
2015-04-16make CreatePrinterOptionsPage returns a VclPtr<>.Michael Meeks2-3/+3
Change-Id: Iaa7814573b48b6c9ed10426b992c944393b23332
2015-04-15convert SFX_VIEW constants to scoped enumNoel Grandin2-10/+9
Change-Id: I327dc1ec722fa9445f13fc5168ad646e272ba9d4 Reviewed-on: https://gerrit.libreoffice.org/15300 Tested-by: Noel Grandin <noelgrandin@gmail.com> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin1-2/+2
ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-13convert HiddenWarningFact to scoped enumNoel Grandin2-3/+3
Change-Id: I23579d746a3c612de68345794731f1ff2cbdf605
2015-04-13convert SFX_LOADED_ to scoped enumNoel Grandin2-3/+3
Change-Id: I065a07e1bb5f5a7f85429c919830b6b9605206ea
2015-04-11disposeAndClear in place of DELETEZ.Michael Meeks1-1/+1
Audit of DELETEZ usage in: "vclwidget: change all vcl::window fields to be wrapped in VclPtr" Change-Id: Ib65096a9edb09ce9381ab4a8297d9391d2603651
2015-04-10Lots more small re-basing issues fixed.Michael Meeks1-2/+2
Change-Id: I621567c4596e01092c55d868403910386fa14058
2015-04-10Automated conversion of VclPtr construction to use Instance template.Michael Meeks1-3/+3
Change-Id: I8be9141b9653e73ebd23a5a3d810f240c376f97e
2015-04-10second half of non-scriptable, Instance constructor conversion.Michael Meeks2-9/+9
Change-Id: I616c8c28255e0d90ae90033a128bd34d7570530c
2015-04-10vclwidget: some small fixesNoel Grandin2-2/+8
Change-Id: I094163c894ff9accf70050d5a4fab83e905a282b
2015-04-10protect more printer code-paths.Michael Meeks1-5/+4
Change-Id: Ic5bc5c3325b460cba0d95484454c9bb826684890
2015-04-10vclwidget: fixup locally allocated vcl::Window objectsNoel Grandin2-6/+6
They need to be wrapped in ScopedVclPtr in order to be disposed properly. Change-Id: Ib64dba353774f54711e4de7f5d15d859c6a4dc7e
2015-04-10more lifecycle cleanup & fixing.Michael Meeks1-1/+0
Change-Id: Icc9051bad16c0e66c9e9f631c487a2facde72e9f
2015-04-10vclwidget: check for calling delete on subclasses of vcl::WindowNoel Grandin1-2/+2
Change-Id: I7fb7cf919e3f46dd03a18b1cb95fa881915f9642