2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2012-07-25 12:07:33 +02:00
|
|
|
|
|
|
|
#ifndef EE_SVXSWAFOPT_HXX
|
|
|
|
#define EE_SVXSWAFOPT_HXX
|
|
|
|
|
|
|
|
#include <o3tl/sorted_vector.hxx>
|
|
|
|
|
|
|
|
#include <tools/string.hxx>
|
2007-04-11 15:31:56 +00:00
|
|
|
|
|
|
|
#include <vcl/font.hxx>
|
2010-01-06 19:26:54 +01:00
|
|
|
#include "editeng/editengdllapi.h"
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2007-06-27 12:37:58 +00:00
|
|
|
class SmartTagMgr;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2012-07-25 12:07:33 +02:00
|
|
|
namespace editeng {
|
|
|
|
|
|
|
|
class EDITENG_DLLPUBLIC IAutoCompleteString
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
String m_String;
|
|
|
|
public:
|
|
|
|
explicit IAutoCompleteString(String const& rString) : m_String(rString) {}
|
|
|
|
virtual ~IAutoCompleteString() {}
|
|
|
|
String const& GetAutoCompleteString() const { return m_String; }
|
|
|
|
};
|
|
|
|
|
|
|
|
struct CompareAutoCompleteString
|
|
|
|
{
|
|
|
|
bool operator()(IAutoCompleteString *const& lhs,
|
|
|
|
IAutoCompleteString *const& rhs) const
|
|
|
|
{
|
|
|
|
return lhs->GetAutoCompleteString().CompareIgnoreCaseToAscii(
|
|
|
|
rhs->GetAutoCompleteString()) == COMPARE_LESS;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
class SortedAutoCompleteStrings
|
|
|
|
: public o3tl::sorted_vector<IAutoCompleteString*, CompareAutoCompleteString>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
~SortedAutoCompleteStrings() { DeleteAndDestroyAll(); }
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace editeng
|
|
|
|
|
2011-02-16 16:34:02 -05:00
|
|
|
// Class of options for AutoFormat
|
2010-01-06 19:26:54 +01:00
|
|
|
struct EDITENG_DLLPUBLIC SvxSwAutoFmtFlags
|
2007-04-11 15:31:56 +00:00
|
|
|
{
|
|
|
|
Font aBulletFont;
|
|
|
|
Font aByInputBulletFont;
|
2012-07-25 12:07:33 +02:00
|
|
|
/// only valid inside the Dialog!!!
|
|
|
|
const editeng::SortedAutoCompleteStrings * m_pAutoCompleteList;
|
2007-06-27 12:37:58 +00:00
|
|
|
SmartTagMgr* pSmartTagMgr;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
|
|
|
sal_Unicode cBullet;
|
|
|
|
sal_Unicode cByInputBullet;
|
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_uInt16 nAutoCmpltWordLen, nAutoCmpltListLen;
|
|
|
|
sal_uInt16 nAutoCmpltExpandKey;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_uInt8 nRightMargin;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bAutoCorrect : 1;
|
|
|
|
sal_Bool bCptlSttSntnc : 1;
|
|
|
|
sal_Bool bCptlSttWrd : 1;
|
|
|
|
sal_Bool bChkFontAttr : 1;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bChgUserColl : 1;
|
|
|
|
sal_Bool bChgEnumNum : 1;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bAFmtByInput : 1;
|
|
|
|
sal_Bool bDelEmptyNode : 1;
|
|
|
|
sal_Bool bSetNumRule : 1;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bChgOrdinalNumber : 1;
|
|
|
|
sal_Bool bChgToEnEmDash : 1;
|
|
|
|
sal_Bool bAddNonBrkSpace : 1;
|
|
|
|
sal_Bool bChgWeightUnderl : 1;
|
|
|
|
sal_Bool bSetINetAttr : 1;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bSetBorder : 1;
|
|
|
|
sal_Bool bCreateTable : 1;
|
|
|
|
sal_Bool bReplaceStyles : 1;
|
|
|
|
sal_Bool bDummy : 1;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bWithRedlining : 1;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bRightMargin : 1;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bAutoCompleteWords : 1;
|
|
|
|
sal_Bool bAutoCmpltCollectWords : 1;
|
|
|
|
sal_Bool bAutoCmpltEndless : 1;
|
2011-02-16 16:34:02 -05:00
|
|
|
// -- under NT here starts a new long
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bAutoCmpltAppendBlanc : 1;
|
|
|
|
sal_Bool bAutoCmpltShowAsTip : 1;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bAFmtDelSpacesAtSttEnd : 1;
|
|
|
|
sal_Bool bAFmtDelSpacesBetweenLines : 1;
|
|
|
|
sal_Bool bAFmtByInpDelSpacesAtSttEnd : 1;
|
|
|
|
sal_Bool bAFmtByInpDelSpacesBetweenLines : 1;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bAutoCmpltKeepList : 1;
|
2007-04-11 15:31:56 +00:00
|
|
|
|
|
|
|
// some dummies for any new options
|
2011-01-10 16:17:07 +01:00
|
|
|
sal_Bool bDummy6 : 1,
|
2007-04-11 15:31:56 +00:00
|
|
|
bDummy7 : 1,
|
|
|
|
bDummy8 : 1
|
|
|
|
;
|
|
|
|
|
|
|
|
SvxSwAutoFmtFlags();
|
|
|
|
SvxSwAutoFmtFlags( const SvxSwAutoFmtFlags& rAFFlags ) { *this = rAFFlags; }
|
|
|
|
SvxSwAutoFmtFlags& operator=( const SvxSwAutoFmtFlags& );
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|