diff options
-rw-r--r-- | sfx2/sdi/frmslots.sdi | 11 | ||||
-rw-r--r-- | svx/inc/rubydialog.hxx | 121 | ||||
-rw-r--r-- | svx/prj/d.lst | 1 | ||||
-rw-r--r-- | svx/source/dialog/makefile.mk | 7 | ||||
-rw-r--r-- | svx/source/dialog/rubydialog.cxx | 143 | ||||
-rw-r--r-- | svx/source/dialog/rubydialog.hrc | 70 | ||||
-rw-r--r-- | svx/source/dialog/rubydialog.src | 139 |
7 files changed, 489 insertions, 3 deletions
diff --git a/sfx2/sdi/frmslots.sdi b/sfx2/sdi/frmslots.sdi index 353a418aa2a9..6ef78aa0340c 100644 --- a/sfx2/sdi/frmslots.sdi +++ b/sfx2/sdi/frmslots.sdi @@ -2,7 +2,7 @@ shell SfxViewFrame (C) 1994-1995 StarDivision GmbH, Hamburg, Germany - $Author: hr $ $Date: 2000-09-18 16:52:25 $ $Revision: 1.1.1.1 $ + $Author: os $ $Date: 2001-01-10 15:55:44 $ $Revision: 1.2 $ $Logfile: T:/sfx2/sdi/frmslots.sdv $ $Workfile: FRMSLOTS.SDI $ =========================================================================*/ @@ -30,6 +30,12 @@ interface Window : Object ExecMethod = ChildWindowExecute ; StateMethod = ChildWindowState ; ] + //---------------------------------------------------------------------- + SID_RUBY_DIALOG + [ + ExecMethod = ChildWindowExecute ; + StateMethod = ChildWindowState ; + ] //---------------------------------------------------------------------- SID_NAVIGATOR // status(final|play) @@ -549,6 +555,9 @@ shell SfxViewFrame /*------------------------------------------------------------------------- $Log: not supported by cvs2svn $ + Revision 1.1.1.1 2000/09/18 16:52:25 hr + initial import + Revision 1.48 2000/09/12 10:42:32 mba ChildWindow slot all in SfxViewFrame diff --git a/svx/inc/rubydialog.hxx b/svx/inc/rubydialog.hxx new file mode 100644 index 000000000000..279f727e0922 --- /dev/null +++ b/svx/inc/rubydialog.hxx @@ -0,0 +1,121 @@ +/************************************************************************* + * + * $RCSfile: rubydialog.hxx,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: os $ $Date: 2001-01-10 15:59:20 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + + +#ifndef _SVX_RUBYDLG_HXX_ +#define _SVX_RUBYDLG_HXX_ + +#ifndef _SFX_CHILDWIN_HXX //autogen +#include <sfx2/childwin.hxx> +#endif + +#ifndef _BASEDLGS_HXX //autogen +#include <sfx2/basedlgs.hxx> +#endif + +#ifndef _SV_LSTBOX_HXX +#include <vcl/lstbox.hxx> +#endif +#ifndef _FIXED_HXX //autogen +#include <vcl/fixed.hxx> +#endif +#ifndef _SV_BUTTON_HXX +#include <vcl/button.hxx> +#endif + +class SvxRubyChildWindow : public SfxChildWindow +{ + public: + + SvxRubyChildWindow( Window*, USHORT, SfxBindings*, SfxChildWinInfo* ); + + SFX_DECL_CHILDWINDOW( SvxRubyChildWindow ); +}; +class SvxRubyDialog : public SfxFloatingWindow +{ + //TabListBox ?? + + CheckBox aAutoDetectionCB; + + FixedText aCharStyleFT; + ListBox aCharStyleLB; + PushButton aStylistPB; + + FixedText aPreviewFT; + Window aPreviewWin; + + OKButton aApplyPB; + PushButton aClosePB; + HelpButton aHelpPB; + + virtual void Resize(); + virtual BOOL Close(); + +public: + + SvxRubyDialog( SfxBindings *pBindings, SfxChildWindow *pCW, + Window* pParent, const ResId& rResId ); + ~SvxRubyDialog(); +}; + +#endif // _SVX_RUBYDLG_HXX_ + + diff --git a/svx/prj/d.lst b/svx/prj/d.lst index 8b174b948f62..3b25fa0eabb6 100644 --- a/svx/prj/d.lst +++ b/svx/prj/d.lst @@ -210,6 +210,7 @@ hedabu: ..\inc\pszctrl.hxx %_DEST%\inc%_EXT%\svx\pszctrl.hxx hedabu: ..\inc\rectenum.hxx %_DEST%\inc%_EXT%\svx\rectenum.hxx hedabu: ..\inc\relfld.hxx %_DEST%\inc%_EXT%\svx\relfld.hxx hedabu: ..\inc\rotmodit.hxx %_DEST%\inc%_EXT%\svx\rotmodit.hxx +hedabu: ..\inc\rubydialog.hxx %_DEST%\inc%_EXT%\svx\rubydialog.hxx hedabu: ..\inc\ruler.hxx %_DEST%\inc%_EXT%\svx\ruler.hxx hedabu: ..\inc\rulritem.hxx %_DEST%\inc%_EXT%\svx\rulritem.hxx hedabu: ..\inc\scene3d.hxx %_DEST%\inc%_EXT%\svx\scene3d.hxx diff --git a/svx/source/dialog/makefile.mk b/svx/source/dialog/makefile.mk index fcdb03e29562..2ff8c4c2e3e8 100644 --- a/svx/source/dialog/makefile.mk +++ b/svx/source/dialog/makefile.mk @@ -2,9 +2,9 @@ # # $RCSfile: makefile.mk,v $ # -# $Revision: 1.5 $ +# $Revision: 1.6 $ # -# last change: $Author: er $ $Date: 2000-12-20 11:42:13 $ +# last change: $Author: os $ $Date: 2001-01-10 16:00:52 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -168,6 +168,7 @@ CXXFILES = \ relfld.cxx \ rlrcitem.cxx \ rulritem.cxx \ + rubydialog.cxx \ simptabl.cxx \ spldlg.cxx \ splwrap.cxx \ @@ -236,6 +237,7 @@ SRC1FILES = \ postdlg.src \ prtqry.src \ ruler.src \ + rubydialog.src\ spldlg.src \ srchdlg.src \ srchxtra.src \ @@ -323,6 +325,7 @@ SLOFILES=\ $(SLO)$/relfld.obj \ $(SLO)$/rlrcitem.obj \ $(SLO)$/rulritem.obj \ + $(SLO)$/rubydialog.obj \ $(SLO)$/simptabl.obj \ $(SLO)$/spldlg.obj \ $(SLO)$/splwrap.obj \ diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx new file mode 100644 index 000000000000..e28fdd957b4d --- /dev/null +++ b/svx/source/dialog/rubydialog.cxx @@ -0,0 +1,143 @@ +/************************************************************************* + * + * $RCSfile: rubydialog.cxx,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: os $ $Date: 2001-01-10 16:00:13 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#pragma hdrstop + +#ifndef _SVX_RUBYDLG_HXX_ +#include <rubydialog.hxx> +#endif +#ifndef _SHL_HXX +#include <tools/shl.hxx> +#endif +#include <dialmgr.hxx> +#include <dialogs.hrc> +#include <rubydialog.hrc> +#ifndef _SFXAPP_HXX +#include <sfx2/app.hxx> +#endif + +SFX_IMPL_CHILDWINDOW( SvxRubyChildWindow, SID_RUBY_DIALOG ); +/* -----------------------------09.01.01 17:24-------------------------------- + + ---------------------------------------------------------------------------*/ +SvxRubyChildWindow::SvxRubyChildWindow( Window* pParent, USHORT nId, + SfxBindings* pBindings, SfxChildWinInfo* pInfo) : + SfxChildWindow(pParent, nId) +{ + pWindow = new SvxRubyDialog( pBindings, this, pParent, SVX_RES( RID_SVXDLG_RUBY ) ); + SvxRubyDialog* pDlg = (SvxRubyDialog*) pWindow; + + if ( pInfo->aSize.Width() && pInfo->aSize.Height() ) + pWindow->SetPosSizePixel( pInfo->aPos, pInfo->aSize ); + else + pWindow->SetPosPixel( Point() ); + + if ( pInfo->nFlags & SFX_CHILDWIN_ZOOMIN ) + pDlg->RollUp(); + + eChildAlignment = SFX_ALIGN_NOALIGNMENT; +} +/* -----------------------------10.01.01 13:53-------------------------------- + + ---------------------------------------------------------------------------*/ +SfxChildWinInfo SvxRubyChildWindow::GetInfo() const +{ + return SfxChildWindow::GetInfo(); +} +/* -----------------------------09.01.01 17:17-------------------------------- + + ---------------------------------------------------------------------------*/ +SvxRubyDialog::SvxRubyDialog( SfxBindings *pBindings, SfxChildWindow *pCW, + Window* pParent, const ResId& rResId ) : + SfxFloatingWindow( pBindings, pCW, pParent, rResId ), + aAutoDetectionCB(this, ResId(CB_AUTO_DETECT )), + aCharStyleFT(this, ResId(FT_CHAR_STYLE )), + aCharStyleLB(this, ResId(LB_CHAR_STYLE )), + aStylistPB(this, ResId(PB_STYLIST )), + aPreviewFT(this, ResId(FT_PREVIEW )), + aPreviewWin(this, ResId(WIN_PREVIEW )), + aApplyPB(this, ResId(PB_APPLY )), + aClosePB(this, ResId(PB_CLOSE )), + aHelpPB(this, ResId(PB_HELP )) +{ + FreeResource(); +} +/* -----------------------------09.01.01 17:17-------------------------------- + + ---------------------------------------------------------------------------*/ +SvxRubyDialog::~SvxRubyDialog() +{ +} +/* -----------------------------09.01.01 17:17-------------------------------- + + ---------------------------------------------------------------------------*/ +void SvxRubyDialog::Resize() +{ + SfxFloatingWindow::Resize(); +} +/* -----------------------------09.01.01 17:17-------------------------------- + + ---------------------------------------------------------------------------*/ +BOOL SvxRubyDialog::Close() +{ + return TRUE; +} + diff --git a/svx/source/dialog/rubydialog.hrc b/svx/source/dialog/rubydialog.hrc new file mode 100644 index 000000000000..d3dfbc4f943e --- /dev/null +++ b/svx/source/dialog/rubydialog.hrc @@ -0,0 +1,70 @@ +/************************************************************************* + * + * $RCSfile: rubydialog.hrc,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: os $ $Date: 2001-01-10 16:00:40 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#define CB_AUTO_DETECT 1 +#define FT_CHAR_STYLE 2 +#define LB_CHAR_STYLE 3 +#define PB_STYLIST 4 +#define FT_PREVIEW 5 +#define WIN_PREVIEW 6 +#define PB_APPLY 7 +#define PB_CLOSE 8 +#define PB_HELP 9 diff --git a/svx/source/dialog/rubydialog.src b/svx/source/dialog/rubydialog.src new file mode 100644 index 000000000000..5b666c6becaf --- /dev/null +++ b/svx/source/dialog/rubydialog.src @@ -0,0 +1,139 @@ +/************************************************************************* + * + * $RCSfile: rubydialog.src,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: os $ $Date: 2001-01-10 16:00:26 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (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.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#include <rubydialog.hrc> +#include "helpid.hrc" +#include "dialogs.hrc" + +FloatingWindow RID_SVXDLG_RUBY +{ + OutputSize = TRUE ; + Hide = TRUE ; + SVLook = TRUE ; + Pos = MAP_APPFONT ( 0 , 0 ) ; + Size = MAP_APPFONT ( 210 , 285 ) ; + Text = "Phonetisches Leitzeichen" ; + Text [ ENGLISH ] = "Ruby" ; + Sizeable = TRUE ; + Moveable = TRUE ; + Closeable = TRUE ; + Zoomable = TRUE ; + CheckBox CB_AUTO_DETECT + { + Pos = MAP_APPFONT ( 12 , 6 ) ; + Size = MAP_APPFONT ( 150 , 12 ) ; + Text = "Automatische Erkennung" ; + Text [ ENGLISH ] = "Auto detection" ; + }; + FixedText FT_CHAR_STYLE + { + Pos = MAP_APPFONT ( 12 , 100 ) ; + Size = MAP_APPFONT ( 150 , 12 ) ; + Text = "Zeichenvorlage fr Ruby-Text" ; + Text [ ENGLISH ] = "Character style for ruby text" ; + }; + ListBox LB_CHAR_STYLE + { + Pos = MAP_APPFONT ( 12 , 113) ; + Size = MAP_APPFONT ( 130 , 12 ) ; + DropDown = TRUE; + Border = TRUE; + }; + PushButton PB_STYLIST + { + Pos = MAP_APPFONT ( 145 , 112 ) ; + Size = MAP_APPFONT ( 50 , 12 ) ; + Text = "Stylist" ; + Text [ ENGLISH ] = "Stylist" ; + }; + FixedText FT_PREVIEW + { + Pos = MAP_APPFONT ( 12 , 126 ) ; + Size = MAP_APPFONT ( 195 , 12 ) ; + Text = "Vorschau:" ; + Text [ ENGLISH ] = "Preview:" ; + }; + Window WIN_PREVIEW + { + Pos = MAP_APPFONT ( 12 , 139 ) ; + Size = MAP_APPFONT ( 195 , 50 ) ; + }; + OKButton PB_APPLY + { + Pos = MAP_APPFONT ( 41 , 192 ) ; + Size = MAP_APPFONT ( 50 , 14 ) ; + Text = "bernehmen" ; + Text [ ENGLISH ] = "Apply" ; + }; + PushButton PB_CLOSE + { + Pos = MAP_APPFONT ( 94, 192 ) ; + Size = MAP_APPFONT ( 50 , 14 ) ; + Text = "Shlieen" ; + Text [ ENGLISH ] = "Close" ; + }; + HelpButton PB_HELP + { + Pos = MAP_APPFONT ( 147 , 192 ) ; + Size = MAP_APPFONT ( 50 , 14 ) ; + }; +}; + |