1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ccoll.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
33 #include <svtools/poolitem.hxx>
34 #include <tools/string.hxx>
35 #include <sfx2/tabdlg.hxx>
37 #ifndef _FIXED_HXX //autogen
38 #include <vcl/fixed.hxx>
41 #ifndef _BUTTON_HXX //autogen
42 #include <vcl/button.hxx>
44 #include <svtools/svtabbx.hxx>
46 #ifndef _LSTBOX_HXX //autogen
47 #include <vcl/lstbox.hxx>
49 #include <tools/resary.hxx>
53 #include <rtl/string.hxx>
55 //***********************************************************
63 //***********************************************************
65 #define COND_COMMAND_COUNT 28
73 //***********************************************************
75 sal_Int16
GetCommandContextIndex( const rtl::OUString
&rContextName
);
76 rtl::OUString
GetCommandContextByIndex( sal_Int16 nIndex
);
78 //***********************************************************
80 class SW_DLLPUBLIC SwCondCollItem
: public SfxPoolItem
82 static CommandStruct aCmds
[COND_COMMAND_COUNT
];
84 String sStyles
[COND_COMMAND_COUNT
];
87 SwCondCollItem(USHORT nWhich
= FN_COND_COLL
);
92 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const;
93 virtual int operator==( const SfxPoolItem
& ) const;
95 static const CommandStruct
* GetCmds();
97 const String
& GetStyle(USHORT nPos
) const;
98 void SetStyle( const String
* pStyle
, USHORT nPos
);