/* -*- 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 INCLUDED_SW_SOURCE_UI_ENVELP_SWUILABIMP_HXX #define INCLUDED_SW_SOURCE_UI_ENVELP_SWUILABIMP_HXX #include #include #include class SwLabPage : public SfxTabPage { SwDBManager* pDBManager; OUString sActDBName; SwLabItem aItem; VclPtr m_pAddressFrame; VclPtr m_pAddrBox; VclPtr m_pWritingEdit; VclPtr m_pDatabaseLB; VclPtr m_pTableLB; VclPtr m_pInsertBT; VclPtr m_pDBFieldLB; VclPtr m_pContButton; VclPtr m_pSheetButton; VclPtr m_pMakeBox; VclPtr m_pTypeBox; VclPtr m_pHiddenSortTypeBox; VclPtr m_pFormatInfo; DECL_LINK(AddrHdl, Button*, void); DECL_LINK(DatabaseHdl, ListBox&, void ); DECL_LINK(FieldHdl, Button *, void); DECL_LINK(PageHdl, Button *, void); DECL_LINK(MakeHdl, ListBox&, void); DECL_LINK(TypeHdl, ListBox&, void); void DisplayFormat (); SwLabRec* GetSelectedEntryPos(); using TabPage::ActivatePage; using TabPage::DeactivatePage; public: SwLabPage(vcl::Window* pParent, const SfxItemSet& rSet); virtual ~SwLabPage() override; virtual void dispose() override; static VclPtr Create(TabPageParent pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override; void FillItem(SwLabItem& rItem); virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; SwLabDlg* GetParentSwLabDlg() {return static_cast(GetParentDialog());} void SetToBusinessCard(); void InitDatabaseBox(); void SetDBManager(SwDBManager* pDBManager_) { pDBManager = pDBManager_; } SwDBManager* GetDBManager() const { return pDBManager; } }; class SwOneExampleFrame; class SwVisitingCardPage : public SfxTabPage { VclPtr m_pAutoTextLB; VclPtr m_pAutoTextGroupLB; VclPtr m_pExampleWIN; SwLabItem aLabItem; SwOneExampleFrame* pExampleFrame; css::uno::Reference< css::text::XAutoTextContainer2 > m_xAutoText; DECL_LINK( AutoTextSelectTreeListBoxHdl, SvTreeListBox*, void ); DECL_LINK( AutoTextSelectHdl, ListBox&, void ); DECL_LINK( FrameControlInitializedHdl, SwOneExampleFrame&, void ); void InitFrameControl(); void UpdateFields(); void ClearUserData(); using SfxTabPage::SetUserData; void SetUserData( sal_uInt32 nCnt, const OUString* pNames, const OUString* pValues ); virtual ~SwVisitingCardPage() override; virtual void dispose() override; using TabPage::ActivatePage; using TabPage::DeactivatePage; public: SwVisitingCardPage(vcl::Window* pParent, const SfxItemSet& rSet); static VclPtr Create(TabPageParent pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override; virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; }; class SwPrivateDataPage : public SfxTabPage { VclPtr m_pFirstNameED; VclPtr m_pNameED; VclPtr m_pShortCutED; VclPtr m_pFirstName2ED; VclPtr m_pName2ED; VclPtr m_pShortCut2ED; VclPtr m_pStreetED; VclPtr m_pZipED; VclPtr m_pCityED; VclPtr m_pCountryED; VclPtr m_pStateED; VclPtr m_pTitleED; VclPtr m_pProfessionED; VclPtr m_pPhoneED; VclPtr m_pMobilePhoneED; VclPtr m_pFaxED; VclPtr m_pHomePageED; VclPtr m_pMailED; using TabPage::ActivatePage; using TabPage::DeactivatePage; public: SwPrivateDataPage(vcl::Window* pParent, const SfxItemSet& rSet); virtual ~SwPrivateDataPage() override; virtual void dispose() override; static VclPtr Create(TabPageParent pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override; virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; }; class SwBusinessDataPage : public SfxTabPage { VclPtr m_pCompanyED; VclPtr m_pCompanyExtED; VclPtr m_pSloganED; VclPtr m_pStreetED; VclPtr m_pZipED; VclPtr m_pCityED; VclPtr m_pCountryED; VclPtr m_pStateED; VclPtr m_pPositionED; VclPtr m_pPhoneED; VclPtr m_pMobilePhoneED; VclPtr m_pFaxED; VclPtr m_pHomePageED; VclPtr m_pMailED; using TabPage::ActivatePage; using TabPage::DeactivatePage; public: SwBusinessDataPage(vcl::Window* pParent, const SfxItemSet& rSet); virtual ~SwBusinessDataPage() override; virtual void dispose() override; static VclPtr Create(TabPageParent pParent, const SfxItemSet* rSet); virtual void ActivatePage(const SfxItemSet& rSet) override; virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override; virtual bool FillItemSet(SfxItemSet* rSet) override; virtual void Reset(const SfxItemSet* rSet) override; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */