LibreOffice Module sw (master) 1
writerwordglue.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 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_SW_SOURCE_FILTER_WW8_WRITERWORDGLUE_HXX
21#define INCLUDED_SW_SOURCE_FILTER_WW8_WRITERWORDGLUE_HXX
22
23#include "needed_cast.hxx"
24
25class SwFrameFormat;
26class SfxItemSet;
27
28namespace sw
29{
30 namespace types
31 {
53 template<typename Ret, typename Param> Ret writer_cast(Param in)
54 {
55 return ww::needed_cast<Ret, Param>(in);
56 }
57
79 template<typename Ret, typename Param> Ret msword_cast(Param in)
80 {
81 return ww::needed_cast<Ret, Param>(in);
82 }
83 }
84
85 namespace util
86 {
105 bool IsPlausableSingleWordSection(const SwFrameFormat &rTitleFormat,
106 const SwFrameFormat &rFollowFormat);
107
115 {
116 private:
119 public:
120 sal_uInt16 m_DyaHdrTop;
121 sal_uInt16 m_DyaHdrBottom;
122 sal_uInt16 m_DyaTop;
123 sal_uInt16 m_DyaBottom;
124 explicit HdFtDistanceGlue(const SfxItemSet &rPage);
125 bool HasHeader() const { return mbHasHeader; }
126 bool HasFooter() const { return mbHasFooter; }
127
142 bool StrictEqualTopBottom(const HdFtDistanceGlue &rOther) const;
143
144 };
145 }
146}
147
148#endif
149
150/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Style of a layout element.
Definition: frmfmt.hxx:62
Make export a word section top/bottom values easy.
bool StrictEqualTopBottom(const HdFtDistanceGlue &rOther) const
Is the top of the page the same in both objects when there are headers\footers present or non-present...
HdFtDistanceGlue(const SfxItemSet &rPage)
Ret writer_cast(Param in)
A static_cast style cast for conversion of word types to writer's.
Ret msword_cast(Param in)
A static_cast style cast for conversion of writer types to word's.
bool IsPlausableSingleWordSection(const SwFrameFormat &rTitleFormat, const SwFrameFormat &rFollowFormat)
See if two page formats can be expressed as a single word section.
Dialog to specify the properties of date form field.