summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwsh3.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-28 09:31:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-28 11:50:15 +0100
commit396ab1eba7be8dcedf09854035b9f22137540d56 (patch)
tree49b2dcb61f98a9dd7ff5b12223adae6a4e946564 /sc/source/ui/view/tabvwsh3.cxx
parent31fc0b74425253589b2ac0dcecb9e8a2714954b4 (diff)
convert pdf security page to .ui
Change-Id: Ie785f4b112b8992707f886720d92bd34d0823f39
Diffstat (limited to 'sc/source/ui/view/tabvwsh3.cxx')
-rw-r--r--sc/source/ui/view/tabvwsh3.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx
index e1041b1964d5..0e03f04a2301 100644
--- a/sc/source/ui/view/tabvwsh3.cxx
+++ b/sc/source/ui/view/tabvwsh3.cxx
@@ -987,14 +987,14 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
ScDocProtection* pProtect = pDoc->GetDocProtection();
if (pProtect && pProtect->isProtected())
{
- sal_Bool bCancel = false;
- String aPassword;
+ sal_Bool bCancel = false;
+ OUString aPassword;
if (pProtect->isProtectedWithPass())
{
- String aText( ScResId(SCSTR_PASSWORD) );
+ OUString aText(ScResId(SCSTR_PASSWORD));
- pDlg = new SfxPasswordDialog( GetDialogParent(), &aText );
+ pDlg = new SfxPasswordDialog(GetDialogParent(), &aText);
pDlg->SetText( ScResId(SCSTR_UNPROTECTDOC) );
pDlg->SetMinLen( 0 );
pDlg->SetHelpId( GetStaticInterface()->GetSlot(FID_PROTECT_DOC)->GetCommand() );
@@ -1015,7 +1015,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
}
else
{
- String aText( ScResId(SCSTR_PASSWORDOPT) );
+ OUString aText(ScResId(SCSTR_PASSWORDOPT));
pDlg = new SfxPasswordDialog( GetDialogParent(), &aText );
pDlg->SetText( ScResId(SCSTR_PROTECTDOC) );
@@ -1065,7 +1065,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
ScTableProtection* pProtect = pDoc->GetTabProtection(nTab);
if (pProtect && pProtect->isProtectedWithPass())
{
- String aText( ScResId(SCSTR_PASSWORDOPT) );
+ OUString aText( ScResId(SCSTR_PASSWORDOPT) );
auto_ptr<SfxPasswordDialog> pDlg(new SfxPasswordDialog(GetDialogParent(), &aText));
pDlg->SetText( ScResId(SCSTR_UNPROTECTTAB) );
pDlg->SetMinLen( 0 );