Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /* FilterInternal.hxx: define basic functions for libwriterperfect/fileter
3 : : *
4 : : * This Source Code Form is subject to the terms of the Mozilla Public
5 : : * License, v. 2.0. If a copy of the MPL was not distributed with this
6 : : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 : : *
8 : : * For further information visit http://libwpd.sourceforge.net
9 : : */
10 : :
11 : : #include <libwpd/WPXPropertyList.h>
12 : :
13 : : #include "FilterInternal.hxx"
14 : :
15 : 0 : WPXString propListToStyleKey(const WPXPropertyList &xPropList)
16 : : {
17 [ # # ]: 0 : WPXString sKey;
18 [ # # ]: 0 : WPXPropertyList::Iter i(xPropList);
19 [ # # ][ # # ]: 0 : for (i.rewind(); i.next(); )
[ # # ]
20 : : {
21 [ # # ]: 0 : WPXString sProp;
22 [ # # ][ # # ]: 0 : sProp.sprintf("[%s:%s]", i.key(), i()->getStr().cstr());
[ # # ][ # # ]
[ # # ][ # # ]
23 [ # # ]: 0 : sKey.append(sProp);
24 [ # # ]: 0 : }
25 : :
26 [ # # ]: 0 : return sKey;
27 : : }
28 : :
29 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|