office-gobmx/offapi/com/sun/star/task/DocumentMSPasswordRequest.idl
Tomofumi Yagi 7660e4dcec tdf#89694 Password dialog for opening OOXML shows url-encoded path
We need to convert a path string to decoded it for OOXML with a password as ODF
is so. This patch adds the converting process for OOXML.

In addition, this patch moves the decoded-point of URL into
css.task.Document[MS]PasswordRequest ctor from the outside. This decoded-point of
URL into ctor is common for OOXML and ODF.

(notes: Strange to say, css.task.Document[MS]PasswordRequest ctor needs "aDocURL",
    but methods in interaction-handler use "aDocumentName" as the parameter.
    Probably this will be fixed in near future.)

Change-Id: I0ecfddf0f70ea5810df52d9ca8637f483a26df2f
Reviewed-on: https://gerrit.libreoffice.org/14677
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-10-20 09:42:13 +00:00

51 lines
1.7 KiB
Text

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* 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 .
*/
#ifndef __com_sun_star_task_DocumentMSPasswordRequest_idl__
#define __com_sun_star_task_DocumentMSPasswordRequest_idl__
#include <com/sun/star/task/PasswordRequest.idl>
module com { module sun { module star { module task {
/** this request specifies the mode in which the password for Microsoft Office file format encryption should be asked
<P>
It is supported by InteractionHandler service, and can
be used to interact for a document password. Continuations for using with
the mentioned service are Abort and Approve.
</P>
@since OOo 3.2
*/
published exception DocumentMSPasswordRequest: PasswordRequest
{
/** the name of the document (more properly, the URL of the document)
*/
string Name;
};
}; }; }; };
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */