1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <doctok/resources.hxx>
22 namespace writerfilter
{
24 sal_uInt32
WW8sprmPChgTabsPapx::get_dxaDel_count()
29 sal_Int16
WW8sprmPChgTabsPapx::get_dxaDel(sal_uInt32 pos
)
31 return getS16(0x4 + pos
* 2);
34 sal_uInt32
WW8sprmPChgTabsPapx::get_dxaAdd_count()
36 return getS8(0x4 + get_dxaDel_count() * 2);
39 sal_Int16
WW8sprmPChgTabsPapx::get_dxaAdd(sal_uInt32 pos
)
41 return getS16(0x4 + get_dxaDel_count() * 2 + 1 + pos
* 2);
44 sal_uInt32
WW8sprmPChgTabsPapx::get_tbdAdd_count()
46 return get_dxaAdd_count();
49 writerfilter::Reference
<Properties
>::Pointer_t
50 WW8sprmPChgTabsPapx::get_tbdAdd(sal_uInt32 pos
)
52 //wntmsci compiler cannot handle 'too many inlines' ;-)
53 writerfilter::Reference
<Properties
>::Pointer_t
pRet( new WW8TBD(this,
54 0x4 + get_dxaDel_count() * 2 + 1 + get_dxaAdd_count() * 2
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */