LibreOffice Module sw (master)  1
ToxWhitespaceStripper.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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 
10 
11 #ifndef TOXWHITESPACESTRIPPER_HXX_
12 #define TOXWHITESPACESTRIPPER_HXX_
13 
14 #include <rtl/ustring.hxx>
15 #include <vector>
16 
17 namespace sw {
18 
33 {
34 public:
35  ToxWhitespaceStripper(const OUString&);
36 
37  sal_Int32
38  GetPositionInStrippedString(sal_Int32 pos) const;
39 
40  const OUString&
41  GetStrippedString() const { return mStripped;}
42 
43 private:
44  OUString mStripped;
45  std::vector<sal_Int32> mNewPositions;
46 };
47 
48 } // end namespace sw
49 
50 
51 #endif /* TOXWHITESPACESTRIPPER_HXX_ */
This class helps to remove unwanted whitespaces from a string to use in a Tox.
Dialog to specify the properties of date form field.
size_t pos
ToxWhitespaceStripper(const OUString &)
const OUString & GetStrippedString() const
sal_Int32 GetPositionInStrippedString(sal_Int32 pos) const
std::vector< sal_Int32 > mNewPositions