appenv.cxx (43f0f119) appenv.cxx (8ef2f12b)
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

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

247 {
248 SFX_REQUEST_ARG( rReq, pBoolItem, SfxBoolItem, FN_PARAM_1, sal_False );
249 if ( pBoolItem && pBoolItem->GetValue() )
250 nMode = ENV_NEWDOC;
251 }
252
253 if (nMode == ENV_NEWDOC || nMode == ENV_INSERT)
254 {
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

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

247 {
248 SFX_REQUEST_ARG( rReq, pBoolItem, SfxBoolItem, FN_PARAM_1, sal_False );
249 if ( pBoolItem && pBoolItem->GetValue() )
250 nMode = ENV_NEWDOC;
251 }
252
253 if (nMode == ENV_NEWDOC || nMode == ENV_INSERT)
254 {
255 SwWait aWait( (SwDocShell&)*xDocSh, sal_True );
255 SwWait aWait( (SwDocShell&)*xDocSh, true );
256
257 // Dialog auslesen, Item in Config speichern
258 const SwEnvItem& rItem = pItem ? *pItem : (const SwEnvItem&) pDlg->GetOutputItemSet()->Get(FN_ENVELOP);
259 aEnvCfg.GetItem() = rItem;
260 aEnvCfg.Commit();
261
262 //Wenn wir Drucken uebernehmen wir den eingestellten Jobsetup aus
263 //dem Dialog. Die Informationen muessen hier vor dem evtl. zerstoeren

--- 274 unchanged lines hidden ---
256
257 // Dialog auslesen, Item in Config speichern
258 const SwEnvItem& rItem = pItem ? *pItem : (const SwEnvItem&) pDlg->GetOutputItemSet()->Get(FN_ENVELOP);
259 aEnvCfg.GetItem() = rItem;
260 aEnvCfg.Commit();
261
262 //Wenn wir Drucken uebernehmen wir den eingestellten Jobsetup aus
263 //dem Dialog. Die Informationen muessen hier vor dem evtl. zerstoeren

--- 274 unchanged lines hidden ---