LibreOffice Module sw (master) 1
|
#include <mmlayoutpage.hxx>
Public Member Functions | |
SwMailMergeLayoutPage (weld::Container *pPage, SwMailMergeWizard *pWizard) | |
virtual | ~SwMailMergeLayoutPage () override |
Public Member Functions inherited from vcl::OWizardPage | |
OWizardPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID) | |
virtual | ~OWizardPage () override |
virtual void | initializePage () override |
virtual bool | commitPage (WizardTypes::CommitPageReason _eReason) override |
virtual bool | canAdvance () const override |
Public Member Functions inherited from BuilderPage | |
BuilderPage (weld::Widget *pParent, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, bool bIsMobile=false) | |
virtual | ~BuilderPage () COVERITY_NOEXCEPT_FALSE |
void | SetPageTitle (const OUString &rPageTitle) |
const OUString & | GetPageTitle () const |
virtual void | Activate () |
virtual void | Deactivate () |
void | SetHelpId (const OUString &rHelpId) |
OUString | GetHelpId () const |
Static Public Member Functions | |
static SwFrameFormat * | InsertAddressAndGreeting (SwView const *pView, SwMailMergeConfigItem &rConfigItem, const Point &rAddressPos, bool bAlignToBody) |
Private Member Functions | |
DECL_LINK (PreviewLoadedHdl_Impl, SwOneExampleFrame &, void) | |
DECL_LINK (ZoomHdl_Impl, weld::ComboBox &, void) | |
DECL_LINK (ChangeAddressHdl_Impl, weld::MetricSpinButton &, void) | |
DECL_LINK (GreetingsHdl_Impl, weld::Button &, void) | |
DECL_LINK (AlignToTextHdl_Impl, weld::Toggleable &, void) | |
virtual void | Activate () override |
virtual bool | commitPage (::vcl::WizardTypes::CommitPageReason _eReason) override |
Static Private Member Functions | |
static SwFrameFormat * | InsertAddressFrame (SwWrtShell &rShell, SwMailMergeConfigItem const &rConfigItem, const Point &rDestination, bool bAlignToBody, bool bExample) |
static void | InsertGreeting (SwWrtShell &rShell, SwMailMergeConfigItem const &rConfigItem, bool bExample) |
Private Attributes | |
SwWrtShell * | m_pExampleWrtShell |
OUString | m_sExampleURL |
SwFrameFormat * | m_pAddressBlockFormat |
bool | m_bIsGreetingInserted |
SwMailMergeWizard * | m_pWizard |
css::uno::Reference< css::beans::XPropertySet > | m_xViewProperties |
std::unique_ptr< weld::Container > | m_xPosition |
std::unique_ptr< weld::CheckButton > | m_xAlignToBodyCB |
std::unique_ptr< weld::Label > | m_xLeftFT |
std::unique_ptr< weld::MetricSpinButton > | m_xLeftMF |
std::unique_ptr< weld::MetricSpinButton > | m_xTopMF |
std::unique_ptr< weld::Container > | m_xGreetingLine |
std::unique_ptr< weld::Button > | m_xUpPB |
std::unique_ptr< weld::Button > | m_xDownPB |
std::unique_ptr< weld::ComboBox > | m_xZoomLB |
std::unique_ptr< SwOneExampleFrame > | m_xExampleFrame |
std::unique_ptr< weld::CustomWeld > | m_xExampleContainerWIN |
Additional Inherited Members | |
Protected Member Functions inherited from vcl::OWizardPage | |
virtual void | Activate () override |
void | updateDialogTravelUI () |
Protected Attributes inherited from BuilderPage | |
weld::DialogController * | m_pDialogController |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Container > | m_xContainer |
Definition at line 34 of file mmlayoutpage.hxx.
SwMailMergeLayoutPage::SwMailMergeLayoutPage | ( | weld::Container * | pPage, |
SwMailMergeWizard * | pWizard | ||
) |
Definition at line 72 of file mmlayoutpage.cxx.
References CM, DEFAULT_LEFT_DISTANCE, DEFAULT_TOP_DISTANCE, utl::TempFileNamed::EnableKillingFile(), EX_SHOW_DEFAULT_PAGE, unicode::formatPercent(), GetDfltMetric(), SwView::GetDocShell(), SfxObjectShell::GetModel(), Application::GetSettings(), SwMailMergeWizard::GetSwView(), AllSettings::GetUILanguageTag(), utl::TempFileNamed::GetURL(), Size::Height(), LINK, m_pWizard, m_sExampleURL, m_xAlignToBodyCB, BuilderPage::m_xBuilder, m_xDownPB, m_xExampleContainerWIN, m_xExampleFrame, m_xLeftMF, m_xTopMF, m_xUpPB, m_xZoomLB, comphelper::makePropertyValue(), comphelper::string::stripStart(), u, and Size::Width().
|
overridevirtual |
Definition at line 148 of file mmlayoutpage.cxx.
References m_sExampleURL.
|
overrideprivatevirtual |
Reimplemented from vcl::OWizardPage.
Definition at line 153 of file mmlayoutpage.cxx.
References SwCursorShell::DeleteCurrent, SwEditShell::DelFullPara(), SwWrtShell::DelRight(), SwMailMergeWizard::GetConfigItem(), SwFormat::GetName(), SwWrtShell::GotoFly(), InsertAddressFrame(), InsertGreeting(), SwMailMergeConfigItem::IsAddressBlock(), SwMailMergeConfigItem::IsAddressInserted(), SwMailMergeConfigItem::IsGreetingInserted(), SwMailMergeConfigItem::IsGreetingLine(), m_bIsGreetingInserted, m_pAddressBlockFormat, m_pExampleWrtShell, m_pWizard, m_xAlignToBodyCB, m_xExampleFrame, m_xGreetingLine, m_xLeftMF, m_xPosition, m_xTopMF, SwWrtShell::Pop(), and SwCursorShell::Push().
|
overrideprivatevirtual |
Definition at line 206 of file mmlayoutpage.cxx.
References SwMailMergeWizard::GetConfigItem(), SwMailMergeWizard::GetSwView(), InsertAddressAndGreeting(), m_pWizard, m_xAlignToBodyCB, m_xLeftMF, and m_xTopMF.
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
Definition at line 223 of file mmlayoutpage.cxx.
References DEFAULT_LEFT_DISTANCE, DEFAULT_TOP_DISTANCE, SwEditShell::EndUndo(), SwView::GetWrtShell(), INSERT, InsertAddressFrame(), InsertGreeting(), SwMailMergeConfigItem::IsAddressBlock(), SwMailMergeConfigItem::IsAddressInserted(), SwMailMergeConfigItem::IsGreetingInserted(), SwMailMergeConfigItem::IsGreetingLine(), SwMailMergeConfigItem::SetAddressInserted(), SwMailMergeConfigItem::SetGreetingInserted(), SwEditShell::StartUndo(), Point::X(), and Point::Y().
Referenced by commitPage().
|
staticprivate |
Definition at line 251 of file mmlayoutpage.cxx.
References SL::aData, SwMergeAddressItem::bIsColumn, SwMergeAddressItem::bIsReturn, ConditionalText, Database, DB_DELIM, DEFAULT_ADDRESS_HEIGHT, DEFAULT_ADDRESS_WIDTH, first, SwMailMergeConfigItem::GetAddressBlocks(), SwViewShell::GetAttrPool(), SwMailMergeConfigItem::GetColumnAssignment(), SwMailMergeConfigItem::GetCurrentDBData(), SwMailMergeConfigItem::GetDefaultAddressHeaders(), SwMailMergeConfigItem::GetExcludeCountry(), SwFEShell::GetFlyFrameFormat(), SwAddressIterator::HasMore(), HiddenParagraph, SwWrtShell::Insert(), SwFieldMgr::InsertField(), SwMailMergeConfigItem::IsHideEmptyParagraphs(), SwMailMergeConfigItem::IsIncludeCountry(), min(), Minimum, SwDBData::nCommandType, SwFEShell::NewFlyFrame(), SwAddressIterator::Next(), SwPostItHelper::NONE, RES_ANCHOR(), RES_BOX(), RES_FRM_SIZE(), RES_SURROUND(), SwDBData::sCommand, SwDBData::sDataSource, SwWrtShell::SplitNode(), SwMergeAddressItem::sText, SwWrtShell::UnSelectFrame(), Point::X(), and Point::Y().
Referenced by Activate(), and InsertAddressAndGreeting().
|
staticprivate |
Definition at line 388 of file mmlayoutpage.cxx.
References SL::aData, aEntries, SwEditShell::AppendTextNode(), SwMergeAddressItem::bIsColumn, Database, DB_DELIM, DEFAULT_LEFT_DISTANCE, SwCursorShell::DeleteCurrent, SwMailMergeConfigItem::FEMALE, first, fnParaStart, SwWrtShell::FwdPara(), SwFEShell::GetAnyCurRect(), SwMailMergeConfigItem::GetAssignedColumn(), SwCursorShell::GetCharRect(), SwMailMergeConfigItem::GetColumnAssignment(), SwMailMergeConfigItem::GetCurrentDBData(), SwMailMergeConfigItem::GetCurrentGreeting(), SwMailMergeConfigItem::GetDefaultAddressHeaders(), SwMailMergeConfigItem::GetFemaleGenderValue(), SwMailMergeConfigItem::GetGreetingMoves(), SwMailMergeConfigItem::GetGreetings(), SwEditShell::GetTableFormat(), GoCurrPara(), GREETING_TOP_DISTANCE, SwAddressIterator::HasMore(), HiddenParagraph, SwWrtShell::Insert(), SwFieldMgr::InsertField(), SwCursorShell::IsEndPara(), SwMailMergeConfigItem::IsHideEmptyParagraphs(), SwMailMergeConfigItem::IsIndividualGreeting(), SwRect::Left(), SwEditShell::LockExpFields(), SwMailMergeConfigItem::MALE, min(), SwCursorShell::MovePara(), SwEditShell::MoveParagraph(), SwDBData::nCommandType, SwMailMergeConfigItem::NEUTRAL, SwAddressIterator::Next(), Page, SwWrtShell::Pop(), SwCursorShell::Push(), SwDBData::sCommand, SwDBData::sDataSource, SwCursorShell::SetShadowCursorPos(), SwWrtShell::SplitNode(), SwMergeAddressItem::sText, SwCursorShell::SttEndDoc(), SwWrtShell::SttPara(), TabSpace, SwRect::Top(), and SwEditShell::UnlockExpFields().
Referenced by Activate(), and InsertAddressAndGreeting().
|
private |
Definition at line 41 of file mmlayoutpage.hxx.
Referenced by Activate().
|
private |
Definition at line 39 of file mmlayoutpage.hxx.
Referenced by Activate().
|
private |
Definition at line 36 of file mmlayoutpage.hxx.
Referenced by Activate().
|
private |
Definition at line 43 of file mmlayoutpage.hxx.
Referenced by Activate(), commitPage(), and SwMailMergeLayoutPage().
|
private |
Definition at line 38 of file mmlayoutpage.hxx.
Referenced by SwMailMergeLayoutPage(), and ~SwMailMergeLayoutPage().
|
private |
Definition at line 48 of file mmlayoutpage.hxx.
Referenced by Activate(), commitPage(), and SwMailMergeLayoutPage().
|
private |
Definition at line 54 of file mmlayoutpage.hxx.
Referenced by SwMailMergeLayoutPage().
|
private |
Definition at line 57 of file mmlayoutpage.hxx.
Referenced by SwMailMergeLayoutPage().
|
private |
Definition at line 56 of file mmlayoutpage.hxx.
Referenced by Activate(), and SwMailMergeLayoutPage().
|
private |
Definition at line 52 of file mmlayoutpage.hxx.
Referenced by Activate().
|
private |
Definition at line 49 of file mmlayoutpage.hxx.
|
private |
Definition at line 50 of file mmlayoutpage.hxx.
Referenced by Activate(), commitPage(), and SwMailMergeLayoutPage().
|
private |
Definition at line 47 of file mmlayoutpage.hxx.
Referenced by Activate().
|
private |
Definition at line 51 of file mmlayoutpage.hxx.
Referenced by Activate(), commitPage(), and SwMailMergeLayoutPage().
|
private |
Definition at line 53 of file mmlayoutpage.hxx.
Referenced by SwMailMergeLayoutPage().
|
private |
Definition at line 45 of file mmlayoutpage.hxx.
|
private |
Definition at line 55 of file mmlayoutpage.hxx.
Referenced by SwMailMergeLayoutPage().