tplnedef.cxx (97e8a929) tplnedef.cxx (6202fbb6)
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

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

159
160 aNumFldNumber1.SetModifyHdl(
161 LINK( this, SvxLineDefTabPage, ChangeNumber1Hdl_Impl ) );
162 aNumFldNumber2.SetModifyHdl(
163 LINK( this, SvxLineDefTabPage, ChangeNumber2Hdl_Impl ) );
164 aLbLineStyles.SetSelectHdl(
165 LINK( this, SvxLineDefTabPage, SelectLinestyleHdl_Impl ) );
166
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

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

159
160 aNumFldNumber1.SetModifyHdl(
161 LINK( this, SvxLineDefTabPage, ChangeNumber1Hdl_Impl ) );
162 aNumFldNumber2.SetModifyHdl(
163 LINK( this, SvxLineDefTabPage, ChangeNumber2Hdl_Impl ) );
164 aLbLineStyles.SetSelectHdl(
165 LINK( this, SvxLineDefTabPage, SelectLinestyleHdl_Impl ) );
166
167 // #122042# switch off default adding of 'none' and 'solid' entries
168 // for this ListBox; we want to select only editable/dashed styles
169 aLbLineStyles.setAddStandardFields(false);
170
167 // Absolut (in mm) oder Relativ (in %)
168 aCbxSynchronize.SetClickHdl(
169 LINK( this, SvxLineDefTabPage, ChangeMetricHdl_Impl ) );
170
171 // Wenn sich etwas aendert, muss Preview upgedatet werden werden
172 Link aLink = LINK( this, SvxLineDefTabPage, SelectTypeHdl_Impl );
173 aLbType1.SetSelectHdl( aLink );
174 aLbType2.SetSelectHdl( aLink );

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

186 aBtnSave.SetAccessibleRelationMemberOf( &aFlDefinition );
187}
188
189
190// -----------------------------------------------------------------------
191
192void SvxLineDefTabPage::Construct()
193{
171 // Absolut (in mm) oder Relativ (in %)
172 aCbxSynchronize.SetClickHdl(
173 LINK( this, SvxLineDefTabPage, ChangeMetricHdl_Impl ) );
174
175 // Wenn sich etwas aendert, muss Preview upgedatet werden werden
176 Link aLink = LINK( this, SvxLineDefTabPage, SelectTypeHdl_Impl );
177 aLbType1.SetSelectHdl( aLink );
178 aLbType2.SetSelectHdl( aLink );

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

190 aBtnSave.SetAccessibleRelationMemberOf( &aFlDefinition );
191}
192
193
194// -----------------------------------------------------------------------
195
196void SvxLineDefTabPage::Construct()
197{
194 // Linienstile
198 // Line style fill; do *not* add default fields here
195 aLbLineStyles.Fill( pDashList );
196}
197
198// -----------------------------------------------------------------------
199
200void SvxLineDefTabPage::ActivatePage( const SfxItemSet& )
201{
202 if( *pDlgType == 0 ) // Flaechen-Dialog

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

385{
386 return( new SvxLineDefTabPage( pWindow, rOutAttrs ) );
387}
388
389//------------------------------------------------------------------------
390
391IMPL_LINK( SvxLineDefTabPage, SelectLinestyleHdl_Impl, void *, p )
392{
199 aLbLineStyles.Fill( pDashList );
200}
201
202// -----------------------------------------------------------------------
203
204void SvxLineDefTabPage::ActivatePage( const SfxItemSet& )
205{
206 if( *pDlgType == 0 ) // Flaechen-Dialog

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

389{
390 return( new SvxLineDefTabPage( pWindow, rOutAttrs ) );
391}
392
393//------------------------------------------------------------------------
394
395IMPL_LINK( SvxLineDefTabPage, SelectLinestyleHdl_Impl, void *, p )
396{
393 if( pDashList->Count() > 0 )
397 if(pDashList->Count())
394 {
395 int nTmp = aLbLineStyles.GetSelectEntryPos();
398 {
399 int nTmp = aLbLineStyles.GetSelectEntryPos();
396 if( nTmp == LISTBOX_ENTRY_NOTFOUND )
400
401 if(LISTBOX_ENTRY_NOTFOUND == nTmp)
397 {
402 {
403 OSL_ENSURE(false, "OOps, non-existent LineDash selected (!)");
404 nTmp = 1;
398 }
405 }
399 else
400 aDash = pDashList->GetDash( nTmp )->GetDash();
401
406
407 aDash = pDashList->GetDash( nTmp )->GetDash();
408
402 FillDialog_Impl();
403
404 rXLSet.Put( XLineDashItem( String(), aDash ) );
405
406 // #i34740#
407 aCtlPreview.SetLineAttributes(aXLineAttr.GetItemSet());
408
409 aCtlPreview.Invalidate();

--- 612 unchanged lines hidden ---
409 FillDialog_Impl();
410
411 rXLSet.Put( XLineDashItem( String(), aDash ) );
412
413 // #i34740#
414 aCtlPreview.SetLineAttributes(aXLineAttr.GetItemSet());
415
416 aCtlPreview.Invalidate();

--- 612 unchanged lines hidden ---