Kaydet (Commit) 43556658 authored tarafından Caolán McNamara's avatar Caolán McNamara

convert another password dialog to .ui

Change-Id: I208854a35886959a439954e7848dc277ee6fa96b
üst ca789f8e
......@@ -117,6 +117,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/paragalignpage \
cui/uiconfig/ui/paraindentspacing \
cui/uiconfig/ui/paratabspage \
cui/uiconfig/ui/password \
cui/uiconfig/ui/pastespecial \
cui/uiconfig/ui/percentdialog \
cui/uiconfig/ui/personalization_tab \
......
/* -*- 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 _CUI_PASSWDOMDLG_HRC_
#define _CUI_PASSWDOMDLG_HRC_
#define FL_FILE_ENCRYPTION 10
#define FT_PASSWD_TO_OPEN 11
#define ED_PASSWD_TO_OPEN 12
#define FT_REENTER_PASSWD_TO_OPEN 13
#define ED_REENTER_PASSWD_TO_OPEN 14
#define FT_PASSWD_NOTE 17
#define FL_BUTTONS 18
#define BTN_MORE_FEWER_OPTIONS 19
#define BTN_OK 20
#define BTN_CANCEL 21
#define FL_FILE_SHARING_OPTIONS 22
#define FT_PASSWD_TO_MODIFY 23
#define ED_PASSWD_TO_MODIFY 24
#define FT_REENTER_PASSWD_TO_MODIFY 25
#define ED_REENTER_PASSWD_TO_MODIFY 26
#define CB_OPEN_READONLY 29
#define STR_MORE_OPTIONS 51
#define STR_FEWER_OPTIONS 52
#define STR_PASSWD_MUST_BE_CONFIRMED 53
#define STR_ONE_PASSWORD_MISMATCH 54
#define STR_TWO_PASSWORDS_MISMATCH 55
#define STR_INVALID_STATE_FOR_OK_BUTTON 56
#define STR_INVALID_STATE_FOR_OK_BUTTON_V2 57
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -17,187 +17,32 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <cuires.hrc>
#include "passwdomdlg.hrc"
#include "helpid.hrc"
ModalDialog RID_DLG_PASSWORD_TO_OPEN_MODIFY
String RID_SVXSTR_PASSWD_MUST_BE_CONFIRMED
{
Size = MAP_APPFONT( 171, 150 );
Text [ en-US ] = "Set Password";
HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY;
Border = TRUE ;
Moveable = TRUE ;
OutputSize = TRUE ;
SVLook = TRUE ;
FixedLine FL_FILE_ENCRYPTION
{
Pos = MAP_APPFONT( 3, 3 );
Size = MAP_APPFONT( 165, 8 );
Text [ en-US ] = "File encryption password";
};
FixedText FT_PASSWD_TO_OPEN
{
Pos = MAP_APPFONT( 6, 17 );
Size = MAP_APPFONT( 159, 8 );
Text [ en-US ] = "~Enter password to open";
WordBreak = TRUE;
};
Edit ED_PASSWD_TO_OPEN
{
HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_OPEN;
Pos = MAP_APPFONT( 6, 28 );
Size = MAP_APPFONT( 159, 12 );
Border = TRUE ;
PassWord = TRUE ;
};
FixedText FT_REENTER_PASSWD_TO_OPEN
{
Pos = MAP_APPFONT( 6, 45 );
Size = MAP_APPFONT( 159, 8 );
Text [ en-US ] = "Confirm password";
WordBreak = TRUE;
};
Edit ED_REENTER_PASSWD_TO_OPEN
{
HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_OPEN;
Pos = MAP_APPFONT( 6, 56 );
Size = MAP_APPFONT( 159, 12 );
Border = TRUE ;
PassWord = TRUE ;
};
FixedText FT_PASSWD_NOTE
{
Pos = MAP_APPFONT( 6, 80 );
Size = MAP_APPFONT( 159, 4*8 ); // some extra space for translation in other languages
Text [ en-US ] = "Note: After a password has been set, the document will only open with "\
"the password. Should you lose the password, there will be no way to "\
"recover the document. Please also note that this password is case-sensitive.";
WordBreak = TRUE;
};
FixedLine FL_BUTTONS
{
Pos = MAP_APPFONT( 0, 117 );
Size = MAP_APPFONT( 171, 8 );
};
MoreButton BTN_MORE_FEWER_OPTIONS
{
HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_MORE;
Pos = MAP_APPFONT( 6 , 130 ) ;
Size = MAP_APPFONT( 50 , 14 ) ;
Delta = 92 ;
MapUnit = MAP_APPFONT ;
State = FALSE ;
};
OKButton BTN_OK
{
Pos = MAP_APPFONT( 62, 130 );
Size = MAP_APPFONT( 50, 14 );
DefButton = TRUE ;
};
CancelButton BTN_CANCEL
{
Pos = MAP_APPFONT( 115, 130 );
Size = MAP_APPFONT( 50, 14 );
};
FixedLine FL_FILE_SHARING_OPTIONS
{
Pos = MAP_APPFONT( 3, 154 );
Size = MAP_APPFONT( 165, 8 );
Text [ en-US ] = "File sharing password";
};
CheckBox CB_OPEN_READONLY
{
HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_FILE_READONLY;
Pos = MAP_APPFONT( 6, 170 );
Size = MAP_APPFONT( 159, 8 );
Text [ en-US ] = "Open file read-only";
};
FixedText FT_PASSWD_TO_MODIFY
{
Pos = MAP_APPFONT( 6, 186 );
Size = MAP_APPFONT( 159, 8 );
Text [ en-US ] = "Enter password to allow editing";
WordBreak = TRUE;
};
Edit ED_PASSWD_TO_MODIFY
{
HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_MODIFY;
Pos = MAP_APPFONT( 6, 196 );
Size = MAP_APPFONT( 159, 12 );
Border = TRUE ;
PassWord = TRUE ;
};
FixedText FT_REENTER_PASSWD_TO_MODIFY
{
Pos = MAP_APPFONT( 6, 214 );
Size = MAP_APPFONT( 159, 8 );
Text [ en-US ] = "Confirm password";
WordBreak = TRUE;
};
Edit ED_REENTER_PASSWD_TO_MODIFY
{
HelpId = HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_MODIFY;
Pos = MAP_APPFONT( 6, 224 );
Size = MAP_APPFONT( 159, 12 );
Border = TRUE ;
PassWord = TRUE ;
};
String STR_PASSWD_MUST_BE_CONFIRMED
{
Text [ en-US ] = "Password must be confirmed" ;
};
String STR_MORE_OPTIONS
{
Text [ en-US ] = "More ~Options" ;
};
String STR_FEWER_OPTIONS
{
Text [ en-US ] = "Fewer ~Options" ;
};
Text [ en-US ] = "Password must be confirmed" ;
};
String STR_ONE_PASSWORD_MISMATCH
{
Text [ en-US ] = "The confirmation password did not match the password. Set the password again by entering the same password in both boxes." ;
};
String RID_SVXSTR_ONE_PASSWORD_MISMATCH
{
Text [ en-US ] = "The confirmation password did not match the password. Set the password again by entering the same password in both boxes." ;
};
String STR_TWO_PASSWORDS_MISMATCH
{
Text [ en-US ] = "The confirmation passwords did not match the original passwords. Set the passwords again." ;
};
String RID_SVXSTR_TWO_PASSWORDS_MISMATCH
{
Text [ en-US ] = "The confirmation passwords did not match the original passwords. Set the passwords again." ;
};
String STR_INVALID_STATE_FOR_OK_BUTTON
{
Text [ en-US ] = "Please enter a password to open or to modify, or check the open read-only option to continue." ;
};
String RID_SVXSTR_INVALID_STATE_FOR_OK_BUTTON
{
Text [ en-US ] = "Please enter a password to open or to modify, or check the open read-only option to continue." ;
};
// this missing string was detected late - so for 3.4 we just add an english string
String STR_INVALID_STATE_FOR_OK_BUTTON_V2
{
Text = "Set the password by entering the same password in both boxes." ;
};
// this missing string was detected late - so for 3.4 we just add an english string
String RID_SVXSTR_INVALID_STATE_FOR_OK_BUTTON_V2
{
Text = "Set the password by entering the same password in both boxes." ;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -225,9 +225,6 @@
#define RID_SVXSTR_ARCHIVE_HEADLINE (RID_SVX_START + 485)
#define RID_SVXSTR_MULTIFILE_DBL_ERR (RID_SVX_START + 486)
// password to open/modify dialog
#define RID_DLG_PASSWORD_TO_OPEN_MODIFY (RID_SVX_START + 500)
// multi path dialog
#define RID_SVXDLG_MULTIPATH (RID_SVX_START + 201)
#define RID_MULTIPATH_DBL_ERR (RID_SVX_START + 207)
......@@ -441,6 +438,12 @@
#define RID_SVXSTR_THES (RID_SVX_START + 1255)
#define RID_SVXSTR_GRAMMAR (RID_SVX_START + 1256)
#define RID_SVXSTR_PASSWD_MUST_BE_CONFIRMED (RID_SVX_START + 1257)
#define RID_SVXSTR_ONE_PASSWORD_MISMATCH (RID_SVX_START + 1258)
#define RID_SVXSTR_TWO_PASSWORDS_MISMATCH (RID_SVX_START + 1259)
#define RID_SVXSTR_INVALID_STATE_FOR_OK_BUTTON (RID_SVX_START + 1260)
#define RID_SVXSTR_INVALID_STATE_FOR_OK_BUTTON_V2 (RID_SVX_START + 1261)
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -224,13 +224,6 @@
#define HID_LINKDLG_TABLB "CUI_HID_LINKDLG_TABLB"
#define HID_MACRO_HEADERTABLISTBOX "CUI_HID_MACRO_HEADERTABLISTBOX"
#define HID_DLG_PASSWORD_TO_OPEN_MODIFY "CUI_HID_DLG_PASSWORD_TO_OPEN_MODIFY"
#define HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_OPEN "CUI_HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_OPEN"
#define HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_OPEN "CUI_HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_OPEN"
#define HID_DLG_PASSWORD_TO_OPEN_MODIFY_MORE "CUI_HID_DLG_PASSWORD_TO_OPEN_MODIFY_MORE"
#define HID_DLG_PASSWORD_TO_OPEN_MODIFY_FILE_READONLY "CUI_HID_DLG_PASSWORD_TO_OPEN_MODIFY_FILE_READONLY"
#define HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_MODIFY "CUI_HID_DLG_PASSWORD_TO_OPEN_MODIFY_PASSWORD_TO_MODIFY"
#define HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_MODIFY "CUI_HID_DLG_PASSWORD_TO_OPEN_MODIFY_CONFIRM_PASSWORD_TO_MODIFY"
#define HID_HYPERLINK_DIALOG "CUI_HID_HYPERLINK_DIALOG"
#define HID_DLG_CERTPATH "CUI_HID_DLG_CERTPATH"
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment