[cp] Flag a few more import filters as EXOTIC
[LibreOffice.git] / include / editeng / smallcaps.hxx
blob31b12dadf3aae9b5d7d6fa512249987afe0b3dd2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
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 .
19 #pragma once
21 #include <editeng/editengdllapi.h>
22 #include <rtl/ustring.hxx>
24 /*************************************************************************
25 * class SvxDoCapitals
26 * The virtual Method Do is called by SvxFont::DoOnCapitals alternately
27 * the uppercase and lowercase parts. The derivate of SvxDoCapitals fills
28 * this method with life.
29 *************************************************************************/
31 class EDITENG_DLLPUBLIC SvxDoCapitals
33 protected:
34 const OUString& rTxt;
35 const sal_Int32 nIdx;
36 const sal_Int32 nLen;
38 public:
39 SvxDoCapitals(const OUString& _rTxt, const sal_Int32 _nIdx, const sal_Int32 _nLen)
40 : rTxt(_rTxt)
41 , nIdx(_nIdx)
42 , nLen(_nLen)
46 virtual ~SvxDoCapitals() {}
48 virtual void DoSpace(const bool bDraw);
49 virtual void SetSpace();
50 virtual void Do(const OUString& rTxt, const sal_Int32 nIdx, const sal_Int32 nLen,
51 const bool bUpper)
52 = 0;
54 const OUString& GetTxt() const { return rTxt; }
55 sal_Int32 GetIdx() const { return nIdx; }
56 sal_Int32 GetLen() const { return nLen; }
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */