usrpref.cxx (ef785786) usrpref.cxx (a41e6500)
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

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

256 "Zoom/Type", //12
257 "Other/IsAlignMathObjectsToBaseline", //13
258 "Other/MeasureUnit", //14
259 // below properties are not available in WriterWeb
260 "Other/TabStop", //15
261 "Window/IsVerticalRulerRight", //16
262 "ViewLayout/Columns", //17
263 "ViewLayout/BookMode", //18
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

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

256 "Zoom/Type", //12
257 "Other/IsAlignMathObjectsToBaseline", //13
258 "Other/MeasureUnit", //14
259 // below properties are not available in WriterWeb
260 "Other/TabStop", //15
261 "Window/IsVerticalRulerRight", //16
262 "ViewLayout/Columns", //17
263 "ViewLayout/BookMode", //18
264 "Other/IsSquaredPageMode" //19
264 "Other/IsSquaredPageMode", //19
265 "Window/ShowScrollBarTips" //20
265 };
266 };
266 const int nCount = bWeb ? 15 : 20;
267 const int nCount = bWeb ? 15 : 21;
267 Sequence<OUString> aNames(nCount);
268 OUString* pNames = aNames.getArray();
269 for(int i = 0; i < nCount; i++)
270 {
271 pNames[i] = OUString::createFromAscii(aPropNames[i]);
272 }
273 return aNames;
274}

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

326 case 12: rVal <<= (sal_Int32)rParent.GetZoomType(); break; // "Zoom/Type",
327 case 13: rVal <<= (sal_Bool) rParent.IsAlignMathObjectsToBaseline(); break; // "Other/IsAlignMathObjectsToBaseline"
328 case 14: rVal <<= (sal_Int32)rParent.GetMetric(); break; // "Other/MeasureUnit",
329 case 15: rVal <<= static_cast<sal_Int32>(TWIP_TO_MM100(rParent.GetDefTab())); break;// "Other/TabStop",
330 case 16: rVal <<= (sal_Bool) rParent.IsVRulerRight(); break; // "Window/IsVerticalRulerRight",
331 case 17: rVal <<= (sal_Int32)rParent.GetViewLayoutColumns(); break; // "ViewLayout/Columns",
332 case 18: rVal <<= (sal_Bool) rParent.IsViewLayoutBookMode(); break; // "ViewLayout/BookMode",
333 case 19: rVal <<= (sal_Bool) rParent.IsSquaredPageMode(); break; // "Other/IsSquaredPageMode",
268 Sequence<OUString> aNames(nCount);
269 OUString* pNames = aNames.getArray();
270 for(int i = 0; i < nCount; i++)
271 {
272 pNames[i] = OUString::createFromAscii(aPropNames[i]);
273 }
274 return aNames;
275}

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

327 case 12: rVal <<= (sal_Int32)rParent.GetZoomType(); break; // "Zoom/Type",
328 case 13: rVal <<= (sal_Bool) rParent.IsAlignMathObjectsToBaseline(); break; // "Other/IsAlignMathObjectsToBaseline"
329 case 14: rVal <<= (sal_Int32)rParent.GetMetric(); break; // "Other/MeasureUnit",
330 case 15: rVal <<= static_cast<sal_Int32>(TWIP_TO_MM100(rParent.GetDefTab())); break;// "Other/TabStop",
331 case 16: rVal <<= (sal_Bool) rParent.IsVRulerRight(); break; // "Window/IsVerticalRulerRight",
332 case 17: rVal <<= (sal_Int32)rParent.GetViewLayoutColumns(); break; // "ViewLayout/Columns",
333 case 18: rVal <<= (sal_Bool) rParent.IsViewLayoutBookMode(); break; // "ViewLayout/BookMode",
334 case 19: rVal <<= (sal_Bool) rParent.IsSquaredPageMode(); break; // "Other/IsSquaredPageMode",
335 case 20: rVal <<= (sal_Bool) rParent.IsShowScrollBarTips(); break; // "Window/ShowScrollBarTips",
334 }
335 }
336 PutProperties(aNames, aValues);
337}
338/*-- 28.09.00 09:55:36---------------------------------------------------
339
340 -----------------------------------------------------------------------*/
341void SwLayoutViewConfig::Load()

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

382 case 12: rParent.SetZoomType( static_cast< SvxZoomType >(nInt32Val) ); break;// "Zoom/Type",
383 case 13: rParent.SetAlignMathObjectsToBaseline(bSet); break;// "Other/IsAlignMathObjectsToBaseline"
384 case 14: rParent.SetMetric((FieldUnit)nInt32Val, sal_True); break;// "Other/MeasureUnit",
385 case 15: rParent.SetDefTab(MM100_TO_TWIP(nInt32Val), sal_True); break;// "Other/TabStop",
386 case 16: rParent.SetVRulerRight(bSet); break;// "Window/IsVerticalRulerRight",
387 case 17: rParent.SetViewLayoutColumns( static_cast<sal_uInt16>(nInt32Val) ); break;// "ViewLayout/Columns",
388 case 18: rParent.SetViewLayoutBookMode(bSet); break;// "ViewLayout/BookMode",
389 case 19: rParent.SetDefaultPageMode(bSet,sal_True); break;// "Other/IsSquaredPageMode",
336 }
337 }
338 PutProperties(aNames, aValues);
339}
340/*-- 28.09.00 09:55:36---------------------------------------------------
341
342 -----------------------------------------------------------------------*/
343void SwLayoutViewConfig::Load()

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

384 case 12: rParent.SetZoomType( static_cast< SvxZoomType >(nInt32Val) ); break;// "Zoom/Type",
385 case 13: rParent.SetAlignMathObjectsToBaseline(bSet); break;// "Other/IsAlignMathObjectsToBaseline"
386 case 14: rParent.SetMetric((FieldUnit)nInt32Val, sal_True); break;// "Other/MeasureUnit",
387 case 15: rParent.SetDefTab(MM100_TO_TWIP(nInt32Val), sal_True); break;// "Other/TabStop",
388 case 16: rParent.SetVRulerRight(bSet); break;// "Window/IsVerticalRulerRight",
389 case 17: rParent.SetViewLayoutColumns( static_cast<sal_uInt16>(nInt32Val) ); break;// "ViewLayout/Columns",
390 case 18: rParent.SetViewLayoutBookMode(bSet); break;// "ViewLayout/BookMode",
391 case 19: rParent.SetDefaultPageMode(bSet,sal_True); break;// "Other/IsSquaredPageMode",
392 case 20: rParent.SetShowScrollBarTips(bSet); break;// "Window/ShowScrollBarTips",
390 }
391 }
392 }
393 }
394}
395
396void SwLayoutViewConfig::Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& ) {}
397

--- 262 unchanged lines hidden ---
393 }
394 }
395 }
396 }
397}
398
399void SwLayoutViewConfig::Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& ) {}
400

--- 262 unchanged lines hidden ---