2010-10-14 08:30:41 +02: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 .
|
|
|
|
*/
|
2014-06-03 10:01:18 +02:00
|
|
|
#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_CNTTAB_HXX
|
|
|
|
#define INCLUDED_SW_SOURCE_UIBASE_INC_CNTTAB_HXX
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
#include <svx/stddlg.hxx>
|
|
|
|
#include <vcl/button.hxx>
|
|
|
|
#include <vcl/edit.hxx>
|
|
|
|
#include <vcl/fixed.hxx>
|
|
|
|
#include <vcl/field.hxx>
|
|
|
|
#include <vcl/lstbox.hxx>
|
|
|
|
#include <sfx2/tabdlg.hxx>
|
|
|
|
|
|
|
|
#include "tox.hxx"
|
|
|
|
#include <toxmgr.hxx>
|
|
|
|
#include <svx/checklbx.hxx>
|
2001-06-29 05:06:24 +00:00
|
|
|
#include <tools/resary.hxx>
|
2012-10-11 16:13:12 -04:00
|
|
|
#include <svtools/treelistbox.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <vcl/menubtn.hxx>
|
2001-06-06 09:41:26 +00:00
|
|
|
#include <svx/langbox.hxx>
|
2011-02-18 19:26:55 -08:00
|
|
|
|
2001-11-02 12:04:08 +00:00
|
|
|
#define TOX_PAGE_SELECT 1
|
|
|
|
#define TOX_PAGE_ENTRY 2
|
|
|
|
#define TOX_PAGE_STYLES 3
|
|
|
|
|
2013-09-02 09:29:47 +01:00
|
|
|
#define TO_CONTENT 1
|
|
|
|
#define TO_INDEX 2
|
|
|
|
#define TO_ILLUSTRATION 4
|
|
|
|
#define TO_TABLE 8
|
|
|
|
#define TO_USER 16
|
|
|
|
#define TO_OBJECT 32
|
|
|
|
#define TO_AUTHORITIES 64
|
2014-02-18 12:23:14 +05:30
|
|
|
#define TO_BIBLIOGRAPHY 128
|
2013-09-02 09:29:47 +01:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
struct CurTOXType
|
|
|
|
{
|
|
|
|
TOXTypes eType;
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 nIndex; //for TOX_USER only
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2015-03-04 20:27:49 +00:00
|
|
|
bool operator==(const CurTOXType& rCmp)
|
|
|
|
{
|
|
|
|
return eType == rCmp.eType && nIndex == rCmp.nIndex;
|
|
|
|
}
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_uInt16 GetFlatIndex() const;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2007-11-12 15:31:56 +00:00
|
|
|
CurTOXType () : eType (TOX_INDEX), nIndex (0) {};
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
CurTOXType (TOXTypes t, sal_uInt16 i) : eType (t), nIndex (i) {};
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class SwOLENames : public Resource
|
|
|
|
{
|
|
|
|
ResStringArray aNamesAry;
|
|
|
|
public:
|
|
|
|
SwOLENames(const ResId& rResId) :
|
|
|
|
Resource(rResId),
|
2013-11-29 13:03:27 +00:00
|
|
|
aNamesAry(ResId(1,*rResId.GetResMgr()))
|
|
|
|
{
|
|
|
|
FreeResource();
|
|
|
|
}
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
ResStringArray& GetNames() { return aNamesAry;}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2004-05-26 09:17:24 +00:00
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|