/* -*- 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 . */ #pragma once #include #include #include "bibshortcuthandler.hxx" class BibDataManager; #define TYPE_COUNT 22 #define FIELD_COUNT 31 class ChangeListener; class BibGeneralPage : public InterimItemWindow , public BibShortCutHandler { std::unique_ptr xScrolledWindow; std::unique_ptr xGrid; std::unique_ptr xIdentifierFT; std::unique_ptr xIdentifierED; std::unique_ptr xAuthTypeFT; std::unique_ptr xAuthTypeLB; std::unique_ptr xYearFT; std::unique_ptr xYearED; std::unique_ptr xAuthorFT; std::unique_ptr xAuthorED; std::unique_ptr xTitleFT; std::unique_ptr xTitleED; std::unique_ptr xPublisherFT; std::unique_ptr xPublisherED; std::unique_ptr xAddressFT; std::unique_ptr xAddressED; std::unique_ptr xISBNFT; std::unique_ptr xISBNED; std::unique_ptr xChapterFT; std::unique_ptr xChapterED; std::unique_ptr xPagesFT; std::unique_ptr xPagesED; std::unique_ptr xEditorFT; std::unique_ptr xEditorED; std::unique_ptr xEditionFT; std::unique_ptr xEditionED; std::unique_ptr xBooktitleFT; std::unique_ptr xBooktitleED; std::unique_ptr xVolumeFT; std::unique_ptr xVolumeED; std::unique_ptr xHowpublishedFT; std::unique_ptr xHowpublishedED; std::unique_ptr xOrganizationsFT; std::unique_ptr xOrganizationsED; std::unique_ptr xInstitutionFT; std::unique_ptr xInstitutionED; std::unique_ptr xSchoolFT; std::unique_ptr xSchoolED; std::unique_ptr xReportTypeFT; std::unique_ptr xReportTypeED; std::unique_ptr xMonthFT; std::unique_ptr xMonthED; std::unique_ptr xJournalFT; std::unique_ptr xJournalED; std::unique_ptr xNumberFT; std::unique_ptr xNumberED; std::unique_ptr xSeriesFT; std::unique_ptr xSeriesED; std::unique_ptr xAnnoteFT; std::unique_ptr xAnnoteED; std::unique_ptr xNoteFT; std::unique_ptr xNoteED; std::unique_ptr xURLFT; std::unique_ptr xURLED; std::unique_ptr xCustom1FT; std::unique_ptr xCustom1ED; std::unique_ptr xCustom2FT; std::unique_ptr xCustom2ED; std::unique_ptr xCustom3FT; std::unique_ptr xCustom3ED; std::unique_ptr xCustom4FT; std::unique_ptr xCustom4ED; std::unique_ptr xCustom5FT; std::unique_ptr xCustom5ED; std::unique_ptr m_xLocalURLFT; std::unique_ptr m_xLocalURLED; std::unique_ptr m_xLocalBrowseButton; std::unique_ptr m_xLocalPageCB; std::unique_ptr m_xLocalPageSB; OUString sTableErrorString; std::vector> maChangeListeners; rtl::Reference m_aURLListener; BibDataManager* pDatMan; bool AddXControl(const OUString& rName, weld::Entry& rEntry); bool AddXControl(const OUString& rName, weld::ComboBox& rList); template void AddControlWithError(const OUString& rColumnName, const OUString& rColumnUIName, Target& rWidget, OUString& rErrorString, const OString& rHelpId); void SaveChanges(); DECL_LINK(GainFocusHdl, weld::Widget&, void); DECL_LINK(FirstElementKeyInputHdl, const KeyEvent&, bool); DECL_LINK(LastElementKeyInputHdl, const KeyEvent&, bool); DECL_LINK(BrowseHdl, weld::Button&, void); DECL_LINK(PageNumHdl, weld::Toggleable&, void); DECL_LINK(LosePageFocusHdl, weld::Widget&, void); public: BibGeneralPage(vcl::Window* pParent, BibDataManager* pDatMan); virtual ~BibGeneralPage() override; virtual void dispose() override; const OUString& GetErrorString() const { return sTableErrorString; } weld::Entry& GetLocalURLED(); weld::CheckButton& GetLocalPageCB(); weld::SpinButton& GetLocalPageSB(); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */