home *** CD-ROM | disk | FTP | other *** search
/ Freelog 65 / Freelog065.iso / BAS / Bureautique / Gnumeric / gnumeric-1.3.92-rc1.exe / data-move-copy.xml < prev    next >
Text File  |  2004-11-01  |  15KB  |  415 lines

  1. <sect1 id="sect-movecopy">
  2.   <title>Moving and Copying Data</title>
  3.  
  4.   <para>
  5.     Data which have been entered once into a spreadsheet can be moved
  6.     to new locations and possibly duplicated. The simplest way to do
  7.     this involves dragging the selection box. A more advanced way
  8.     involves a formal cut or copy operation and then a paste operation
  9.     in the new location. The latter approach allows the data to be
  10.     modified as they are pasted which can be extremely important.
  11.   </para>
  12.  
  13.   <tip>
  14.     <para>
  15.       It is frequently necessary to copy the results of complex
  16.       calculations into a new location. This is done by selecting the
  17.       data and using the <guimenuitem>As Value</guimenuitem> command
  18.       from the <guimenuitem>Paste Special...</guimenuitem>
  19.       dialog. This is explained in <xref
  20.       linkend="sect-movecopy-pastespecial" /> below.
  21.     </para>
  22.   </tip>
  23.  
  24.   <sect2 id="sect-movecopy-simple">
  25.     <title>Simple Copy and Move</title>
  26.  
  27.     <para>
  28.       The easiest way to move or copy a cell or a group of cells is by
  29.       selecting the cell or cells to be moved or copied, then using
  30.       the mouse to drag the selection box to a new location.
  31.     </para>
  32.  
  33.     <procedure>
  34.     <step>
  35.     <para>
  36.       Select a cell to move by clicking in it. You can also select
  37.       a range of cells as described in <xref
  38.         linkend="sect-data-selections" />. 
  39.      </para>
  40.       </step>
  41.     <step>
  42.       <para>Click <mousebutton>left</mousebutton> mouse button on
  43.         the border of the selection (anywhere except the autofill
  44.         square in the bottom right corner). Use
  45.         <mousebutton>left</mousebutton> mouse button to move cells
  46.         or <keycap>Ctrl</keycap>+<mousebutton>left</mousebutton>
  47.         mouse button to copy cells.
  48.       </para>
  49.     </step>
  50.     
  51.     <step>
  52.       <para>Drag the selection to the new  location.</para>
  53.     </step>
  54.       
  55.     <step>
  56.       <para>Release the mouse button.</para>
  57.     </step>
  58.       </procedure>
  59.     
  60.     <para>
  61.       The selected cells will be copied or moved to the new
  62.       location. This will move both cells' content and
  63.       formatting. When copying, relative cell references in all
  64.       formulas will change as described in <xref
  65.     linkend="sect-data-formulas-references" />; when moving, relative cell
  66.     references will remain unchanged.
  67.     </para>                                 
  68.   </sect2>
  69.  
  70.  
  71.   <sect2 id="sect-movecopy-cutandpaste">
  72.     <title>Cut, Copy and Paste</title>
  73.  
  74.     <para>
  75.       Another, more flexible, way to copy or move a selection is to
  76.       use cut, copy, and paste operations. These operations allow the
  77.       user to copy or move selected cells to the clipboard buffer and
  78.       then paste the contents of the clipboard buffer to a different
  79.       location or a different workbook.
  80.     </para>
  81.  
  82.     <sect3 id="cut">
  83.       <title>Cutting a Selection to the Clipboard</title>
  84.  
  85.       <para>
  86.         To cut a cell or a selection to the clipboard, you should
  87.         select a cell or range of cells as described in <xref
  88.         linkend="sect-data-selections" /> and then use one of the
  89.         following methods:
  90.  
  91.         <itemizedlist>
  92.     <listitem><para>
  93.       Use keyboard shortcut 
  94.         <keycombo><keycap>Ctrl</keycap><keycap>X</keycap></keycombo>.
  95.       </para>
  96.     </listitem>        
  97.     <listitem>
  98.       <para>
  99.         Choose <guimenuitem>Cut</guimenuitem> from the
  100.         <guimenu>Edit</guimenu> menu. 
  101.       </para>
  102.     </listitem>
  103.         <listitem>
  104.       <para>
  105.         Click on 
  106.         <guiicon><inlinemediaobject>
  107.             <imageobject>
  108.               <imagedata fileref="figures/button-cut.png" />
  109.             </imageobject>
  110.             <textobject>
  111.               <phrase>An image of the cut toolbar button.</phrase>
  112.             </textobject>
  113.            </inlinemediaobject>
  114.            Cut </guiicon> button in the toolbar.
  115.       </para>
  116.     </listitem>
  117.     <listitem>
  118.       <para>Right-click on the selection and choose
  119.       <guimenuitem>Cut</guimenuitem> from the context menu. 
  120.       </para>
  121.     </listitem>
  122.         </itemizedlist>
  123.         The selection will be copied to the clipboard buffer. To
  124.         remind you of this, the border of the selection will be shown
  125.         as "marching ants". The selection will be moved to a new
  126.         location as soon as you choose
  127.         <guimenuitem>Paste</guimenuitem> command as described below.
  128.       </para>
  129.  
  130.       <note>
  131.         <title>NOTE</title>
  132.         <para>
  133.           Please note that the selection will remain in its current
  134.           location until you paste it. If you want to delete a
  135.           selection without pasting it to a new location, use
  136.           <guimenuitem>Delete</guimenuitem> command instead.
  137.         </para>
  138.       </note>
  139.     </sect3><!-- end of "Cut" subsection" -->
  140.  
  141. <!-- **************** "Copy" subsection *********** -->
  142.     <sect3 id="copy">
  143.       <title>Copying a Selection to the Clipboard</title> 
  144.  
  145.       <para>
  146.         To copy a cell or a selection to the clipboard, you should
  147.         select a cell or range of cells as described in <xref
  148.         linkend="sect-data-selections" /> and then use one of the
  149.         following methods:
  150.  
  151.         <itemizedlist>
  152.     <listitem><para>
  153.       Use keyboard shortcut 
  154.         <keycombo><keycap>Ctrl</keycap><keycap>C</keycap></keycombo>.
  155.       </para>
  156.     </listitem>        
  157.     <listitem>
  158.       <para>
  159.         Choose <guimenuitem>Copy</guimenuitem> from the
  160.         <guimenu>Edit</guimenu> menu. 
  161.       </para>
  162.     </listitem>
  163.         <listitem>
  164.       <para>
  165.         Click on 
  166.         <guiicon><inlinemediaobject>
  167.             <imageobject>
  168.               <imagedata fileref="figures/button-copy.png"/>
  169.             </imageobject>
  170.             <textobject>
  171.               <phrase>An image of the copy toolbar button.</phrase>
  172.             </textobject>
  173.            </inlinemediaobject>
  174.             Copy
  175.         </guiicon> button in the toolbar.
  176.       </para>
  177.     </listitem>
  178.     <listitem>
  179.       <para>Right-click on the selection and choose
  180.       <guimenuitem>Copy</guimenuitem> from the context menu. 
  181.       </para>
  182.     </listitem>
  183.         </itemizedlist>
  184.         The selection will be copied to the clipboard buffer. To
  185.         remind you of this, the selection will outlined by "marching
  186.         ants" border. The selection will be copied to a new location
  187.         as soon as you choose <guimenuitem>Paste</guimenuitem> command
  188.         as described below.
  189.       </para>
  190.     </sect3><!-- end of "Copy" subsection" -->
  191.  
  192.  
  193.     <sect3 id="paste">
  194.       <title>Pasting the Clipboard</title>
  195.  
  196.       <para>
  197.         To paste the contents of the clipboard (i.e., previously cut
  198.         or copied selection) to a new location, just click on a cell
  199.         and use one of the following methods:
  200.         <itemizedlist>
  201.     <listitem><para>
  202.       Use keyboard shortcut 
  203.         <keycombo><keycap>Ctrl</keycap><keycap>V</keycap></keycombo>.
  204.       </para>
  205.     </listitem>        
  206.     <listitem>
  207.       <para>
  208.         Choose <guimenuitem>Paste</guimenuitem> from the
  209.         <guimenu>Edit</guimenu> menu. 
  210.       </para>
  211.     </listitem>
  212.         <listitem>
  213.       <para>
  214.         Click on 
  215.         <guiicon><inlinemediaobject>
  216.             <imageobject>
  217.               <imagedata
  218.         fileref="figures/button-paste.png"/>
  219.             </imageobject>
  220.             <textobject>
  221.               <phrase>An image of the paste toolbar button.</phrase>
  222.             </textobject>
  223.            </inlinemediaobject>
  224.             Paste
  225.         </guiicon> button in the toolbar.
  226.       </para>
  227.     </listitem>
  228.     <listitem>
  229.       <para>Right-click on the cell and choose
  230.       <guimenuitem>Paste</guimenuitem> from the context menu. 
  231.       </para>
  232.     </listitem>
  233.         </itemizedlist>
  234.         The contents of the clipboard will be pasted in the
  235.         spreadsheet so that the selected cell becomes the top left
  236.         corner of the selection. This will also copy the formatting of
  237.         the original selection.
  238.       </para>
  239.  
  240.       <para>
  241.         If you are pasting a selection which was
  242.         <emphasis>copied</emphasis> to the clipboard buffer, all
  243.         relative cell references in all formulas will change as
  244.         described in <xref linkend="sect-data-formulas-references"
  245.         />. The selection remains in the clipboard buffer so that it
  246.         can be pasted again. The original selection will remain
  247.         outlined with "marching ants" border.
  248.       </para>
  249.  
  250.       <para>
  251.         If you are pasting a selection which was
  252.         <emphasis>cut</emphasis> to the clipboard buffer, all cell
  253.         references in all formulas will remain unchanged. The original
  254.         selection will be removed from the workbook and the clipboard
  255.         buffer will be cleared.
  256.       </para>
  257.     </sect3> <!-- end of "Paste" subsection -->
  258.  
  259.   </sect2>
  260.  
  261.  
  262.  
  263. <!-- ****************** Paste special subsection ************** -->
  264.   <sect2 id="sect-movecopy-pastespecial">
  265.     <title>Paste Special</title>
  266.  
  267.     <para>
  268.       All of the methods described above to move or copy data create
  269.       identical copies of the original cells in the new location. This
  270.       means that both the contents and the formatting of the original
  271.       selection are copied to the new location and also means that any
  272.       data present in the new location are deleted. It is frequently
  273.       important either to alter the data before it is pasted or to
  274.       merge the data in the new location with the data being
  275.       pasted. The <guimenuitem>Paste Special...</guimenuitem> command
  276.       enables this.
  277.     </para>
  278.  
  279.     <para>
  280.       The <guimenuitem>Paste Special...</guimenuitem> command can act
  281.       exactly like the <guimenuitem>Paste</guimenuitem> command or may
  282.       selectively paste the cell contents, the cell formats, the
  283.       calculated values of the original cells rather than their
  284.       contents.  described in the previous section copies both
  285.       contents and formatting of the original selection. If you need
  286.       more options, use <guimenuitem>Paste Special...</guimenuitem>
  287.       command.
  288.     </para>
  289.  
  290.     <para>
  291.       The <guimenuitem>Paste Special...</guimenuitem> command can be
  292.       accessed, after a selection has been cut or copied as explained
  293.       above, in one of two ways. First, the location where the pasting
  294.       should happen must be selected. The easiest way to do this is to
  295.       select the single cell which will be at the top left hand corner
  296.       of the region of pasted cells. Alternatively, the exact region
  297.       into which the cells will be copied can be selected. After the
  298.       selection is made, the <guimenuitem>Paste
  299.       Special...</guimenuitem> command can be chosen from the
  300.       <guimenu>Edit</guimenu> menu or the context menu obtained by
  301.       clicking with the right mouse button in the cell area of the
  302.       spreadsheet.
  303.     </para>
  304.  
  305.     <para>
  306.        The <guimenuitem>Paste Special...</guimenuitem> menu item opens
  307.        a dialog with three categories. By default, <guimenuitem>Paste
  308.        Special...</guimenuitem> acts as if it were the
  309.        <guimenuitem>Paste</guimenuitem> menu item.
  310.     </para>
  311.  
  312.     <para>The first set of choices allow the user to control the
  313.        data pasted.The user can chose to limit the pasting to only the
  314.        cell contents (no cell formatting is copied) or the opposite
  315.        only cell formats copied (no contents). Furthermore, the user
  316.        can insert the selection while transforming all the contents
  317.        into values only. Formulas will be replaced by their values. 
  318.     </para>
  319.  
  320.     <para>A second set of choices allows the user to perform simple
  321.       mathematical operations during the paste. These operations
  322.       use the current contents of the cells in the paste range and the
  323.       contents of the clipboard. For example, if you are pasting a
  324.       cell containing number 5 to a cell that currently contains
  325.       number 10 and choose option <guilabel>Divide</guilabel>, the
  326.       result will be 10/5=2. Choosing option <guilabel>None</guilabel>
  327.       will just replace the previous contents of the cells by the
  328.       contents of the clipboard buffer (this is the default
  329.       behavior). 
  330.     </para>
  331.  
  332.     <para>
  333.       The final choices contains the following options: 
  334.       <itemizedlist>
  335.     <listitem><para> <guilabel>Transpose</guilabel>. This option
  336.         will transpose the selection, i.e.  interchange the rows
  337.         and columns. Thus, a range with k rows and n columns will
  338.         become a range with n rows and k columns, so that the firs
  339.         row becomes the first column, and so on.
  340.       </para>
  341.     </listitem>
  342.     <listitem><para> <guilabel>Skip Blanks</guilabel>. This option
  343.         prevents <application>Gnumeric</application> from taking
  344.         any action for the cells in the selection that are
  345.         blank. For such cells, the existing  contents of the cells
  346.         in the paste range will be kept. 
  347.       </para>
  348.     </listitem>
  349.       </itemizedlist>
  350.     </para>
  351.   </sect2> <!-- end of "Paste Special" section -->
  352.  
  353.  
  354.  
  355. <!-- ****************** Cut and paste with other applications ******** -->
  356.   <sect2 id="sect-movecopy-xclipboard">
  357.     <title>Cut and Paste Between Gnumeric and Other Applications</title>
  358.  
  359.     <para>
  360.       Cut and paste commands described above allow copying and moving
  361.       selections from one location in  a spreadsheet to another, or
  362.       between different spreadsheets. However, you can also use cut
  363.       and paste to exchange information between
  364.       <application>Gnumeric</application> and other applications,
  365.       using so-called X clipboard which is shared by all graphical
  366.       applications. 
  367.     </para>
  368.  
  369.     <para>
  370.       Whenever you cut or copy a selection in
  371.       <application>Gnumeric</application>, it is placed both in
  372.       <application>Gnumeric</application> clipboard and in X
  373.       clipboard. In X clipboard, it is placed as text, with formulas
  374.       replaced by their values and contents of different cells
  375.       separated by spaces. 
  376.     </para>
  377.  
  378.     <para>
  379.       To paste the selection from X clipboard to an application, click
  380.       with middle mouse button (if you have two button mouse, you can
  381.       emulate the middle mouse button by pressing left and right
  382.       buttons simultaneously). Most applications also allow pasting
  383.       from X clipboard by using keyboard shortcut (usually
  384.       <keycombo><keycap>Ctrl</keycap><keycap>V</keycap></keycombo>) or
  385.       by choosing <menuchoice><guimenu>Edit</guimenu>
  386.       <guimenuitem>Paste</guimenuitem></menuchoice>.
  387.     </para>
  388.  
  389.     <para>To paste a selection from another application to
  390.       <application>Gnumeric</application>, place this selection in the
  391.       X clipboard. Usually it is done by just selecting it with the
  392.       mouse; some applications also allow you to use keyboard shortcut
  393.       <keycombo><keycap>Ctrl</keycap><keycap>C</keycap></keycombo>, or
  394.       choose <menuchoice><guimenu>Edit</guimenu>
  395.       <guimenuitem>Copy</guimenuitem></menuchoice>. After this, you
  396.       can paste it in <application>Gnumeric</application> by using
  397.       <guimenuitem>Paste</guimenuitem> command described <link
  398.       linkend="paste">above</link>. This command will automatically
  399.       paste the contents of X clipboard if Gnumeric's own clipboard is
  400.       empty.
  401.     </para>
  402.  
  403.     <para>
  404.       Pasting X clipboard in <application>Gnumeric</application> will
  405.       automatically launch the <guilabel>Text Import</guilabel> druid
  406.       which will assist you in importing the plain text contents of X
  407.       clipboard into the spreadsheet. The <guilabel>Text
  408.       Import</guilabel> druid is described in <xref
  409.       linkend="sect-file-textImport" />.
  410.     </para>
  411.  
  412.   </sect2>
  413.  
  414. </sect1>
  415.