Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include <tools/shl.hxx>
30 : : #include <sfx2/app.hxx>
31 : : #include <sfx2/module.hxx>
32 : : #include <svl/intitem.hxx>
33 : :
34 : : #define _SVX_OPTGRID_CXX
35 : :
36 : : #include <svx/svxids.hrc>
37 : : #include <svx/dialmgr.hxx>
38 : : #include "svx/optgrid.hxx"
39 : : #include <svx/dialogs.hrc>
40 : : #include "optgrid.hrc"
41 : : #include "svx/dlgutil.hxx"
42 : :
43 : : // local functions
44 : 0 : void lcl_GetMinMax(MetricField& rField, long& nFirst, long& nLast, long& nMin, long& nMax)
45 : : {
46 : 0 : nFirst = static_cast<long>(rField.Denormalize( rField.GetFirst( FUNIT_TWIP ) ));
47 : 0 : nLast = static_cast<long>(rField.Denormalize( rField.GetLast( FUNIT_TWIP ) ));
48 : 0 : nMin = static_cast<long>(rField.Denormalize( rField.GetMin( FUNIT_TWIP ) ));
49 : 0 : nMax = static_cast<long>(rField.Denormalize( rField.GetMax( FUNIT_TWIP ) ));
50 : 0 : }
51 : :
52 : 0 : void lcl_SetMinMax(MetricField& rField, long nFirst, long nLast, long nMin, long nMax)
53 : : {
54 : 0 : rField.SetFirst( rField.Normalize( nFirst ), FUNIT_TWIP );
55 : 0 : rField.SetLast( rField.Normalize( nLast ), FUNIT_TWIP );
56 : 0 : rField.SetMin( rField.Normalize( nMin ), FUNIT_TWIP );
57 : 0 : rField.SetMax( rField.Normalize( nMax ), FUNIT_TWIP );
58 : 0 : }
59 : :
60 : 7297 : SvxOptionsGrid::SvxOptionsGrid() :
61 : : nFldDrawX ( 100 ),
62 : : nFldDivisionX ( 0 ),
63 : : nFldDrawY ( 100 ),
64 : : nFldDivisionY ( 0 ),
65 : : nFldSnapX ( 100 ),
66 : : nFldSnapY ( 100 ),
67 : : bUseGridsnap ( 0 ),
68 : : bSynchronize ( 1 ),
69 : : bGridVisible ( 0 ),
70 : 7297 : bEqualGrid ( 1 )
71 : : {
72 : 7297 : }
73 : :
74 : 9636 : SvxOptionsGrid::~SvxOptionsGrid()
75 : : {
76 : 9636 : }
77 : :
78 : 0 : SvxGridItem::SvxGridItem( const SvxGridItem& rItem )
79 : : : SvxOptionsGrid()
80 [ # # ]: 0 : , SfxPoolItem(rItem)
81 : : {
82 : 0 : bUseGridsnap = rItem.bUseGridsnap ;
83 : 0 : bSynchronize = rItem.bSynchronize ;
84 : 0 : bGridVisible = rItem.bGridVisible ;
85 : 0 : bEqualGrid = rItem.bEqualGrid ;
86 : 0 : nFldDrawX = rItem.nFldDrawX ;
87 : 0 : nFldDivisionX= rItem.nFldDivisionX;
88 : 0 : nFldDrawY = rItem.nFldDrawY ;
89 : 0 : nFldDivisionY= rItem.nFldDivisionY;
90 : 0 : nFldSnapX = rItem.nFldSnapX ;
91 : 0 : nFldSnapY = rItem.nFldSnapY ;
92 : :
93 : 0 : };
94 : :
95 : 0 : SfxPoolItem* SvxGridItem::Clone( SfxItemPool* ) const
96 : : {
97 [ # # ]: 0 : return new SvxGridItem( *this );
98 : : }
99 : :
100 : 0 : int SvxGridItem::operator==( const SfxPoolItem& rAttr ) const
101 : : {
102 : : DBG_ASSERT( SfxPoolItem::operator==(rAttr), "different types ");
103 : :
104 : 0 : const SvxGridItem& rItem = (const SvxGridItem&) rAttr;
105 : :
106 : : return ( bUseGridsnap == rItem.bUseGridsnap &&
107 : : bSynchronize == rItem.bSynchronize &&
108 : : bGridVisible == rItem.bGridVisible &&
109 : : bEqualGrid == rItem.bEqualGrid &&
110 : : nFldDrawX == rItem.nFldDrawX &&
111 : : nFldDivisionX== rItem.nFldDivisionX&&
112 : : nFldDrawY == rItem.nFldDrawY &&
113 : : nFldDivisionY== rItem.nFldDivisionY&&
114 : : nFldSnapX == rItem.nFldSnapX &&
115 [ # # ][ # # ]: 0 : nFldSnapY == rItem.nFldSnapY );
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
116 : : }
117 : :
118 : 0 : SfxItemPresentation SvxGridItem::GetPresentation
119 : : (
120 : : SfxItemPresentation ePres,
121 : : SfxMapUnit /*eCoreUnit*/,
122 : : SfxMapUnit /*ePresUnit*/,
123 : : String& rText, const IntlWrapper *
124 : : ) const
125 : : {
126 [ # # # ]: 0 : switch ( ePres )
127 : : {
128 : : case SFX_ITEM_PRESENTATION_NONE:
129 : 0 : rText.Erase();
130 : 0 : return SFX_ITEM_PRESENTATION_NONE;
131 : : case SFX_ITEM_PRESENTATION_NAMELESS:
132 : : case SFX_ITEM_PRESENTATION_COMPLETE:
133 [ # # ]: 0 : rText = rtl::OUString("SvxGridItem");
134 : 0 : return ePres;
135 : : default:
136 : 0 : return SFX_ITEM_PRESENTATION_NONE;
137 : : }
138 : : }
139 : :
140 : : // TabPage Screen Settings
141 : 0 : SvxGridTabPage::SvxGridTabPage( Window* pParent, const SfxItemSet& rCoreSet) :
142 : :
143 : 0 : SfxTabPage( pParent, SVX_RES( RID_SVXPAGE_GRID ), rCoreSet ),
144 : :
145 [ # # ]: 0 : aCbxUseGridsnap ( this, SVX_RES( CBX_USE_GRIDSNAP ) ),
146 [ # # ]: 0 : aCbxGridVisible ( this, SVX_RES( CBX_GRID_VISIBLE ) ),
147 : :
148 [ # # ]: 0 : aFlResolution ( this, SVX_RES( FL_RESOLUTION ) ),
149 [ # # ]: 0 : aFtDrawX ( this, SVX_RES( FT_DRAW_X ) ),
150 [ # # ]: 0 : aMtrFldDrawX ( this, SVX_RES( MTR_FLD_DRAW_X ) ),
151 [ # # ]: 0 : aFtDrawY ( this, SVX_RES( FT_DRAW_Y ) ),
152 [ # # ]: 0 : aMtrFldDrawY ( this, SVX_RES( MTR_FLD_DRAW_Y ) ),
153 : :
154 [ # # ]: 0 : aFlDivision ( this, SVX_RES( FL_DIVISION ) ),
155 [ # # ]: 0 : aFtDivisionX( this, SVX_RES( FT_DIVISION_X) ),
156 [ # # ]: 0 : aNumFldDivisionX( this, SVX_RES( NUM_FLD_DIVISION_X ) ),
157 [ # # ]: 0 : aDivisionPointX( this, SVX_RES( FT_HORZ_POINTS) ),
158 : :
159 [ # # ]: 0 : aFtDivisionY( this, SVX_RES( FT_DIVISION_Y) ),
160 [ # # ]: 0 : aNumFldDivisionY( this, SVX_RES( NUM_FLD_DIVISION_Y ) ),
161 [ # # ]: 0 : aDivisionPointY( this, SVX_RES( FT_VERT_POINTS) ),
162 : :
163 [ # # ]: 0 : aCbxSynchronize ( this, SVX_RES( CBX_SYNCHRONIZE ) ),
164 [ # # ]: 0 : aGrpDrawGrid ( this, SVX_RES( GRP_DRAWGRID ) ),
165 : :
166 [ # # ]: 0 : aGrpSnap ( this, SVX_RES( GRP_SNAP ) ),
167 [ # # ]: 0 : aCbxSnapHelplines ( this, SVX_RES( CBX_SNAP_HELPLINES ) ),
168 [ # # ]: 0 : aCbxSnapBorder ( this, SVX_RES( CBX_SNAP_BORDER ) ),
169 [ # # ]: 0 : aCbxSnapFrame ( this, SVX_RES( CBX_SNAP_FRAME ) ),
170 [ # # ]: 0 : aCbxSnapPoints ( this, SVX_RES( CBX_SNAP_POINTS ) ),
171 [ # # ]: 0 : aFtSnapArea ( this, SVX_RES( FT_SNAP_AREA ) ),
172 [ # # ]: 0 : aMtrFldSnapArea ( this, SVX_RES( MTR_FLD_SNAP_AREA ) ),
173 : :
174 [ # # ]: 0 : aSeparatorFL ( this, SVX_RES( FL_SEPARATOR ) ),
175 : :
176 [ # # ]: 0 : aGrpOrtho ( this, SVX_RES( GRP_ORTHO ) ),
177 [ # # ]: 0 : aCbxOrtho ( this, SVX_RES( CBX_ORTHO ) ),
178 [ # # ]: 0 : aCbxBigOrtho ( this, SVX_RES( CBX_BIGORTHO ) ),
179 [ # # ]: 0 : aCbxRotate ( this, SVX_RES( CBX_ROTATE ) ),
180 [ # # ]: 0 : aMtrFldAngle ( this, SVX_RES( MTR_FLD_ANGLE ) ),
181 [ # # ]: 0 : aFtBezAngle ( this, SVX_RES( FT_BEZ_ANGLE ) ),
182 [ # # ]: 0 : aMtrFldBezAngle ( this, SVX_RES( MTR_FLD_BEZ_ANGLE ) ),
183 : :
184 [ # # ][ # # ]: 0 : bAttrModified( sal_False )
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
185 : : {
186 : : // This page requires exchange Support
187 : 0 : SetExchangeSupport();
188 : :
189 [ # # ]: 0 : FreeResource();
190 : :
191 [ # # ][ # # ]: 0 : aDivisionPointY.SetText(aDivisionPointX.GetText());
[ # # ]
192 : : // Set Metrics
193 [ # # ]: 0 : FieldUnit eFUnit = GetModuleFieldUnit( rCoreSet );
194 : : long nFirst, nLast, nMin, nMax;
195 : :
196 [ # # ]: 0 : lcl_GetMinMax(aMtrFldDrawX, nFirst, nLast, nMin, nMax);
197 [ # # ]: 0 : SetFieldUnit( aMtrFldDrawX, eFUnit, sal_True );
198 [ # # ]: 0 : lcl_SetMinMax(aMtrFldDrawX, nFirst, nLast, nMin, nMax);
199 : :
200 [ # # ]: 0 : lcl_GetMinMax(aMtrFldDrawY, nFirst, nLast, nMin, nMax);
201 [ # # ]: 0 : SetFieldUnit( aMtrFldDrawY, eFUnit, sal_True );
202 [ # # ]: 0 : lcl_SetMinMax(aMtrFldDrawY, nFirst, nLast, nMin, nMax);
203 : :
204 : :
205 [ # # ]: 0 : aCbxRotate.SetClickHdl( LINK( this, SvxGridTabPage, ClickRotateHdl_Impl ) );
206 [ # # ]: 0 : Link aLink = LINK( this, SvxGridTabPage, ChangeGridsnapHdl_Impl );
207 : 0 : aCbxUseGridsnap.SetClickHdl( aLink );
208 : 0 : aCbxSynchronize.SetClickHdl( aLink );
209 : 0 : aCbxGridVisible.SetClickHdl( aLink );
210 : : aMtrFldDrawX.SetModifyHdl(
211 [ # # ]: 0 : LINK( this, SvxGridTabPage, ChangeDrawHdl_Impl ) );
212 : : aMtrFldDrawY.SetModifyHdl(
213 [ # # ]: 0 : LINK( this, SvxGridTabPage, ChangeDrawHdl_Impl ) );
214 : : aNumFldDivisionX.SetModifyHdl(
215 [ # # ]: 0 : LINK( this, SvxGridTabPage, ChangeDivisionHdl_Impl ) );
216 : : aNumFldDivisionY.SetModifyHdl(
217 [ # # ]: 0 : LINK( this, SvxGridTabPage, ChangeDivisionHdl_Impl ) );
218 : :
219 [ # # ][ # # ]: 0 : ::rtl::OUString sFlResolution( aFlResolution.GetDisplayText() );
[ # # ]
220 [ # # ][ # # ]: 0 : ::rtl::OUString sFtDrawX(aFtDrawX.GetDisplayText());
[ # # ]
221 [ # # ][ # # ]: 0 : ::rtl::OUString sFtDrawY(aFtDrawY.GetDisplayText());
[ # # ]
222 [ # # ][ # # ]: 0 : aMtrFldDrawX.SetAccessibleName( sFtDrawX + sFlResolution );
[ # # ]
223 [ # # ][ # # ]: 0 : aMtrFldDrawY.SetAccessibleName( sFtDrawY + sFlResolution );
[ # # ]
224 [ # # ][ # # ]: 0 : ::rtl::OUString sFlDivision( aFlDivision.GetDisplayText() );
[ # # ]
225 [ # # ][ # # ]: 0 : ::rtl::OUString sFtDivisionX(aFtDivisionX.GetDisplayText());
[ # # ]
226 [ # # ][ # # ]: 0 : ::rtl::OUString sFtDivisionY(aFtDivisionY.GetDisplayText());
[ # # ]
227 [ # # ][ # # ]: 0 : aNumFldDivisionX.SetAccessibleName( sFtDivisionX + sFlDivision );
[ # # ]
228 [ # # ][ # # ]: 0 : aNumFldDivisionY.SetAccessibleName( sFtDivisionY + sFlDivision );
[ # # ]
229 : 0 : }
230 : :
231 : : //------------------------------------------------------------------------
232 : :
233 : 0 : SfxTabPage* SvxGridTabPage::Create( Window* pParent, const SfxItemSet& rAttrSet )
234 : : {
235 [ # # ]: 0 : return ( new SvxGridTabPage( pParent, rAttrSet ) );
236 : : }
237 : :
238 : : //------------------------------------------------------------------------
239 : :
240 : 0 : sal_Bool SvxGridTabPage::FillItemSet( SfxItemSet& rCoreSet )
241 : : {
242 [ # # ]: 0 : if ( bAttrModified )
243 : : {
244 [ # # ]: 0 : SvxGridItem aGridItem( SID_ATTR_GRID_OPTIONS );
245 : :
246 [ # # ]: 0 : aGridItem.bUseGridsnap = aCbxUseGridsnap.IsChecked();
247 [ # # ]: 0 : aGridItem.bSynchronize = aCbxSynchronize.IsChecked();
248 [ # # ]: 0 : aGridItem.bGridVisible = aCbxGridVisible.IsChecked();
249 : :
250 : : SfxMapUnit eUnit =
251 [ # # ][ # # ]: 0 : rCoreSet.GetPool()->GetMetric( GetWhich( SID_ATTR_GRID_OPTIONS ) );
252 [ # # ]: 0 : long nX =GetCoreValue( aMtrFldDrawX, eUnit );
253 [ # # ]: 0 : long nY = GetCoreValue( aMtrFldDrawY, eUnit );
254 : :
255 : 0 : aGridItem.nFldDrawX = (sal_uInt32) nX;
256 : 0 : aGridItem.nFldDrawY = (sal_uInt32) nY;
257 [ # # ]: 0 : aGridItem.nFldDivisionX = static_cast<long>(aNumFldDivisionX.GetValue()-1);
258 [ # # ]: 0 : aGridItem.nFldDivisionY = static_cast<long>(aNumFldDivisionY.GetValue()-1);
259 : :
260 [ # # ][ # # ]: 0 : rCoreSet.Put( aGridItem );
261 : : }
262 : 0 : return bAttrModified;
263 : : }
264 : :
265 : : //------------------------------------------------------------------------
266 : :
267 : 0 : void SvxGridTabPage::Reset( const SfxItemSet& rSet )
268 : : {
269 : 0 : const SfxPoolItem* pAttr = 0;
270 : :
271 [ # # ]: 0 : if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_GRID_OPTIONS , sal_False,
272 [ # # ]: 0 : (const SfxPoolItem**)&pAttr ))
273 : : {
274 : 0 : const SvxGridItem* pGridAttr = (SvxGridItem*)pAttr;
275 [ # # ]: 0 : aCbxUseGridsnap.Check( pGridAttr->bUseGridsnap == 1 );
276 [ # # ]: 0 : aCbxSynchronize.Check( pGridAttr->bSynchronize == 1 );
277 [ # # ]: 0 : aCbxGridVisible.Check( pGridAttr->bGridVisible == 1 );
278 : :
279 : : SfxMapUnit eUnit =
280 [ # # ][ # # ]: 0 : rSet.GetPool()->GetMetric( GetWhich( SID_ATTR_GRID_OPTIONS ) );
281 [ # # ]: 0 : SetMetricValue( aMtrFldDrawX , pGridAttr->nFldDrawX, eUnit );
282 [ # # ]: 0 : SetMetricValue( aMtrFldDrawY , pGridAttr->nFldDrawY, eUnit );
283 : :
284 [ # # ]: 0 : aNumFldDivisionX.SetValue( pGridAttr->nFldDivisionX+1 );
285 [ # # ]: 0 : aNumFldDivisionY.SetValue( pGridAttr->nFldDivisionY+1 );
286 : : }
287 : :
288 [ # # ]: 0 : ChangeGridsnapHdl_Impl( &aCbxUseGridsnap );
289 : 0 : bAttrModified = sal_False;
290 : 0 : }
291 : :
292 : : // -----------------------------------------------------------------------
293 : :
294 : 0 : void SvxGridTabPage::ActivatePage( const SfxItemSet& rSet )
295 : : {
296 : 0 : const SfxPoolItem* pAttr = NULL;
297 [ # # ]: 0 : if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_GRID_OPTIONS , sal_False,
298 [ # # ]: 0 : (const SfxPoolItem**)&pAttr ))
299 : : {
300 : 0 : const SvxGridItem* pGridAttr = (SvxGridItem*) pAttr;
301 [ # # ]: 0 : aCbxUseGridsnap.Check( pGridAttr->bUseGridsnap == 1 );
302 : :
303 [ # # ]: 0 : ChangeGridsnapHdl_Impl( &aCbxUseGridsnap );
304 : : }
305 : :
306 : : // Metric Change if necessary (as TabPage is in the dialog, where the
307 : : // metric can be set
308 [ # # ]: 0 : if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_METRIC , sal_False,
309 [ # # ]: 0 : (const SfxPoolItem**)&pAttr ))
310 : : {
311 : 0 : const SfxUInt16Item* pItem = (SfxUInt16Item*) pAttr;
312 : :
313 : 0 : FieldUnit eFUnit = (FieldUnit)(long)pItem->GetValue();
314 : :
315 [ # # ]: 0 : if( eFUnit != aMtrFldDrawX.GetUnit() )
316 : : {
317 : : // Set Metrics
318 : : long nFirst, nLast, nMin, nMax;
319 [ # # ][ # # ]: 0 : long nVal = static_cast<long>(aMtrFldDrawX.Denormalize( aMtrFldDrawX.GetValue( FUNIT_TWIP ) ));
320 : :
321 [ # # ]: 0 : lcl_GetMinMax(aMtrFldDrawX, nFirst, nLast, nMin, nMax);
322 [ # # ]: 0 : SetFieldUnit( aMtrFldDrawX, eFUnit, sal_True );
323 [ # # ]: 0 : lcl_SetMinMax(aMtrFldDrawX, nFirst, nLast, nMin, nMax);
324 : :
325 [ # # ][ # # ]: 0 : aMtrFldDrawX.SetValue( aMtrFldDrawX.Normalize( nVal ), FUNIT_TWIP );
326 : :
327 [ # # ][ # # ]: 0 : nVal = static_cast<long>(aMtrFldDrawY.Denormalize( aMtrFldDrawY.GetValue( FUNIT_TWIP ) ));
328 [ # # ]: 0 : lcl_GetMinMax(aMtrFldDrawY, nFirst, nLast, nMin, nMax);
329 [ # # ]: 0 : SetFieldUnit( aMtrFldDrawY, eFUnit, sal_True );
330 [ # # ]: 0 : lcl_SetMinMax(aMtrFldDrawY, nFirst, nLast, nMin, nMax);
331 [ # # ][ # # ]: 0 : aMtrFldDrawY.SetValue( aMtrFldDrawY.Normalize( nVal ), FUNIT_TWIP );
332 : :
333 : : }
334 : : }
335 : 0 : }
336 : :
337 : : // -----------------------------------------------------------------------
338 : 0 : int SvxGridTabPage::DeactivatePage( SfxItemSet* _pSet )
339 : : {
340 [ # # ]: 0 : if ( _pSet )
341 : 0 : FillItemSet( *_pSet );
342 : 0 : return( LEAVE_PAGE );
343 : : }
344 : : //------------------------------------------------------------------------
345 : 0 : IMPL_LINK( SvxGridTabPage, ChangeDrawHdl_Impl, MetricField *, pField )
346 : : {
347 : 0 : bAttrModified = sal_True;
348 [ # # ]: 0 : if( aCbxSynchronize.IsChecked() )
349 : : {
350 [ # # ]: 0 : if(pField == &aMtrFldDrawX)
351 : 0 : aMtrFldDrawY.SetValue( aMtrFldDrawX.GetValue() );
352 : : else
353 : 0 : aMtrFldDrawX.SetValue( aMtrFldDrawY.GetValue() );
354 : : }
355 : 0 : return 0;
356 : : }
357 : : //------------------------------------------------------------------------
358 : :
359 : 0 : IMPL_LINK_NOARG(SvxGridTabPage, ClickRotateHdl_Impl)
360 : : {
361 [ # # ]: 0 : if( aCbxRotate.IsChecked() )
362 : 0 : aMtrFldAngle.Enable();
363 : : else
364 : 0 : aMtrFldAngle.Disable();
365 : :
366 : 0 : return( 0L );
367 : : }
368 : :
369 : : //------------------------------------------------------------------------
370 : :
371 : 0 : IMPL_LINK( SvxGridTabPage, ChangeDivisionHdl_Impl, NumericField *, pField )
372 : : {
373 : 0 : bAttrModified = sal_True;
374 [ # # ]: 0 : if( aCbxSynchronize.IsChecked() )
375 : : {
376 [ # # ]: 0 : if(&aNumFldDivisionX == pField)
377 : 0 : aNumFldDivisionY.SetValue( aNumFldDivisionX.GetValue() );
378 : : else
379 : 0 : aNumFldDivisionX.SetValue( aNumFldDivisionY.GetValue() );
380 : : }
381 : 0 : return 0;
382 : : }
383 : : //------------------------------------------------------------------------
384 : :
385 : 0 : IMPL_LINK_NOARG(SvxGridTabPage, ChangeGridsnapHdl_Impl)
386 : : {
387 : 0 : bAttrModified = sal_True;
388 : 0 : return 0;
389 : : }
390 : :
391 : :
392 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|