diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-03-23 16:57:09 +0000 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-17 16:39:56 +0200 |
commit | 0edb65a6fbc070eefd50dfa102374d15da4eb2dd (patch) | |
tree | 9f1b9d98a541c93deaba85a5509290e29051a77b /sc/source/ui/collab/contacts.cxx | |
parent | 0dae49a03c9b4816d8cdde69e30bcd2db2e30724 (diff) |
tubes: very early start of contacts dialog, in the wrong place too.
Diffstat (limited to 'sc/source/ui/collab/contacts.cxx')
-rw-r--r-- | sc/source/ui/collab/contacts.cxx | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/sc/source/ui/collab/contacts.cxx b/sc/source/ui/collab/contacts.cxx new file mode 100644 index 000000000000..ff3db987aca9 --- /dev/null +++ b/sc/source/ui/collab/contacts.cxx @@ -0,0 +1,73 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2012 Michael Meeks <michael.meeks@suse.com> (initial developer) + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#include "sal/config.h" + +#include <vector> +#include "collab.hxx" +#include <tubes/conference.hxx> +#include <vcl/syswin.hxx> +#include <svx/simptabl.hxx> + +// #define CONTACTS + +#ifdef CONTACTS_DLG +namespace { +class TubeContacts : SfxModelessDialog +{ + SvxSimpleTableContainer maListContainer; + SvxSimpleTable maList; + +public: + TubeContacts() : + SystemWindow( WINDOW_FLOATINGWINDOW, ), + maListContainer( this, CUI_RES( LB_JAVA ) ), + maList( maListContainer ), + { +ScResId( FL_PRINTAREA ) ), + + ResId aResId; + mpListContainer = new SvxSimpleTableContainer( this, aResId ); + SetMinOutputSizePixel( Size( 640, 480 ) ); + Show(); + } + virtual ~TubeContacts() {} +}; +} // anonymous namespace +#endif + +namespace tubes { +void createContacts() +{ +#ifdef CONTACTS_DLG + new TubeContacts(); +#endif +} +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |