optgdlg.cxx (2ee96f1c) optgdlg.cxx (2df387e6)
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

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

725 // move (and resize) the units FixedText
726 aPos = ( aAAPointLimitUnits.GetPosPixel() );
727 aPos.X() -= nMoveLeft;
728 aSize = aAAPointLimitUnits.GetSizePixel();
729 aSize.Width() += nMoveLeft;
730 aAAPointLimitUnits.SetPosSizePixel( aPos, aSize );
731#else
732 // on this platform, we do not have the anti aliasing options - move the other checkboxes accordingly
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

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

725 // move (and resize) the units FixedText
726 aPos = ( aAAPointLimitUnits.GetPosPixel() );
727 aPos.X() -= nMoveLeft;
728 aSize = aAAPointLimitUnits.GetSizePixel();
729 aSize.Width() += nMoveLeft;
730 aAAPointLimitUnits.SetPosSizePixel( aPos, aSize );
731#else
732 // on this platform, we do not have the anti aliasing options - move the other checkboxes accordingly
733 // (in the resource, the coordinates are calculated for the AA options beeing present)
733 // (in the resource, the coordinates are calculated for the AA options being present)
734 Control* pMiscOptions[] =
735 {
736 &aMenuFL, &aMenuIconsFT, &aMenuIconsLB,
737 &aFontListsFL, &aFontShowCB, &aFontHistoryCB
738 };
739
734 Control* pMiscOptions[] =
735 {
736 &aMenuFL, &aMenuIconsFT, &aMenuIconsLB,
737 &aFontListsFL, &aFontShowCB, &aFontHistoryCB
738 };
739
740 // temporaryly create the checkbox for the anti aliasing (we need to to determine it's pos)
740 // temporarily create the checkbox for the anti aliasing (we need to determine its pos)
741 CheckBox* pFontAntiAliasing = new CheckBox( this, CUI_RES( CB_FONTANTIALIASING ) );
742 sal_Int32 nMoveUp = aMenuFL.GetPosPixel().Y() - pFontAntiAliasing->GetPosPixel().Y();
743 DELETEZ( pFontAntiAliasing );
744
745 Point aPos;
746 for ( sal_Int32 i = 0; i < sizeof( pMiscOptions ) / sizeof( pMiscOptions[0] ); ++i )
747 {
748 aPos = pMiscOptions[i]->GetPosPixel( );

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

1275 if ( d > 0 && seqInstalledLanguages.getLength() > d-1 && seqInstalledLanguages[d-1].equals(m_sUserLocaleValue))
1276 aUserInterfaceLB.SelectEntryPos(i);
1277 }
1278 }
1279
1280 }
1281 catch (Exception &e)
1282 {
741 CheckBox* pFontAntiAliasing = new CheckBox( this, CUI_RES( CB_FONTANTIALIASING ) );
742 sal_Int32 nMoveUp = aMenuFL.GetPosPixel().Y() - pFontAntiAliasing->GetPosPixel().Y();
743 DELETEZ( pFontAntiAliasing );
744
745 Point aPos;
746 for ( sal_Int32 i = 0; i < sizeof( pMiscOptions ) / sizeof( pMiscOptions[0] ); ++i )
747 {
748 aPos = pMiscOptions[i]->GetPosPixel( );

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

1275 if ( d > 0 && seqInstalledLanguages.getLength() > d-1 && seqInstalledLanguages[d-1].equals(m_sUserLocaleValue))
1276 aUserInterfaceLB.SelectEntryPos(i);
1277 }
1278 }
1279
1280 }
1281 catch (Exception &e)
1282 {
1283 // we'll just leave the box in it's default setting and won't
1283 // we'll just leave the box in its default setting and won't
1284 // even give it event handler...
1285 OString aMsg = OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US);
1286 OSL_ENSURE(sal_False, aMsg.getStr());
1287 }
1288
1289 aWesternLanguageLB.SetLanguageList( LANG_LIST_WESTERN | LANG_LIST_ONLY_KNOWN, sal_True, sal_False, sal_True );
1290 aWesternLanguageLB.InsertDefaultLanguage( ::com::sun::star::i18n::ScriptType::LATIN );
1291 aAsianLanguageLB.SetLanguageList( LANG_LIST_CJK | LANG_LIST_ONLY_KNOWN, sal_True, sal_False, sal_True );

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

1458 args[1] = makeAny(sal_False); // will be ignored
1459 args[2] = makeAny(sal_False); // disable veto
1460 xInit->initialize(args);
1461 }
1462 }
1463 }
1464 catch (Exception& e)
1465 {
1284 // even give it event handler...
1285 OString aMsg = OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US);
1286 OSL_ENSURE(sal_False, aMsg.getStr());
1287 }
1288
1289 aWesternLanguageLB.SetLanguageList( LANG_LIST_WESTERN | LANG_LIST_ONLY_KNOWN, sal_True, sal_False, sal_True );
1290 aWesternLanguageLB.InsertDefaultLanguage( ::com::sun::star::i18n::ScriptType::LATIN );
1291 aAsianLanguageLB.SetLanguageList( LANG_LIST_CJK | LANG_LIST_ONLY_KNOWN, sal_True, sal_False, sal_True );

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

1458 args[1] = makeAny(sal_False); // will be ignored
1459 args[2] = makeAny(sal_False); // disable veto
1460 xInit->initialize(args);
1461 }
1462 }
1463 }
1464 catch (Exception& e)
1465 {
1466 // we'll just leave the box in it's default setting and won't
1466 // we'll just leave the box in its default setting and won't
1467 // even give it event handler...
1468 OString aMsg = OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US);
1469 OSL_ENSURE(sal_False, aMsg.getStr());
1470 }
1471
1472 OUString sLang = pLangConfig->aSysLocaleOptions.GetLocaleConfigString();
1473 LanguageType eOldLocale = (sLang.getLength() ?
1474 lcl_LangStringToLangType( sLang ) : LANGUAGE_SYSTEM);

--- 396 unchanged lines hidden ---
1467 // even give it event handler...
1468 OString aMsg = OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US);
1469 OSL_ENSURE(sal_False, aMsg.getStr());
1470 }
1471
1472 OUString sLang = pLangConfig->aSysLocaleOptions.GetLocaleConfigString();
1473 LanguageType eOldLocale = (sLang.getLength() ?
1474 lcl_LangStringToLangType( sLang ) : LANGUAGE_SYSTEM);

--- 396 unchanged lines hidden ---