Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3F339354 for ; Thu, 28 Jun 2012 09:28:43 +0000 (UTC) Received: (qmail 18728 invoked by uid 500); 28 Jun 2012 09:28:43 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 18629 invoked by uid 500); 28 Jun 2012 09:28:43 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 18621 invoked by uid 99); 28 Jun 2012 09:28:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 09:28:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jogischmidt@googlemail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 09:28:37 +0000 Received: by bkcjm2 with SMTP id jm2so1632952bkc.6 for ; Thu, 28 Jun 2012 02:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=KmaPm86tuQ3TVzJ3eSZunOtwU8sz0nU3RtuX9VEABUg=; b=T2/BNegYKIUriGTdULC4hM7J9AYueP466PcNJzmSv+zPwgryCfGaNC+zBlur3rb11P G8W0hHfzTs/pbvcrXr2pK62dYDXl69tYDyTwtGcUskVdSsBgvJMs7OOwe78GftV0evce IsYH11q4bS3txJpjOy45JaJsg6W0Qc/hmtspGvXxWwvUIfkAqKbtjv5vghYiEmTz0HWO f4rtCyV0QpIS1zF/xmGEB66PhJFZG6mGmpHDlQISrWZb4gDQiMIWPk6pDwYD1aDBo4Uu EkIxGJ2vPSHoLcDvFPBLrmA5Cq9h4flyBgTLg/nNDWYteknD1hkZW4mIOPjCtDLOLqyR C8IA== Received: by 10.204.153.6 with SMTP id i6mr474136bkw.114.1340875695964; Thu, 28 Jun 2012 02:28:15 -0700 (PDT) Received: from [9.155.131.47] (deibp9eh1--blueice2n2.emea.ibm.com. [195.212.29.172]) by mx.google.com with ESMTPS id iq16sm58140133bkc.6.2012.06.28.02.28.14 (version=SSLv3 cipher=OTHER); Thu, 28 Jun 2012 02:28:15 -0700 (PDT) Message-ID: <4FEC23AE.2080906@googlemail.com> Date: Thu, 28 Jun 2012 11:28:14 +0200 From: =?ISO-8859-1?Q?J=FCrgen_Schmidt?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org Subject: Re: [Discussion]Active Doc/Sheet protection password related blocks References: <4FEAB273.9030507@googlemail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 6/28/12 11:14 AM, Steve Yin wrote: > Hi all, > > This feature has been tested and enabled in Symphony over 2 years. It does > work. And The hash algorithm is correct. I remember Kohei's aim was to > implement almost all protection features like MS Excel includes different > privileges. One possible reason is the current implementation is not > complete for Kohei, So he disable the feature by default at that time. > However. I think we can enable it safely now. we should track it then as a new feature for 3.5. I suggest that we create a feature task for it. Juergen > > On Thu, Jun 28, 2012 at 3:35 PM, Lei Wang wrote: > >> Hi Jian Yuan, >> >> The file tabprotection.hxx is created by CWS scheetprotection02. I go >> through the comments when this CWS integrated into the trunk. But I do not >> find any useful information. >> >> If Excel use another hash algorithm, AOO can not unprotect the sheet/doc >> even user input the right password. To avoid this bad situation, I guess >> the developer disable related function. >> >> On Wed, Jun 27, 2012 at 3:12 PM, Oliver-Rainer Wittmann < >> orwittmann@googlemail.com> wrote: >> >>> Hi, >>> >>> >>> On 26.06.2012 08:44, Jianyuan Li wrote: >>> >>>> Hi, all, >>>> >>>> In ../sc/inc/tabprotection.hxx, a macro is defined as below: >>>> #define ENABLE_SHEET_PROTECTION 0 >>>> >>>> So all blocks controlled by it will not be executed: >>>> 1. Import/export Sheet/Doc protection password for a protected xls file. >>>> 2. Import a protected xls file and show unpassword dlg to input password >>>> when unprotect the sheet/doc. >>>> 2. Import a ods/xls file and export it as a xls/ods file. Show password >>>> retype dlg. >>>> And there is an issue related to it: >>>> https://issues.apache.org/ooo/**show_bug.cgi?id=119552< >> https://issues.apache.org/ooo/show_bug.cgi?id=119552>. >>>> I have added some >>>> comments for it. >>>> I had a simple test to set the macro as 1 and checked all above >> scenarios. >>>> It works well. So here I want to set the macro as 1. >>>> >>>> Any comments? Or does anyone know the initial thought for the value "0" >>>> of ENABLE_SHEET_PROTECTION? >>>> >>>> >>> I do not know anything about this code. >>> >>> But may be a look in the hg repository - still available at [1] - would >>> help. May be the one or the other commit log message by which this macro >>> has been introduced would give some answers. >>> >>> [1] http://hg.services.openoffice.**org/< >> http://hg.services.openoffice.org/> >>> >>> >>> Best regards, Oliver. >>> >> > > >