Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / vcl / textfilter.hxx
blob0113b28bcedc2cd6005344ec9b4ba0f5f359b173
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9 #ifndef INCLUDED_VCL_TEXTFILTER_HXX
10 #define INCLUDED_VCL_TEXTFILTER_HXX
12 #include <vcl/dllapi.h>
13 #include <rtl/ustring.hxx>
15 class VCL_DLLPUBLIC TextFilter
17 private:
18 OUString sForbiddenChars;
20 public:
21 void SetForbiddenChars(const OUString& rSet) { sForbiddenChars = rSet; }
23 virtual OUString filter(const OUString& rText);
25 TextFilter(OUString aForbiddenChars = OUString(" "));
26 virtual ~TextFilter();
29 #endif // INCLUDED_VCL_TEXTFILTER_HXX
31 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */