docinsert.cxx (d119d52d) docinsert.cxx (940681c7)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 191 unchanged lines hidden (view full) ---

200 // always create a new itemset
201 m_pItemSet = new SfxAllItemSet( SFX_APP()->GetPool() );
202
203 short nDlgType = m_pFileDlg->GetDialogType();
204 bool bHasPassword = (
205 TemplateDescription::FILESAVE_AUTOEXTENSION_PASSWORD == nDlgType
206 || TemplateDescription::FILESAVE_AUTOEXTENSION_PASSWORD_FILTEROPTIONS == nDlgType );
207
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 191 unchanged lines hidden (view full) ---

200 // always create a new itemset
201 m_pItemSet = new SfxAllItemSet( SFX_APP()->GetPool() );
202
203 short nDlgType = m_pFileDlg->GetDialogType();
204 bool bHasPassword = (
205 TemplateDescription::FILESAVE_AUTOEXTENSION_PASSWORD == nDlgType
206 || TemplateDescription::FILESAVE_AUTOEXTENSION_PASSWORD_FILTEROPTIONS == nDlgType );
207
208 // check, wether or not we have to display a password box
208 // check, whether or not we have to display a password box
209 if ( bHasPassword && m_pFileDlg->IsPasswordEnabled() )
210 {
211 try
212 {
213 Any aValue = xCtrlAccess->getValue( ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, 0 );
214 sal_Bool bPassWord = sal_False;
215 if ( ( aValue >>= bPassWord ) && bPassWord )
216 {

--- 85 unchanged lines hidden ---
209 if ( bHasPassword && m_pFileDlg->IsPasswordEnabled() )
210 {
211 try
212 {
213 Any aValue = xCtrlAccess->getValue( ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, 0 );
214 sal_Bool bPassWord = sal_False;
215 if ( ( aValue >>= bPassWord ) && bPassWord )
216 {

--- 85 unchanged lines hidden ---