2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02: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 .
|
|
|
|
*/
|
2013-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_SOURCE_UI_INC_INSFNOTE_HXX
|
|
|
|
#define INCLUDED_SW_SOURCE_UI_INC_INSFNOTE_HXX
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
#include <svx/stddlg.hxx>
|
|
|
|
|
|
|
|
#include <vcl/button.hxx>
|
|
|
|
|
|
|
|
#include <vcl/edit.hxx>
|
2001-06-01 09:20:44 +00:00
|
|
|
#include <vcl/fixed.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
class SwWrtShell;
|
|
|
|
|
2012-11-29 00:07:04 +00:00
|
|
|
class VclFrame;
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwInsFootNoteDlg: public SvxStandardDialog
|
|
|
|
{
|
|
|
|
SwWrtShell &rSh;
|
|
|
|
|
2011-04-21 18:12:29 +02:00
|
|
|
// everything for the character(s)
|
2013-08-14 09:53:04 +02:00
|
|
|
OUString m_aFontName;
|
2013-10-21 11:31:31 +01:00
|
|
|
rtl_TextEncoding eCharSet;
|
2011-02-15 17:14:59 +01:00
|
|
|
sal_Bool bExtCharAvailable;
|
|
|
|
sal_Bool bEdit;
|
2012-11-29 00:07:04 +00:00
|
|
|
|
|
|
|
VclFrame* m_pNumberFrame;
|
|
|
|
RadioButton* m_pNumberAutoBtn;
|
|
|
|
RadioButton* m_pNumberCharBtn;
|
|
|
|
Edit* m_pNumberCharEdit;
|
|
|
|
PushButton* m_pNumberExtChar;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-04-21 18:12:29 +02:00
|
|
|
// everything for the selection footnote/endnote
|
2012-11-29 00:07:04 +00:00
|
|
|
RadioButton* m_pFtnBtn;
|
|
|
|
RadioButton* m_pEndNoteBtn;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-11-29 00:07:04 +00:00
|
|
|
PushButton* m_pOkBtn;
|
|
|
|
PushButton* m_pPrevBT;
|
|
|
|
PushButton* m_pNextBT;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2012-03-01 18:00:32 +01:00
|
|
|
DECL_LINK(NumberCharHdl, void *);
|
2012-11-29 00:07:04 +00:00
|
|
|
DECL_LINK(NumberEditHdl, void *);
|
2012-03-01 18:00:32 +01:00
|
|
|
DECL_LINK(NumberAutoBtnHdl, void *);
|
|
|
|
DECL_LINK(NumberExtCharHdl, void *);
|
2012-11-29 00:07:04 +00:00
|
|
|
DECL_LINK(NextPrevHdl, Button *);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
virtual void Apply();
|
|
|
|
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
public:
|
2011-01-17 15:06:54 +01:00
|
|
|
SwInsFootNoteDlg(Window * pParent, SwWrtShell &rSh, sal_Bool bEd = sal_False);
|
2000-09-18 16:15:01 +00:00
|
|
|
~SwInsFootNoteDlg();
|
2002-07-01 07:59:06 +00:00
|
|
|
|
2013-10-21 11:31:31 +01:00
|
|
|
rtl_TextEncoding GetCharSet() { return eCharSet; }
|
2012-11-29 00:07:04 +00:00
|
|
|
sal_Bool IsExtCharAvailable() { return bExtCharAvailable; }
|
2013-08-14 09:53:04 +02:00
|
|
|
OUString GetFontName() { return m_aFontName; }
|
2012-11-29 00:07:04 +00:00
|
|
|
sal_Bool IsEndNote() { return m_pEndNoteBtn->IsChecked(); }
|
2013-08-14 09:53:04 +02:00
|
|
|
OUString GetStr()
|
2002-07-01 07:59:06 +00:00
|
|
|
{
|
2012-11-29 00:07:04 +00:00
|
|
|
if ( m_pNumberCharBtn->IsChecked() )
|
|
|
|
return m_pNumberCharEdit->GetText();
|
2013-08-14 09:53:04 +02:00
|
|
|
return OUString();
|
2002-07-01 07:59:06 +00:00
|
|
|
}
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|