<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 -->

<meta>
  <topic id="textsharedguideprotectionxml" indexer="include">
    <title xml-lang="en-US" id="tit">Protecting Content in %PRODUCTNAME</title>
    <filename>/text/shared/guide/protection.xhp</filename>
  </topic>
</meta>
<body>
  <bookmark xml-lang="en-US" branch="index" id="bm_id3150620">
    <bookmark_value>protecting; contents</bookmark_value>
    <bookmark_value>protected contents</bookmark_value>
    <bookmark_value>contents protection</bookmark_value>
    <bookmark_value>encryption of contents</bookmark_value>
    <bookmark_value>passwords for protecting contents</bookmark_value>
    <bookmark_value>security;protecting contents</bookmark_value>
    <bookmark_value>form controls; protecting</bookmark_value>
    <bookmark_value>draw objects;protecting</bookmark_value>
    <bookmark_value>OLE objects;protecting</bookmark_value>
    <bookmark_value>graphics;protecting</bookmark_value>
    <bookmark_value>frames;protecting</bookmark_value>
  </bookmark>
  <h1 id="hd_id3155364"><variable id="protection"><link href="text/shared/guide/protection.xhp">Protecting Contents in <item type="productname">%PRODUCTNAME</item></link>
</variable></h1>
  <paragraph xml-lang="en-US" id="par_id3153394" role="paragraph">The following is an overview of the different ways of protecting contents in <item type="productname">%PRODUCTNAME</item> from being modified, deleted or viewed.</paragraph>
  <h2 id="hd_id3146957">Protecting Documents With Passwords When Saving</h2>
  <paragraph xml-lang="en-US" id="par_id3150775" role="paragraph">All documents that are saved in <link href="text/shared/00/00000021.xhp">OpenDocument format</link> can be saved with a password. Documents that are saved with a password cannot be opened without the password. The content is secured so that it cannot be read with an external editor. This applies to content, graphics and OLE objects.</paragraph>
      <table id="tbl_id3145071">
         <tablerow>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3166410" role="paragraph">Turning on protection</paragraph>
            </tablecell>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3145121" role="paragraph">Choose <emph>File - Save As</emph> and mark the <emph>Save with password</emph> check box. Save the document.</paragraph>
            </tablecell>
         </tablerow>
         <tablerow>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3154286" role="paragraph">Turning off protection</paragraph>
            </tablecell>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3148492" role="paragraph">Open the document, entering the correct password. Choose <emph>File - Save As</emph> and clear the <emph>Save with password</emph> check box.</paragraph>
            </tablecell>
         </tablerow>
      </table>
  <tip id="par_id761632164002322">It is possible to use OpenPGP to define private and public keys to be used to encrypt %PRODUCTNAME documents. Read <link href="text/shared/guide/openpgp.xhp">Encrypting Documents with OpenPGP</link> to learn more on how to set up OpenPGP encryption keys.</tip>
  <h2 id="hd_id3149294">Protecting Revision Marking</h2>
  <paragraph xml-lang="en-US" id="par_id3161646" role="paragraph">With every change made in <item type="productname">%PRODUCTNAME</item> Calc and <item type="productname">%PRODUCTNAME</item> Writer, the review function records who made the change. This function can be turned on with protection, so that it can only be turned off when the correct password is entered. Until then, all changes will continue to be recorded. Acceptance or rejection of changes is not possible.</paragraph>
      <table id="tbl_id3148797">
         <tablerow>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3154684" role="paragraph">Turning on protection</paragraph>
            </tablecell>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3153104" role="paragraph">Choose <emph>Edit - Track Changes - Protect</emph>. Enter and confirm a password of at least one character.</paragraph>
            </tablecell>
         </tablerow>
         <tablerow>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3144760" role="paragraph">Turning off protection</paragraph>
            </tablecell>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3152920" role="paragraph">Choose <emph>Edit - Track Changes - Protect</emph>. Enter the correct password.</paragraph>
            </tablecell>
         </tablerow>
      </table>
  <h2 id="hd_id3155113">Protecting Frames, Graphics, and OLE Objects</h2>
  <paragraph xml-lang="en-US" id="par_id3153703" role="paragraph">You can protect the content, position and size of inserted graphics. The same applies to frames (in Writer) and OLE objects.</paragraph>
      <table id="tbl_id3158447">
         <tablerow>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3147131" role="paragraph">Turning on protection</paragraph>
            </tablecell>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3150088" role="paragraph">For example, for graphics inserted in Writer: Choose <emph>Format - Image - Properties - Position and Size</emph> tab. Under <emph>Protect</emph>, mark <emph>Contents</emph>, <emph>Position</emph> and/or <emph>Size</emph>.</paragraph>
            </tablecell>
         </tablerow>
         <tablerow>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3147510" role="paragraph">Turning off protection</paragraph>
            </tablecell>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3153657" role="paragraph">For example, for graphics inserted in Writer: Choose <emph>Format - Image - Properties - Position and Size</emph> tab. Under <emph>Protect</emph>, unmark as appropriate.</paragraph>
            </tablecell>
         </tablerow>
      </table>
  <h2 id="hd_id3152992">Protecting Drawing Objects and Form Objects</h2>
  <paragraph xml-lang="en-US" id="par_id3166429" role="paragraph">The draw objects that you insert into your documents with the <emph>Drawing </emph>toolbar can be protected from being accidentally moved or changed in size. You can do the same with form objects inserted with the <emph>Form Controls</emph> toolbar.</paragraph>
      <table id="tbl_id3151062">
         <tablerow>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3153226" role="paragraph">Turning on protection</paragraph>
            </tablecell>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3148815" role="paragraph">Choose <emph>Format - Object - Position and Size </emph>- <emph>Position and Size</emph> tab. Mark the <emph>Position</emph> or <emph>Size</emph> check box.</paragraph>
            </tablecell>
         </tablerow>
         <tablerow>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3156289" role="paragraph">Turning off protection</paragraph>
            </tablecell>
            <tablecell>
               <paragraph xml-lang="en-US" id="par_id3154991" role="paragraph">Choose <emph>Format - Object - Position and Size </emph>- <emph>Position and Size</emph> tab. Unmark the <emph>Position</emph> or <emph>Size</emph> check box.</paragraph>
            </tablecell>
         </tablerow>
      </table>
  <section id="relatedtopics">
    <embed href="text/shared/guide/doc_save.xhp#doc_save"/>
    <embed href="text/shared/guide/redlining_protect.xhp#redlining_protect"/>
    <embed href="text/shared/guide/digital_signatures.xhp#digital_signatures"/>
    <embed href="text/swriter/guide/protection.xhp#protection"/>
    <embed href="text/scalc/guide/cell_protect.xhp#cell_protect"/>
    <embed href="text/shared/guide/openpgp.xhp#openpgph1"/>
  </section>
</body>
</helpdocument>
