/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef _SVX_THESDLG_HXX #define _SVX_THESDLG_HXX // include --------------------------------------------------------------- #include #include #include #include #include #include #include #include // forward --------------------------------------------------------------- struct ThesDlg_Impl; class SvxThesaurusLanguageDlg_Impl; namespace com { namespace sun { namespace star { namespace linguistic2 { class XThesaurus; class XMeaning; } namespace lang { struct Locale; } }}} // class SvxThesaurusDialog ---------------------------------------------- class SvxThesaurusDialog : public SvxStandardDialog { public: friend class SvxThesaurusLanguageDlg_Impl; SvxThesaurusDialog( Window* pParent, ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XThesaurus > xThesaurus, const String &rWord, sal_Int16 nLanguage ); ~SvxThesaurusDialog(); String GetWord() { return aReplaceEdit.GetText(); } sal_uInt16 GetLanguage() const; private: FixedText aWordText; ListBox aWordLB; FixedText aReplaceText; Edit aReplaceEdit; FixedText aMeanText; ListBox aMeanLB; FixedText aSynonymText; ListBox aSynonymLB; FixedLine aVarFL; OKButton aOkBtn; CancelButton aCancelBtn; PushButton aLookUpBtn; PushButton aLangBtn; HelpButton aHelpBtn; String aErrStr; ThesDlg_Impl* pImpl; // always != NULL virtual void Apply(); void UpdateSynonymBox_Impl(); void UpdateMeaningBox_Impl( ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XMeaning > > *pMeaningSeq = NULL ); void Init_Impl(sal_Int16 nLanguage); ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XMeaning > > SAL_CALL queryMeanings_Impl( ::rtl::OUString& rTerm, const ::com::sun::star::lang::Locale& rLocale, const ::com::sun::star::beans::PropertyValues& rProperties ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); // Handler DECL_LINK( SelectHdl_Impl, ListBox * ); DECL_LINK( SynonymHdl_Impl, ListBox * ); DECL_LINK( LookUpHdl_Impl, Button * ); DECL_LINK( LanguageHdl_Impl, Button * ); DECL_LINK( EntryHdl_Impl, ListBox * ); DECL_LINK( SpellErrorHdl_Impl, void * ); }; #endif bora/libreoffice-7-5+backports LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2014-08-13Notify screen readers when selection changes in listboxesNiklas Johansson
2014-07-02Related: #i124856# guard against crashJürgen Schmidt
2014-06-27fdo#74681: quick help may be used as accessible textJacobo Aragunde Pérez
2014-05-05simplify ternary conditions "xxx ? yyy : false"Noel Grandin
2014-04-15accessibility: sal_Bool->boolNoel Grandin
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin
2014-03-11No need for implGetBounds to be SAL_CALLStephan Bergmann
2014-03-10accessibility: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann
2014-03-05made ListBox handle more than 64k elements, fdo#61520 relatedEike Rathke
2014-02-26Revert "Let's use RADIO_BUTTON and CHECK_BUTTON roles"Stephan Bergmann
2014-02-26Let's use RADIO_BUTTON and CHECK_BUTTON rolesJulien Nabet
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
2014-02-26cppcheck: duplicateIfJulien Nabet
2014-02-25Remove visual noise from accessibilityAlexander Wilms
2014-02-24Replace exisiting TriState, AutoState with more generic TriStateStephan Bergmann
2014-02-23Remove unneccessary commentsAlexander Wilms
2014-02-20Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxxTobias Lippert
2014-02-19Related: fdo#74242 #i104470# we now have a seperate CARET_CHANGED eventCaolán McNamara
2014-02-10the return of callcatcherCaolán McNamara
2014-02-07Avoid unnecessary heap allocationStephan Bergmann
2014-02-04Related: #i123862# use O*String's isEmpty() method...Herbert Dürr
2014-01-28bool improvementsStephan Bergmann
2014-01-28Resolves: #i124008# listbox entry's are selected automatically...Steve Yin
2014-01-19coverity#1158122 : Explicit null dereferencedNorbert Thiebaud
2014-01-19coverity#1132662 Dereference after null checkNorbert Thiebaud
2014-01-19coverity#1132661 Dereference after null checkNorbert Thiebaud
2013-11-27Improve exception messageStephan Bergmann
2013-11-27Revert sense in VCLXAccessibleBox::getAccessibleActionCount againStephan Bergmann
2013-11-26statement aligned as second statement in if body but not in a statement blockStephan Bergmann
2013-11-26Integrate branch of IAccessible2Steve Yin
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin