forked from amazingfate/loongoffice
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>
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
/* -*- 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_DocumentPasswordRequest_idl__
|
|
#define __com_sun_star_task_DocumentPasswordRequest_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 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 1.1.2
|
|
*/
|
|
published exception DocumentPasswordRequest: PasswordRequest
|
|
{
|
|
/** the name of the document (more properly, the URL of the document)
|
|
*/
|
|
string Name;
|
|
|
|
};
|
|
|
|
|
|
}; }; }; };
|
|
|
|
#endif
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|