/* -*- 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_VCL_XTEXTEDT_HXX #define INCLUDED_VCL_XTEXTEDT_HXX #include #include #include namespace com { namespace sun { namespace star { namespace util { struct SearchOptions; }}}} class VCL_DLLPUBLIC ExtTextEngine : public TextEngine { private: OUString maGroupChars; public: ExtTextEngine(); ~ExtTextEngine(); const OUString& GetGroupChars() const { return maGroupChars; } void SetGroupChars( const OUString& r ) { maGroupChars = r; } TextSelection MatchGroup( const TextPaM& rCursor ) const; bool Search( TextSelection& rSel, const ::com::sun::star::util::SearchOptions& rSearchOptions, bool bForward = true ); }; class VCL_DLLPUBLIC ExtTextView : public TextView { protected: bool ImpIndentBlock( bool bRight ); public: ExtTextView( ExtTextEngine* pEng, Window* pWindow ); ~ExtTextView(); bool MatchGroup(); bool Search( const ::com::sun::star::util::SearchOptions& rSearchOptions, bool bForward ); sal_uInt16 Replace( const ::com::sun::star::util::SearchOptions& rSearchOptions, bool bAll, bool bForward ); bool IndentBlock(); bool UnindentBlock(); }; #endif // INCLUDED_VCL_XTEXTEDT_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ a/cd-5.3-3.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky
2016-12-05drop unneeded dep on boost_headersDavid Tardon
2016-12-05convert test helper library to dynamicDavid Tardon
2016-12-05rename to better match the purposeDavid Tardon
2016-06-09tdf#94698 cleanup Makefiles. Get rid of udkapi and offapiGleb Mishchenko
2015-12-17allow to skip import tests based on library versionDavid Tardon
2014-06-04Missing gb_CppunitTest_use_vclStephan Bergmann
2014-03-30sync cxx file names with class namesDavid Tardon
2014-03-30reduce the amount of copypastaDavid Tardon
2014-03-30add a smoketest for wpftwriter import libraryDavid Tardon