/* -*- 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_INC_ACMPLWRD_HXX #define INCLUDED_SW_INC_ACMPLWRD_HXX #include #include #include #include #include class SwDoc; class SwAutoCompleteWord_Impl; class SwAutoCompleteClient; class SwAutoCompleteString; typedef std::deque SwAutoCompleteStringPtrDeque; class SwAutoCompleteWord { friend class SwAutoCompleteClient; /// contains extended strings carrying source information editeng::SortedAutoCompleteStrings m_WordList; editeng::Trie m_LookupTree; SwAutoCompleteStringPtrDeque aLRULst; std::unique_ptr pImpl; editeng::SortedAutoCompleteStrings::size_type nMaxCount; sal_uInt16 nMinWrdLen; bool bLockWordLst; void DocumentDying(const SwDoc& rDoc); public: SwAutoCompleteWord( editeng::SortedAutoCompleteStrings::size_type nWords, sal_uInt16 nMWrdLen = 10 ); ~SwAutoCompleteWord(); bool InsertWord( const OUString& rWord, SwDoc& rDoc ); bool IsLockWordLstLocked() const { return bLockWordLst; } void SetLockWordLstLocked( bool bFlag ) { bLockWordLst = bFlag; } void SetMaxCount( editeng::SortedAutoCompleteStrings::size_type n ); sal_uInt16 GetMinWordLen() const { return nMinWrdLen; } void SetMinWordLen( sal_uInt16 n ); const editeng::SortedAutoCompleteStrings& GetWordList() const { return m_WordList; } void CheckChangedList(const editeng::SortedAutoCompleteStrings& rNewLst); // Returns all words matching a given prefix aMatch. bool GetWordsMatching(const OUString& aMatch, std::vector& aWords) const; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ on value='distro/collabora/co-24.04'>distro/collabora/co-24.04 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2024-06-29Fix VBA Table's *Padding properties typeMike Kaganski
2024-05-13tdf#157657 - sc: add option to make data validity case-sensitiveBalazs Varga
2023-03-13tdf#150281: Fix CentimetersToPoints in CalcBaole Fang
2023-02-25word vba: tie "Word" to VBAGlobalsJustin Luth
2023-02-24word vba: add ShowAll to XViewJustin Luth
2023-02-24word vba: Add activeWindow to XDocumentJustin Luth
2023-02-14tdf#149786 sc: add VBA function: ExportAsFixedFormatBalazs Varga
2022-12-16tdf#151548 vba FormFields: implement RangeJustin Luth
2022-11-25tdf#151548 vba ContentControls: Add word::XContentControlListEntryJustin Luth
2022-11-24tdf#151548 vba ContentControls: Add basic word::XContentControlJustin Luth
2022-11-15tdf#151548 vba FormFields: Add basic word::XDropDown supportJustin Luth
2022-11-14Fix typoAndrea Gelmini
2022-11-14tdf#151548 vba FormFields: Add basic word::XTextInput supportJustin Luth
2022-11-11tdf#151548 vba FormFields: Add basic word::XCheckBox supportJustin Luth
2022-11-10Fix typosAndrea Gelmini
2022-11-10tdf#151548 vba FormFields: Add basic word::XFormField supportJustin Luth
2022-10-17sw vba: add WordBasic.MsgBoxJustin Luth
2022-10-14sw vba: add WordBasic.ScreenUpdatingJustin Luth
2022-10-13sw vba: tie WordBasic to VBAGlobalsJustin Luth
2022-08-06VBA Add conversion methods to globalHannah Meeks
2022-08-05VBA Add conversion methods to ApplicationHannah Meeks
2022-08-05VBA Add Padding properties to XTableHannah Meeks
2022-07-20VBA: Add Select Method to ActiveDocumentHannah Meeks
2022-07-14The DefaultPropertyName for range is texHannah Meeks
2022-07-14tdf#149963 - XFind not a property/attribute of XRangeHannah Meeks