diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-04 13:23:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-05 16:06:59 +0200 |
commit | 76c5f33e65e9a36c94c46f1ed0b6d33721d21cfb (patch) | |
tree | 35efc002c6f8e300b6fb7b408f5727cf999361a8 /include/svtools/urlfilter.hxx | |
parent | 108d1b7c62bba7220f0e61bba8bb04ccc545bc63 (diff) |
move file picker only code to fpicker
Change-Id: I47cc2cb7db396a06a2abeffe4a5d40a039f21c58
Reviewed-on: https://gerrit.libreoffice.org/80222
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svtools/urlfilter.hxx')
-rw-r--r-- | include/svtools/urlfilter.hxx | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/include/svtools/urlfilter.hxx b/include/svtools/urlfilter.hxx new file mode 100644 index 000000000000..9ca75ed5b57e --- /dev/null +++ b/include/svtools/urlfilter.hxx @@ -0,0 +1,44 @@ +/* -*- 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_SVL_URLFILTER_HXX +#define INCLUDED_SVL_URLFILTER_HXX + +#include <svtools/svtdllapi.h> +#include <tools/wldcrd.hxx> +#include <vector> + +struct SVT_DLLPUBLIC FilterMatch +{ +private: + const OUString& m_rCompareString; +public: + FilterMatch( const OUString& _rCompareString ) : m_rCompareString( _rCompareString ) { } + + bool operator()( const WildCard& _rMatcher ) + { + return _rMatcher.Matches( m_rCompareString ); + } + + static void createWildCardFilterList(const OUString& _rFilterList,::std::vector< WildCard >& _rFilters); +}; + +#endif // INCLUDED_SVL_URLFILTER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |