]> git.lyx.org Git - features.git/commit
Split clipboard and X selection
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 10 Jul 2006 11:32:25 +0000 (11:32 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Mon, 10 Jul 2006 11:32:25 +0000 (11:32 +0000)
commitc9c6ed0b7fbccbbed8b5ef48d05cfefa5acfb99e
tree523a187278d5044b96aaeef7b593d307a277d4dc
parente8d3644466532f808263d1cb85e1c2077a25835a
Split clipboard and X selection
* src/LyXAction.C
(LyXAction::init): handle new LFUN_CLIPBOARD_PASTE

* src/insets/insettabular.C
(InsetTabular::doDispatch): ditto

* src/insets/insetbox.C
(InsetBox::doDispatch): ditto

* src/insets/insetert.C
(InsetERT::doDispatch): ditto
(InsetERT::getStatus): ditto

* src/insets/insetcharstyle.C
(InsetCharStyle::doDispatch): ditto

* src/BufferView_pimpl.C
(BufferView::Pimpl::selectionRequest): stuff selection, not clipboard

* src/mathed/math_nestinset.C
(MathNestInset::lfunMousePress): get stuff selection, not clipboard
(MathNestInset::lfunMouseRelease): clipboard -> selection in
commented code

* src/CutAndPaste.C
(cutSelection): ditto

* src/frontends/{qt3,gtk}/GuiImplementation.C
(GuiImplementation::newWorkArea): create new selection, not clipboard,
since the clipboard is now an object
(GuiImplementation::destroyWorkArea): destroy selection, not clipboard

* src/frontends/{qt4,qt3,gtk}/GuiSelection.h: new, copied from
GuiClipboard.h

* src/frontends/{qt4,qt3,gtk}/GuiSelection.C: new, copied from
GuiClipboard.C

* src/frontends/{qt3,gtk}/GuiImplementation.h
(selection): new accessor for selection_
(selection_): new, the global selection object

* src/frontends/{qt4,qt3,gtk}/Makefile.am: add GuiSelection.C and
GuiSelection.h

* src/frontends/{qt4,qt3,gtk}/GuiClipboard.C
(GuiClipboard::get): return clipboard, not selection
(GuiClipboard::put): stuff clipboard, not selection

* src/frontends/{qt4,qt3,gtk}/GuiClipboard.h
(haveSelection): remove (this is now in GuiSelection)

* src/frontends/{qt3,gtk}/GuiClipboard.h
(old_work_area_): remove, since it is not needed anymore

* src/frontends/gtk/ghelpers.C
(getGTKStockIcon): handle LFUN_CLIPBOARD_PASTE

* src/frontends/Clipboard.h
(haveSelection): remove (this is now in Selection)

* src/frontends/qt4/GuiImplementation.[Ch]
(GuiImplementation::selection): new accessor for selection_

* src/frontends/Gui.h
(selection): New accessor for the global selection object

* src/frontends/Selection.h; new, copied from Clipboard.h

* src/frontends/Makefile.am: add Selection.h

* src/text3.C
(various): s/clipboard().haveSelection/selection().haveSelection/

(LyXText::dispatch): handle LFUN_CLIPBOARD_PASTE
(LyXText::getStatus): ditto

* src/lfuns.h: new lfun LFUN_CLIPBOARD_PASTE

* lib/ui/stdmenus.ui: add new lfun LFUN_CLIPBOARD_PASTE

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14408 a592a061-630c-0410-9148-cb99ea01b6c8
36 files changed:
lib/ui/stdmenus.ui
src/BufferView_pimpl.C
src/CutAndPaste.C
src/LyXAction.C
src/frontends/Clipboard.h
src/frontends/Gui.h
src/frontends/Makefile.am
src/frontends/Selection.h [new file with mode: 0644]
src/frontends/gtk/GuiClipboard.C
src/frontends/gtk/GuiClipboard.h
src/frontends/gtk/GuiImplementation.C
src/frontends/gtk/GuiImplementation.h
src/frontends/gtk/GuiSelection.C [new file with mode: 0644]
src/frontends/gtk/GuiSelection.h [new file with mode: 0644]
src/frontends/gtk/Makefile.am
src/frontends/gtk/ghelpers.C
src/frontends/qt3/GuiClipboard.C
src/frontends/qt3/GuiClipboard.h
src/frontends/qt3/GuiImplementation.h
src/frontends/qt3/GuiSelection.C [new file with mode: 0644]
src/frontends/qt3/GuiSelection.h [new file with mode: 0644]
src/frontends/qt3/Makefile.am
src/frontends/qt4/GuiClipboard.C
src/frontends/qt4/GuiClipboard.h
src/frontends/qt4/GuiImplementation.C
src/frontends/qt4/GuiImplementation.h
src/frontends/qt4/GuiSelection.C [new file with mode: 0644]
src/frontends/qt4/GuiSelection.h [new file with mode: 0644]
src/frontends/qt4/Makefile.am
src/insets/insetbox.C
src/insets/insetcharstyle.C
src/insets/insetert.C
src/insets/insettabular.C
src/lfuns.h
src/mathed/math_nestinset.C
src/text3.C