diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2014-07-01 09:32:56 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 10:58:32 +0000 |
commit | b55b8d83feaf7f36d50a16edd2c21ae626c2a5bb (patch) | |
tree | fee1dad866193cd39fe594663f1aef87b52df7f9 /sw/source | |
parent | 5d157ce0d77b7deb6f510eee01c6e211c9713ff3 (diff) |
DLG_MM_DBTABLEPREVIEWDIALOG and DLG_MM_MAILBODY conversion to .ui
Change-Id: Ie00c75e54918e51068ab69c5ea9047d0503b5b87
Reviewed-on: https://gerrit.libreoffice.org/10004
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/dbui/dbtablepreviewdialog.cxx | 22 | ||||
-rw-r--r-- | sw/source/ui/dbui/dbtablepreviewdialog.hrc | 28 | ||||
-rw-r--r-- | sw/source/ui/dbui/dbtablepreviewdialog.hxx | 3 | ||||
-rw-r--r-- | sw/source/ui/dbui/dbtablepreviewdialog.src | 54 | ||||
-rw-r--r-- | sw/source/ui/dbui/mmgreetingspage.cxx | 110 | ||||
-rw-r--r-- | sw/source/ui/dbui/mmgreetingspage.hrc | 50 | ||||
-rw-r--r-- | sw/source/ui/dbui/mmgreetingspage.hxx | 34 | ||||
-rw-r--r-- | sw/source/ui/dbui/mmgreetingspage.src | 182 |
8 files changed, 64 insertions, 419 deletions
diff --git a/sw/source/ui/dbui/dbtablepreviewdialog.cxx b/sw/source/ui/dbui/dbtablepreviewdialog.cxx index e83673781f34..e71ccc78fc22 100644 --- a/sw/source/ui/dbui/dbtablepreviewdialog.cxx +++ b/sw/source/ui/dbui/dbtablepreviewdialog.cxx @@ -23,8 +23,6 @@ #include <com/sun/star/frame/Frame.hpp> #include <toolkit/helper/vclunohelper.hxx> -#include <dbui.hrc> -#include <dbtablepreviewdialog.hrc> #include <unomid.h> using namespace ::com::sun::star; @@ -36,21 +34,23 @@ using namespace ::com::sun::star::util; using namespace ::rtl; SwDBTablePreviewDialog::SwDBTablePreviewDialog(Window* pParent, uno::Sequence< beans::PropertyValue>& rValues ) : - SfxModalDialog(pParent, SW_RES(DLG_MM_DBTABLEPREVIEWDIALOG)), - m_aDescriptionFI( this, SW_RES( FI_DESCRIPTION)), - m_pBeamerWIN( new Window(this, SW_RES( WIN_BEAMER ))), - m_aOK( this, SW_RES( PB_OK )) + SfxModalDialog(pParent, "TablePreviewDialog", "modules/swriter/ui/tablepreviewdialog.ui") { - FreeResource(); + get(m_pDescriptionFI, "description"); + get(m_pBeamerWIN, "beamer"); + Size aSize(LogicToPixel(Size(338, 150), MAP_APPFONT)); + m_pBeamerWIN->set_width_request(aSize.Width()); + m_pBeamerWIN->set_height_request(aSize.Height()); + const beans::PropertyValue* pValues = rValues.getConstArray(); for(sal_Int32 nValue = 0; nValue < rValues.getLength(); ++nValue ) { if ( pValues[nValue].Name == "Command" ) { - OUString sDescription = m_aDescriptionFI.GetText(); + OUString sDescription = m_pDescriptionFI->GetText(); OUString sTemp; pValues[nValue].Value >>= sTemp; - m_aDescriptionFI.SetText(sDescription.replaceFirst("%1", sTemp)); + m_pDescriptionFI->SetText(sDescription.replaceFirst("%1", sTemp)); break; } } @@ -59,6 +59,8 @@ SwDBTablePreviewDialog::SwDBTablePreviewDialog(Window* pParent, uno::Sequence< b { // create a frame wrapper for myself m_xFrame = frame::Frame::create( comphelper::getProcessComponentContext() ); + // m_xFrame takes ownership of m_pBeamerWIN + m_pUIBuilder->drop_ownership(m_pBeamerWIN); m_xFrame->initialize( VCLUnoHelper::GetInterface( m_pBeamerWIN ) ); } catch (uno::Exception const &) @@ -85,8 +87,6 @@ SwDBTablePreviewDialog::~SwDBTablePreviewDialog() m_xFrame->setComponent(NULL, NULL); m_xFrame->dispose(); } - else - delete m_pBeamerWIN; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/dbui/dbtablepreviewdialog.hrc b/sw/source/ui/dbui/dbtablepreviewdialog.hrc deleted file mode 100644 index bc1fbb93460f..000000000000 --- a/sw/source/ui/dbui/dbtablepreviewdialog.hrc +++ /dev/null @@ -1,28 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _DBTABLEPREVIEWDIALOG_HRC -#define _DBTABLEPREVIEWDIALOG_HRC - -#define FI_DESCRIPTION 1 -#define WIN_BEAMER 2 -#define PB_OK 3 - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/dbui/dbtablepreviewdialog.hxx b/sw/source/ui/dbui/dbtablepreviewdialog.hxx index b47d2c29da60..e32b1ef3808a 100644 --- a/sw/source/ui/dbui/dbtablepreviewdialog.hxx +++ b/sw/source/ui/dbui/dbtablepreviewdialog.hxx @@ -31,9 +31,8 @@ namespace com{ namespace sun{ namespace star{ class SwDBTablePreviewDialog : public SfxModalDialog { - FixedInfo m_aDescriptionFI; + FixedText* m_pDescriptionFI; Window* m_pBeamerWIN; - OKButton m_aOK; ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame2 > m_xFrame; public: diff --git a/sw/source/ui/dbui/dbtablepreviewdialog.src b/sw/source/ui/dbui/dbtablepreviewdialog.src deleted file mode 100644 index 540ddafaba3f..000000000000 --- a/sw/source/ui/dbui/dbtablepreviewdialog.src +++ /dev/null @@ -1,54 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#include <dbtablepreviewdialog.hrc> -#include <dbui.hrc> -#include <helpid.h> - -ModalDialog DLG_MM_DBTABLEPREVIEWDIALOG -{ - OutputSize = TRUE ; - SVLook = TRUE ; - HelpID = HID_MM_DBTABLEPREVIEWDIALOG; - Size = MAP_APPFONT ( 350 , 200 ) ; - Moveable = TRUE ; - - Text [ en-US ] = "Mail Merge Recipients"; - - FixedText FI_DESCRIPTION - { - Pos = MAP_APPFONT ( 6 , 3 ) ; - Size = MAP_APPFONT ( 338 , 8 ) ; - WordBreak = TRUE; - Text [ en-US ] = "The list below shows the contents of: %1"; - }; - Window WIN_BEAMER - { - Pos = MAP_APPFONT ( 6 , 14 ) ; - Size = MAP_APPFONT ( 338 , 150 ) ; - }; - OKButton PB_OK - { - Pos = MAP_APPFONT ( 150 , 180 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - DefButton = TRUE ; - Text [ en-US ] = "~Close"; - }; -}; - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/dbui/mmgreetingspage.cxx b/sw/source/ui/dbui/mmgreetingspage.cxx index 48a6db8a88a8..1a552481bafd 100644 --- a/sw/source/ui/dbui/mmgreetingspage.cxx +++ b/sw/source/ui/dbui/mmgreetingspage.cxx @@ -23,7 +23,6 @@ #include <mmaddressblockpage.hxx> #include <swtypes.hxx> #include <vcl/msgbox.hxx> -#include <mmgreetingspage.hrc> #include <dbui.hrc> #include <com/sun/star/sdb/XColumn.hpp> #include <com/sun/star/sdbcx/XColumnsSupplier.hpp> @@ -399,45 +398,31 @@ IMPL_LINK(SwMailMergeGreetingsPage, InsertDataHdl_Impl, ImageButton*, pButton) } SwMailBodyDialog::SwMailBodyDialog(Window* pParent, SwMailMergeWizard* _pWizard) : - SfxModalDialog(pParent, SW_RES(DLG_MM_MAILBODY)), - m_aGreetingLineCB(this, SW_RES( CB_GREETINGLINE ) ), - m_aPersonalizedCB(this, SW_RES( CB_PERSONALIZED ) ), - m_aFemaleFT(this, SW_RES( FT_FEMALE ) ), - m_aFemaleLB(this, SW_RES( LB_FEMALE ) ), - m_aFemalePB(this, SW_RES( PB_FEMALE ) ), - m_aMaleFT(this, SW_RES( FT_MALE ) ), - m_aMaleLB(this, SW_RES( LB_MALE ) ), - m_aMalePB(this, SW_RES( PB_MALE ) ), - m_aFemaleFI(this, SW_RES( FI_FEMALE ) ), - m_aFemaleColumnFT(this, SW_RES( FT_FEMALECOLUMN ) ), - m_aFemaleColumnLB(this, SW_RES( LB_FEMALECOLUMN ) ), - m_aFemaleFieldFT(this, SW_RES( FT_FEMALEFIELD ) ), - m_aFemaleFieldCB(this, SW_RES( CB_FEMALEFIELD ) ), - m_aNeutralFT(this, SW_RES( FT_NEUTRAL ) ), - m_aNeutralCB(this, SW_RES( CB_NEUTRAL ) ), - m_aBodyFT( this, SW_RES( FT_BODY ) ), - m_aBodyMLE( this, SW_RES( MLE_BODY ) ), - m_aSeparatorFL( this, SW_RES( FL_SEPARATOR ) ), - m_aOK( this, SW_RES( PB_OK ) ), - m_aCancel( this, SW_RES( PB_CANCEL ) ), - m_aHelp( this, SW_RES( PB_HELP ) ) + SfxModalDialog(pParent, "MailBodyDialog", "modules/swriter/ui/mmmailbody.ui") { m_pWizard = _pWizard; - m_pGreetingLineCB = &m_aGreetingLineCB; - m_pPersonalizedCB = &m_aPersonalizedCB; - m_pFemaleFT = & m_aFemaleFT; - m_pFemaleLB = & m_aFemaleLB; - m_pFemalePB = & m_aFemalePB; - m_pMaleFT = & m_aMaleFT; - m_pMaleLB = & m_aMaleLB; - m_pMalePB = & m_aMalePB; - m_pFemaleFI = & m_aFemaleFI; - m_pFemaleColumnFT = &m_aFemaleColumnFT; - m_pFemaleColumnLB = &m_aFemaleColumnLB; - m_pFemaleFieldFT = & m_aFemaleFieldFT; - m_pFemaleFieldCB = & m_aFemaleFieldCB; - m_pNeutralFT = & m_aNeutralFT; - m_pNeutralCB = &m_aNeutralCB; + get(m_pGreetingLineCB, "greeting"); + get(m_pPersonalizedCB, "personalized"); + get(m_pFemaleFT, "femaleft"); + get(m_pFemaleLB, "female"); + get(m_pFemalePB, "newfemale"); + get(m_pMaleFT, "maleft"); + get(m_pMaleLB, "male"); + get(m_pMalePB, "newmale"); + get(m_pFemaleFI, "femalefi"); + get(m_pFemaleColumnFT, "femalecolft"); + get(m_pFemaleColumnLB, "femalecol"); + get(m_pFemaleFieldFT, "femalefieldft"); + get(m_pFemaleFieldCB, "femalefield"); + get(m_pNeutralFT, "generalft"); + get(m_pNeutralCB, "general"); + get(m_pBodyFT, "bodyft"); + get(m_pBodyMLE, "bodymle"); + m_pBodyMLE->SetStyle(m_pBodyMLE->GetStyle() | WB_HSCROLL | WB_VSCROLL | WB_IGNORETAB); + Size aSize(LogicToPixel(Size(180, 50), MAP_APPFONT)); + m_pBodyMLE->set_width_request(aSize.Width()); + m_pBodyMLE->set_height_request(aSize.Height()); + get(m_pOK, "ok"); m_bIsTabPage = false; m_pPersonalizedCB->SetHelpId( HID_MM_BODY_CB_PERSONALIZED ); @@ -449,41 +434,40 @@ SwMailBodyDialog::SwMailBodyDialog(Window* pParent, SwMailMergeWizard* _pWizard) m_pFemaleFieldCB->SetHelpId( HID_MM_BODY_CB_FEMALEFIELD ); m_pNeutralCB->SetHelpId( HID_MM_BODY_CB_NEUTRAL ); - FreeResource(); - m_aGreetingLineCB.SetClickHdl(LINK(this, SwMailBodyDialog, ContainsHdl_Impl)); + m_pGreetingLineCB->SetClickHdl(LINK(this, SwMailBodyDialog, ContainsHdl_Impl)); Link aIndividualLink = LINK(this, SwGreetingsHandler, IndividualHdl_Impl); - m_aPersonalizedCB.SetClickHdl(aIndividualLink); + m_pPersonalizedCB->SetClickHdl(aIndividualLink); Link aGreetingLink = LINK(this, SwGreetingsHandler, GreetingHdl_Impl); - m_aFemalePB.SetClickHdl(aGreetingLink); - m_aMalePB.SetClickHdl(aGreetingLink); - m_aOK.SetClickHdl(LINK(this, SwMailBodyDialog, OKHdl)); + m_pFemalePB->SetClickHdl(aGreetingLink); + m_pMalePB->SetClickHdl(aGreetingLink); + m_pOK->SetClickHdl(LINK(this, SwMailBodyDialog, OKHdl)); SwMailMergeConfigItem& rConfig = m_pWizard->GetConfigItem(); - m_aGreetingLineCB.Check(rConfig.IsGreetingLine(true)); - m_aPersonalizedCB.Check(rConfig.IsIndividualGreeting(true)); - ContainsHdl_Impl(&m_aGreetingLineCB); + m_pGreetingLineCB->Check(rConfig.IsGreetingLine(true)); + m_pPersonalizedCB->Check(rConfig.IsIndividualGreeting(true)); + ContainsHdl_Impl(m_pGreetingLineCB); aIndividualLink.Call(0); - lcl_FillGreetingsBox(m_aFemaleLB, rConfig, SwMailMergeConfigItem::FEMALE); - lcl_FillGreetingsBox(m_aMaleLB, rConfig, SwMailMergeConfigItem::MALE); - lcl_FillGreetingsBox(m_aNeutralCB, rConfig, SwMailMergeConfigItem::NEUTRAL); + lcl_FillGreetingsBox(*m_pFemaleLB, rConfig, SwMailMergeConfigItem::FEMALE); + lcl_FillGreetingsBox(*m_pMaleLB, rConfig, SwMailMergeConfigItem::MALE); + lcl_FillGreetingsBox(*m_pNeutralCB, rConfig, SwMailMergeConfigItem::NEUTRAL); //try to find the gender setting - m_aFemaleColumnLB.Clear(); + m_pFemaleColumnLB->Clear(); Reference< sdbcx::XColumnsSupplier > xColsSupp = rConfig.GetColumnsSupplier(); if(xColsSupp.is()) { Reference < container::XNameAccess> xColAccess = xColsSupp->getColumns(); Sequence< OUString > aColumns = xColAccess->getElementNames(); for(sal_Int32 nName = 0; nName < aColumns.getLength(); ++nName) - m_aFemaleColumnLB.InsertEntry(aColumns[nName]); + m_pFemaleColumnLB->InsertEntry(aColumns[nName]); } - m_aFemaleColumnLB.SelectEntry(rConfig.GetAssignedColumn(MM_PART_GENDER)); - m_aFemaleColumnLB.SaveValue(); + m_pFemaleColumnLB->SelectEntry(rConfig.GetAssignedColumn(MM_PART_GENDER)); + m_pFemaleColumnLB->SaveValue(); - m_aFemaleFieldCB.SetText(rConfig.GetFemaleGenderValue()); - m_aFemaleFieldCB.SaveValue(); + m_pFemaleFieldCB->SetText(rConfig.GetFemaleGenderValue()); + m_pFemaleFieldCB->SaveValue(); } SwMailBodyDialog::~SwMailBodyDialog() @@ -501,25 +485,25 @@ IMPL_LINK_NOARG(SwMailBodyDialog, OKHdl) { SwMailMergeConfigItem& rConfigItem = m_pWizard->GetConfigItem(); rConfigItem.SetGreetingLine( - m_aGreetingLineCB.IsChecked(), false); + m_pGreetingLineCB->IsChecked(), false); rConfigItem.SetIndividualGreeting( - m_aPersonalizedCB.IsChecked(), false); + m_pPersonalizedCB->IsChecked(), false); - if(m_aFemaleColumnLB.IsValueChangedFromSaved()) + if(m_pFemaleColumnLB->IsValueChangedFromSaved()) { const SwDBData& rDBData = rConfigItem.GetCurrentDBData(); Sequence< OUString> aAssignment = rConfigItem.GetColumnAssignment( rDBData ); - sal_Int32 nPos = m_aFemaleColumnLB.GetSelectEntryPos(); + sal_Int32 nPos = m_pFemaleColumnLB->GetSelectEntryPos(); if(aAssignment.getLength() < MM_PART_GENDER) aAssignment.realloc(MM_PART_GENDER); if( nPos > 0 ) - aAssignment[MM_PART_GENDER] = m_aFemaleColumnLB.GetSelectEntry(); + aAssignment[MM_PART_GENDER] = m_pFemaleColumnLB->GetSelectEntry(); else aAssignment[MM_PART_GENDER] = OUString(); rConfigItem.SetColumnAssignment( rDBData, aAssignment ); } - if(m_aFemaleFieldCB.IsValueChangedFromSaved()) - rConfigItem.SetFemaleGenderValue(m_aFemaleFieldCB.GetText()); + if(m_pFemaleFieldCB->IsValueChangedFromSaved()) + rConfigItem.SetFemaleGenderValue(m_pFemaleFieldCB->GetText()); EndDialog(RET_OK); return 0; diff --git a/sw/source/ui/dbui/mmgreetingspage.hrc b/sw/source/ui/dbui/mmgreetingspage.hrc deleted file mode 100644 index c3a9b93dd614..000000000000 --- a/sw/source/ui/dbui/mmgreetingspage.hrc +++ /dev/null @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef _MAILMERGEGREETINGSPAGE_HRC -#define _MAILMERGEGREETINGSPAGE_HRC - -#define CB_PERSONALIZED 2 -#define LB_FEMALE 3 -#define PB_FEMALE 4 -#define LB_MALE 5 -#define PB_MALE 6 -#define FI_FEMALE 7 -#define FT_FEMALECOLUMN 8 -#define LB_FEMALECOLUMN 9 -#define FT_FEMALEFIELD 10 -#define CB_FEMALEFIELD 11 -#define FT_NEUTRAL 12 - -#define CB_NEUTRAL 14 -#define CB_GREETINGLINE 15 - -#define STR_DOCUMENT 22 -#define FT_FEMALE 24 -#define FT_MALE 25 - -#define FT_BODY 30 -#define MLE_BODY 31 -#define FL_SEPARATOR 32 -#define PB_OK 33 -#define PB_CANCEL 34 -#define PB_HELP 35 - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/dbui/mmgreetingspage.hxx b/sw/source/ui/dbui/mmgreetingspage.hxx index 04f48a0f366f..fa94bc1e0a07 100644 --- a/sw/source/ui/dbui/mmgreetingspage.hxx +++ b/sw/source/ui/dbui/mmgreetingspage.hxx @@ -95,34 +95,10 @@ public: class SwMailBodyDialog : public SfxModalDialog, public SwGreetingsHandler { - CheckBox m_aGreetingLineCB; + FixedText *m_pBodyFT; + VclMultiLineEdit *m_pBodyMLE; - CheckBox m_aPersonalizedCB; - - FixedText m_aFemaleFT; - ListBox m_aFemaleLB; - PushButton m_aFemalePB; - - FixedText m_aMaleFT; - ListBox m_aMaleLB; - PushButton m_aMalePB; - - FixedInfo m_aFemaleFI; - FixedText m_aFemaleColumnFT; - ListBox m_aFemaleColumnLB; - FixedText m_aFemaleFieldFT; - ComboBox m_aFemaleFieldCB; - - FixedText m_aNeutralFT; - ComboBox m_aNeutralCB; - - FixedText m_aBodyFT; - MultiLineEdit m_aBodyMLE; - FixedLine m_aSeparatorFL; - - OKButton m_aOK; - CancelButton m_aCancel; - HelpButton m_aHelp; + OKButton *m_pOK; DECL_LINK(ContainsHdl_Impl, CheckBox*); DECL_LINK(OKHdl, void *); @@ -130,8 +106,8 @@ public: SwMailBodyDialog(Window* pParent, SwMailMergeWizard* pWizard); virtual ~SwMailBodyDialog(); - void SetBody(const OUString& rBody ) {m_aBodyMLE.SetText(rBody);} - OUString GetBody() const {return m_aBodyMLE.GetText();} + void SetBody(const OUString& rBody ) {m_pBodyMLE->SetText(rBody);} + OUString GetBody() const {return m_pBodyMLE->GetText();} }; #endif diff --git a/sw/source/ui/dbui/mmgreetingspage.src b/sw/source/ui/dbui/mmgreetingspage.src deleted file mode 100644 index 721596c28d4b..000000000000 --- a/sw/source/ui/dbui/mmgreetingspage.src +++ /dev/null @@ -1,182 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#include <mmgreetingspage.hrc> -#include <dbui.hrc> -#include <helpid.h> - -#define _LB_FEMALECOLUMN \ - StringList [en-US]= \ - { \ - < "< not available >" ; > ; \ - }; - -#define GREETINGS_BODY \ - CheckBox CB_PERSONALIZED \ - { \ - Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 17 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 226 , 10 ) ; \ - Text[ en-US ] = "Insert personalized salutation"; \ - }; \ - FixedText FT_FEMALE \ - { \ - Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 32 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 50 , 8 ) ; \ - Text[ en-US ] = "~Female"; \ - }; \ - ListBox LB_FEMALE \ - { \ - Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 30 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 121 , 50 ) ; \ - DropDown = TRUE; \ - Border = TRUE; \ - }; \ - PushButton PB_FEMALE \ - { \ - Pos = MAP_APPFONT ( 198 + LEFT_OFFSET , 29 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 50 , 14 ) ; \ - Text[ en-US ] = "~New..."; \ - }; \ - FixedText FT_MALE \ - { \ - Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 49 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 50 , 8 ) ; \ - Text[ en-US ] = "~Male"; \ - }; \ - ListBox LB_MALE \ - { \ - Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 47 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 121 , 50 ) ; \ - DropDown = TRUE; \ - Border = TRUE; \ - }; \ - PushButton PB_MALE \ - { \ - Pos = MAP_APPFONT ( 198 + LEFT_OFFSET , 48 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 50 , 14 ) ; \ - Text[ en-US ] = "N~ew..."; \ - }; \ - FixedText FI_FEMALE \ - { \ - Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 67 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 225 , 8 ) ; \ - Text[ en-US ] = "Address list field indicating a female recipient"; \ - }; \ - FixedText FT_FEMALECOLUMN \ - { \ - Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 80 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 50 , 8 ) ; \ - Text[ en-US ] = "Field name"; \ - }; \ - ListBox LB_FEMALECOLUMN \ - { \ - Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 78 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 121 , 50 ) ; \ - DropDown = TRUE; \ - Border = TRUE; \ - _LB_FEMALECOLUMN \ - }; \ - FixedText FT_FEMALEFIELD \ - { \ - Pos = MAP_APPFONT ( 18 + LEFT_OFFSET , 95 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 50 , 8 ) ; \ - Text[ en-US ] = "Field value"; \ - }; \ - ComboBox CB_FEMALEFIELD \ - { \ - Pos = MAP_APPFONT ( 71 + LEFT_OFFSET , 93 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 121 , 50 ) ; \ - DropDown = TRUE; \ - Border = TRUE; \ - }; \ - FixedText FT_NEUTRAL \ - { \ - Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 113 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 180 , 8 ) ; \ - Text[ en-US ] = "General salutation"; \ - }; \ - ComboBox CB_NEUTRAL \ - { \ - Pos = MAP_APPFONT ( 12 + LEFT_OFFSET , 124 + TOP_OFFSET ) ; \ - Size = MAP_APPFONT ( 180 , 50 ) ; \ - DropDown = TRUE; \ - Border = TRUE; \ - }; - -#undef TOP_OFFSET -#undef LEFT_OFFSET - -#define TOP_OFFSET 0 -#define LEFT_OFFSET 0 -ModalDialog DLG_MM_MAILBODY -{ - HelpID = HID_MM_MAILBODY; - Size = MAP_APPFONT ( 254 , 238 ) ; - OutputSize = TRUE ; - SVLook = TRUE ; - Moveable = TRUE ; - Text [ en-US ] = "E-Mail Message"; - CheckBox CB_GREETINGLINE - { - HelpID = "sw:CheckBox:DLG_MM_MAILBODY:CB_GREETINGLINE"; - Pos = MAP_APPFONT ( 6 , 3 ) ; - Size = MAP_APPFONT ( 242 , 10 ) ; - Text[ en-US ] = "This e-mail should contain a salutation"; - }; - GREETINGS_BODY - FixedText FT_BODY - { - Pos = MAP_APPFONT ( 12 , 140 ) ; - Size = MAP_APPFONT ( 174 , 8 ) ; - Text[ en-US ] = "Write your message here"; - }; - MultiLineEdit MLE_BODY - { - HelpID = "sw:MultiLineEdit:DLG_MM_MAILBODY:MLE_BODY"; - Pos = MAP_APPFONT ( 12, 151 ) ; - Size = MAP_APPFONT ( 180 , 50 ) ; - Border = TRUE; - TabStop = TRUE ; - Left = TRUE ; - VScroll = TRUE ; - HScroll = TRUE ; - IgnoreTab = TRUE; - }; - FixedLine FL_SEPARATOR - { - Pos = MAP_APPFONT ( 0 , 207 ) ; - Size = MAP_APPFONT ( 254 , 8 ) ; - }; - OKButton PB_OK - { - Pos = MAP_APPFONT ( 89, 218 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - }; - CancelButton PB_CANCEL - { - Pos = MAP_APPFONT ( 142 , 218 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - }; - HelpButton PB_HELP - { - Pos = MAP_APPFONT ( 198 , 218 ) ; - Size = MAP_APPFONT ( 50 , 14 ) ; - }; -}; - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |