summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 17:25:29 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 17:25:29 +0000
commitd99f03766d453b7d088e1b33734078ec09b58a6e (patch)
treeeb02ae756255b39f4c1a00c4f6c7cde3cd740946 /svx/source
parent770caf93e20995bad5264f0687f20f9536f17dc7 (diff)
INTEGRATION: CWS dialogdiet (1.2.20); FILE MERGED
2004/01/23 11:55:26 mba 1.2.20.1: #i24117#: new abstract dialog classes
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/dialog/dlgfact.cxx1616
-rw-r--r--svx/source/dialog/dlgfact.hxx578
2 files changed, 2138 insertions, 56 deletions
diff --git a/svx/source/dialog/dlgfact.cxx b/svx/source/dialog/dlgfact.cxx
index a5575f8f0a89..3b6252005598 100644
--- a/svx/source/dialog/dlgfact.cxx
+++ b/svx/source/dialog/dlgfact.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dlgfact.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2004-01-05 11:31:42 $
+ * last change: $Author: hr $ $Date: 2004-02-03 18:25:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -61,77 +61,684 @@
#include "dlgfact.hxx"
-#include <sfx2/tabdlg.hxx>
-
// class ResId
#include <tools/rc.hxx>
+#include <sfx2/basedlgs.hxx>
+
+//#include "dialmgr.hxx"
+#include "dialogs.hrc"
+#include "fmresids.hrc"
+#include "gallery.hrc"
+#include "imapdlg.hrc"
+// dialogs and tabpages
+#include "dstribut.hxx"
+#include "cuigaldlg.hxx"
+#include "cuiimapwnd.hxx"
+#include "hlmarkwn.hxx"
+#include "cuicharmap.hxx"
+#include "srchxtra.hxx"
+#include "textanim.hxx"
+#include "autocdlg.hxx"
+#include "treeopt.hxx"
+#include "internationaloptions.hxx"
+#include "labdlg.hxx"
+#include "dstribut.hxx"
+#ifndef SVX_HANGUL_HANJA_DLG_HXX
+#include "hangulhanjadlg.hxx" //add for HangulHanjaConversionDialog
+#endif
+#ifndef _SVX_SHOWCOLS_HXX
+#include "showcols.hxx" //add for FmShowColsDialog
+#endif
+#include "zoom.hxx" //add for SvxZoomDialog
+#ifndef _CUI_GALDLG_HXX_
+#include "cuigaldlg.hxx" //add for Gallery 6 Dialogs and 1 TabPage
+#endif
+#ifndef _CUI_IMAPWND_HXX
+#include "cuiimapwnd.hxx" //add for URLDlg
+#endif
+#include "hlmarkwn.hxx" //add for SvxHlinkDlgMarkWnd
+#include "srchxtra.hxx" //add for SvxSearchFormatDialog
+#include "transfrm.hxx" //add for SvxTransformTabDialog
+#include "bbdlg.hxx" //add for SvxBorderBackgroundDlg
+#include "cuisrchdlg.hxx" //add for SvxJSearchOptionsDialog
+#include "cuitbxform.hxx" //add for FmInputRecordNoDialog
+#include "taborder.hxx" //add for FmTabOrderDlg
+#include "optdict.hxx" //add for SvxNewDictionaryDialog
+#include "dlgname.hxx" //add for SvxNameDialog & SvxMessDialog
+#include "multipat.hxx" //add for SvxMultiPathDialog
+#include "multifil.hxx" //add for SvxMultiFileDialog
+#include "cuihyperdlg.hxx" //add for SvxHpLinkDlg
+#include "cuifmsearch.hxx" //add for FmSearchDialog
+#include "cuigrfflt.hxx" //add for GraphicFilterDialog
+#include "cuitabarea.hxx" //add for SvxAreaTabDialog
+#include "cuitabline.hxx" //add for SvxLineTabDialog
+#include "measure.hxx" //add for SvxMeasureDialog
+#include "connect.hxx" //add for SvxConnectionDialog
+#include "optgenrl.hxx" //add for SvxGeneralTabPage
+using namespace svx;
// AbstractTabDialog implementations just forwards everything to the dialog
-USHORT AbstractTabDialog::Execute()
+IMPL_ABSTDLG_BASE(VclAbstractDialog_Impl)
+IMPL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractTabDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxZoomDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSearchProgress_Impl);
+IMPL_ABSTDLG_BASE(AbstractTakeProgress_Impl);
+IMPL_ABSTDLG_BASE(AbstractTitleDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractURLDlg_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxCharacterMap_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxMultiFileDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl);
+IMPL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl);
+IMPL_ABSTDLG_BASE(AbstractSfxSingleTabDialog_Impl);
+
+void AbstractTabDialog_Impl::SetCurPageId( USHORT nId )
+{
+ pDlg->SetCurPageId( nId );
+}
+
+const SfxItemSet* AbstractTabDialog_Impl::GetOutputItemSet() const
+{
+ return pDlg->GetOutputItemSet();
+}
+//add by CHINA001
+const USHORT* AbstractTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
+{
+ return pDlg->GetInputRanges( pItem );
+}
+//add by CHINA001
+void AbstractTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
+{
+ pDlg->SetInputSet( pInSet );
+}
+//From class Window.
+void AbstractTabDialog_Impl::SetText( const XubString& rStr )
+{
+ pDlg->SetText( rStr );
+}
+String AbstractTabDialog_Impl::GetText() const
{
- return pDlg->Execute();
+ return pDlg->GetText();
}
-void AbstractTabDialog::Show( BOOL bShow )
+// AbstractTabDialog_Impl end
+
+//for SvxDistributeDialog begin
+SvxDistributeHorizontal AbstractSvxDistributeDialog_Impl::GetDistributeHor()const
+{
+ return pDlg->GetDistributeHor();
+}
+SvxDistributeVertical AbstractSvxDistributeDialog_Impl::GetDistributeVer()const
{
- pDlg->Show( bShow );
+ return pDlg->GetDistributeVer();
}
+//for SvxDistributeDialog end
-String AbstractTabDialog::GetData()
+// for HangulHanjaConversionDialog begin
+void AbstractHangulHanjaConversionDialog_Impl::EndDialog(long nResult)
{
- return String();
+ pDlg->EndDialog(nResult);
+}
+void AbstractHangulHanjaConversionDialog_Impl::SetByCharacter( sal_Bool _bByCharacter )
+{
+ pDlg->SetByCharacter(_bByCharacter);
}
-void AbstractTabDialog::SetCurrentPageId( USHORT nId )
+void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormat( HangulHanjaConversion::ConversionFormat _eType )
{
- pDlg->SetCurPageId( nId );
+ pDlg->SetConversionFormat(_eType);
+}
+
+void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreHdl( const Link& _rHdl )
+{
+ pDlg->SetIgnoreHdl(_rHdl );
+}
+
+void AbstractHangulHanjaConversionDialog_Impl::SetIgnoreAllHdl( const Link& _rHdl )
+{
+ pDlg->SetIgnoreAllHdl(_rHdl );
+}
+
+void AbstractHangulHanjaConversionDialog_Impl::SetChangeHdl( const Link& _rHdl )
+{
+ pDlg->SetChangeHdl(_rHdl );
+}
+
+void AbstractHangulHanjaConversionDialog_Impl::SetChangeAllHdl( const Link& _rHdl )
+{
+ pDlg->SetChangeAllHdl(_rHdl );
+}
+
+void AbstractHangulHanjaConversionDialog_Impl::SetClickByCharacterHdl( const Link& _rHdl )
+{
+ pDlg->SetClickByCharacterHdl(_rHdl );
+}
+
+void AbstractHangulHanjaConversionDialog_Impl::SetConversionFormatChangedHdl( const Link& _rHdl )
+{
+ pDlg->SetConversionFormatChangedHdl(_rHdl );
+}
+void AbstractHangulHanjaConversionDialog_Impl::SetFindHdl( const Link& _rHdl )
+{
+ pDlg->SetFindHdl(_rHdl );
+}
+
+sal_Bool AbstractHangulHanjaConversionDialog_Impl::GetUseBothDirections( ) const
+{
+ return pDlg->GetUseBothDirections();
+}
+void AbstractHangulHanjaConversionDialog_Impl::SetCurrentString(
+ const String& _rNewString,
+ const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rSuggestions,
+ bool _bOriginatesFromDocument
+ )
+{
+ pDlg->SetCurrentString(_rNewString,_rSuggestions,_bOriginatesFromDocument);
+}
+String AbstractHangulHanjaConversionDialog_Impl::GetCurrentString( ) const
+{
+ return pDlg->GetCurrentString();
+}
+HangulHanjaConversion::ConversionFormat AbstractHangulHanjaConversionDialog_Impl::GetConversionFormat( ) const
+{
+ return pDlg->GetConversionFormat();
}
-const SfxItemSet* AbstractTabDialog::GetOutputItemSet() const
+void AbstractHangulHanjaConversionDialog_Impl::FocusSuggestion( )
+{
+ pDlg->FocusSuggestion();
+}
+
+String AbstractHangulHanjaConversionDialog_Impl::GetCurrentSuggestion( ) const
+{
+ return pDlg->GetCurrentSuggestion();
+}
+
+// for HangulHanjaConversionDialog end
+// for FmShowColsDialog begin
+void AbstractFmShowColsDialog_Impl::SetColumns(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer>& xCols)
+{
+ pDlg->SetColumns(xCols);
+}
+
+//for FmShowColsDialog end
+
+//for SvxZoomDialog begin
+void AbstractSvxZoomDialog_Impl::SetLimits( USHORT nMin, USHORT nMax )
+{
+ pDlg->SetLimits( nMin, nMax );
+}
+
+void AbstractSvxZoomDialog_Impl::HideButton( USHORT nBtnId )
+{
+ pDlg->HideButton( nBtnId );
+}
+
+const SfxItemSet* AbstractSvxZoomDialog_Impl::GetOutputItemSet() const
{
return pDlg->GetOutputItemSet();
}
-AbstractTabDialog::~AbstractTabDialog()
+//for SvxZoomDialog end
+
+//for SvxSpellCheckDialog begin
+//STRIP001 void AbstractSvxSpellCheckDialog_Impl::SetNewEditWord( const String& _rNew )
+//STRIP001 {
+//STRIP001 return pDlg->SetNewEditWord(_rNew );
+//STRIP001 }
+//STRIP001
+//STRIP001 void AbstractSvxSpellCheckDialog_Impl::SetLanguage( sal_uInt16 nLang )
+//STRIP001 {
+//STRIP001 return pDlg->SetLanguage( nLang );
+//STRIP001 }
+//STRIP001
+//STRIP001 void AbstractSvxSpellCheckDialog_Impl::HideAutoCorrect()
+//STRIP001 {
+//STRIP001 return pDlg->HideAutoCorrect();
+//STRIP001 }
+//STRIP001
+//STRIP001 String AbstractSvxSpellCheckDialog_Impl::GetNewEditWord()
+//STRIP001 {
+//STRIP001 return pDlg->GetNewEditWord();
+//STRIP001 }
+//STRIP001
+//STRIP001 void AbstractSvxSpellCheckDialog_Impl::SetNewEditWord( const String& _rNew )
+//STRIP001 {
+//STRIP001 return pDlg->SetNewEditWord( _rNew );
+//STRIP001 }
+//STRIP001
+//for SvxSpellCheckDialog end
+
+//for SearchProgress begin
+void AbstractSearchProgress_Impl::Update()
+{
+ pDlg->Update();
+}
+
+void AbstractSearchProgress_Impl::Sync()
+{
+ pDlg-> Sync();
+}
+
+void AbstractSearchProgress_Impl::SetFileType( const String& rType )
+{
+ pDlg->SetFileType( rType );
+}
+
+void AbstractSearchProgress_Impl::SetDirectory( const INetURLObject& rURL )
+{
+ pDlg->SetDirectory( rURL );
+}
+PLinkStub AbstractSearchProgress_Impl::GetLinkStubCleanUpHdl()
+{
+ return SearchProgress::LinkStubCleanUpHdl;
+}
+//for SearchProgress end
+
+//for TakeProgress begin
+void AbstractTakeProgress_Impl::Update()
+{
+ pDlg->Update();
+}
+
+void AbstractTakeProgress_Impl::Sync()
+{
+ pDlg-> Sync();
+}
+
+void AbstractTakeProgress_Impl::SetFile( const INetURLObject& rURL )
+{
+ pDlg->SetFile( rURL );
+}
+
+PLinkStub AbstractTakeProgress_Impl::GetLinkStubCleanUpHdl()
+{
+ return TakeProgress::LinkStubCleanUpHdl;
+}
+//for TakeProgress end
+
+//for TitleDialog begin
+String AbstractTitleDialog_Impl::GetTitle() const
+{
+ return pDlg->GetTitle();
+}
+//for TitleDialog end
+
+//for GalleryIdDialog begin
+ULONG AbstractGalleryIdDialog_Impl::GetId() const
+{
+ return pDlg->GetId();
+}
+//for GalleryIdDialog end
+
+//for VclAbstracRefreshableDialog begin
+void VclAbstractRefreshableDialog_Impl::Update()
+{
+ pDlg->Update();
+}
+
+void VclAbstractRefreshableDialog_Impl::Sync()
+{
+ pDlg-> Sync();
+}
+//for VclAbstracRefreshableDialog end
+
+//for URLDlg begin
+String AbstractURLDlg_Impl::GetURL() const
+{
+ return pDlg->GetURL();
+}
+
+String AbstractURLDlg_Impl::GetDescription() const
+{
+ return pDlg->GetDescription();
+}
+
+String AbstractURLDlg_Impl::GetTarget() const
+{
+ return pDlg-> GetTarget();
+}
+
+String AbstractURLDlg_Impl::GetName() const
+{
+ return pDlg-> GetName();
+}
+//for URLDlg end
+
+// AbstractSvxHlinkDlgMarkWnd_Impl begin
+
+void AbstractSvxHlinkDlgMarkWnd_Impl::Hide( USHORT nFlags )
+{
+ ((Window*)pDlg)->Hide( nFlags );
+}
+
+void AbstractSvxHlinkDlgMarkWnd_Impl::SetSizePixel( const Size& rNewSize )
+{
+ pDlg->SetSizePixel( rNewSize );
+}
+
+Size AbstractSvxHlinkDlgMarkWnd_Impl::GetSizePixel() const
+{
+ return pDlg->GetSizePixel();
+}
+
+BOOL AbstractSvxHlinkDlgMarkWnd_Impl::IsVisible( ) const
+{
+ return (( Window* )pDlg)->IsVisible();
+}
+
+void AbstractSvxHlinkDlgMarkWnd_Impl::Invalidate( USHORT nFlags )
+{
+ (( Window* )pDlg)->Invalidate(nFlags);
+}
+
+BOOL AbstractSvxHlinkDlgMarkWnd_Impl::MoveTo( Point aNewPos )const
+{
+ return pDlg->MoveTo(aNewPos);
+}
+
+BOOL AbstractSvxHlinkDlgMarkWnd_Impl::ConnectToDialog( BOOL bDoit )const
+{
+ return pDlg->ConnectToDialog(bDoit);
+}
+
+void AbstractSvxHlinkDlgMarkWnd_Impl::RefreshTree ( String aStrURL )
+{
+ pDlg->RefreshTree(aStrURL);
+}
+
+void AbstractSvxHlinkDlgMarkWnd_Impl::SelectEntry ( String aStrMark )
+{
+ pDlg->SelectEntry(aStrMark);
+}
+
+USHORT AbstractSvxHlinkDlgMarkWnd_Impl::SetError( USHORT nError)
+{
+ return pDlg->SetError(nError);
+}
+
+// AbstractSvxHlinkDlgMarkWnd_Impl end
+
+// AbstractSvxCharacterMap_Impl begin
+void AbstractSvxCharacterMap_Impl::SetText( const XubString& rStr )
+{
+ pDlg->SetText( rStr );
+}
+
+void AbstractSvxCharacterMap_Impl::DisableFontSelection()
+{
+ pDlg->DisableFontSelection();
+}
+
+const Font& AbstractSvxCharacterMap_Impl::GetCharFont() const
+{
+ return pDlg->GetCharFont();
+}
+
+void AbstractSvxCharacterMap_Impl::SetCharFont( const Font& rFont )
+{
+ pDlg->SetCharFont( rFont );
+}
+
+void AbstractSvxCharacterMap_Impl::SetFont( const Font& rFont )
+{
+ pDlg->SetFont( rFont );
+}
+
+void AbstractSvxCharacterMap_Impl::SetChar( sal_Unicode c )
+{
+ pDlg->SetChar( c );
+}
+
+sal_Unicode AbstractSvxCharacterMap_Impl::GetChar() const
+{
+ return pDlg->GetChar();
+}
+
+String AbstractSvxCharacterMap_Impl::GetCharacters() const
+{
+ return pDlg->GetCharacters();
+}
+
+// AbstractSvxCharacterMap_Impl end
+
+//for SvxSearchSimilarityDialog begin
+USHORT AbstractSvxSearchSimilarityDialog_Impl::GetOther()
+{
+ return pDlg->GetOther();
+}
+
+USHORT AbstractSvxSearchSimilarityDialog_Impl::GetShorter()
+{
+ return pDlg->GetShorter();
+}
+
+USHORT AbstractSvxSearchSimilarityDialog_Impl::GetLonger()
+{
+ return pDlg-> GetLonger();
+}
+
+BOOL AbstractSvxSearchSimilarityDialog_Impl::IsRelaxed()
+{
+ return pDlg-> IsRelaxed();
+}
+//for SvxSearchSimilarityDialog end
+
+//for SvxJSearchOptionsDialog begin
+INT32 AbstractSvxJSearchOptionsDialog_Impl::GetTransliterationFlags() const
+{
+ return pDlg->GetTransliterationFlags();
+}
+//for SvxJSearchOptionsDialog end
+
+//for FmInputRecordNoDialog begin
+void AbstractFmInputRecordNoDialog_Impl::SetValue(double dNew)
+{
+ pDlg->SetValue(dNew);
+}
+
+long AbstractFmInputRecordNoDialog_Impl::GetValue() const
+{
+ return pDlg->GetValue();
+}
+//for FmInputRecordNoDialog end
+
+//for SvxNewDictionaryDialog begin
+::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic2::XDictionary1 > AbstractSvxNewDictionaryDialog_Impl::GetNewDictionary()
+{
+ return pDlg->GetNewDictionary();
+}
+//for SvxNewDictionaryDialog end
+
+//for SvxNameDialog begin
+void AbstractSvxNameDialog_Impl::GetName( String& rName )
+{
+ pDlg->GetName( rName );
+}
+void AbstractSvxNameDialog_Impl::SetCheckNameHdl( const Link& rLink, bool bCheckImmediately )
+{
+ pDlg->SetCheckNameHdl( rLink, bCheckImmediately );
+}
+void AbstractSvxNameDialog_Impl::SetEditHelpId(ULONG nHelpId)
+{
+ pDlg->SetEditHelpId( nHelpId );
+}
+void AbstractSvxNameDialog_Impl::SetHelpId( ULONG nHelpId )
+{
+ pDlg->SetHelpId( nHelpId );
+}
+void AbstractSvxNameDialog_Impl::SetText( const XubString& rStr )
+{
+ pDlg->SetText( rStr );
+}
+//for SvxNameDialog end
+
+//for SvxMessDialog begin
+void AbstractSvxMessDialog_Impl::SetButtonText( USHORT nBtnId, const String& rNewTxt )
+{
+ pDlg->SetButtonText( nBtnId, rNewTxt );
+}
+//for SvxMessDialog end
+
+//for SvxMultiPathDialog begin
+String AbstractSvxMultiPathDialog_Impl::GetPath() const
+{
+ return pDlg->GetPath();
+}
+
+void AbstractSvxMultiPathDialog_Impl::SetPath( const String& rPath )
+{
+ pDlg->SetPath( rPath );
+}
+//for SvxMultiPathDialog end
+
+//for SvxMultiFileDialog begin
+String AbstractSvxMultiFileDialog_Impl::GetPath() const
+{
+ return pDlg->GetPath();
+}
+
+void AbstractSvxMultiFileDialog_Impl::SetPath( const String& rPath )
+{
+ pDlg->SetPath( rPath );
+}
+
+String AbstractSvxMultiFileDialog_Impl::GetFiles() const
+{
+ return pDlg->GetFiles();
+}
+
+void AbstractSvxMultiFileDialog_Impl::SetFiles( const String& rPath )
+{
+ pDlg->SetFiles( rPath );
+}
+
+void AbstractSvxMultiFileDialog_Impl::SetClassPathMode()
+{
+ pDlg->SetClassPathMode();
+}
+
+void AbstractSvxMultiFileDialog_Impl::SetHelpId( ULONG nHelpId )
+{
+ pDlg->SetHelpId( nHelpId );
+}
+//for SvxMultiFileDialog end
+
+//for SvxHpLinkDlg begin
+Window * AbstractSvxHpLinkDlg_Impl::GetWindow()
{
- delete pDlg;
+ return (Window *)pDlg;
}
+//for SvxHpLinkDlg end
+
-USHORT AbstractDialog::Execute()
+//for FmSearchDialog begin
+void AbstractFmSearchDialog_Impl::SetFoundHandler(const Link& lnk)
+{
+ pDlg->SetFoundHandler(lnk);
+}
+void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link& lnk)
{
- return pDlg->Execute();
+ pDlg->SetCanceledNotFoundHdl(lnk);
}
+void AbstractFmSearchDialog_Impl::SetActiveField(const String& strField)
+{
+ pDlg->SetActiveField(strField);
+}
+//for FmSearchDialog end
-void AbstractDialog::Show( BOOL bShow )
+//for GraphicFilterDialog begin
+Graphic AbstractGraphicFilterDialog_Impl::GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY )
+{
+ return pDlg->GetFilteredGraphic( rGraphic, fScaleX, fScaleY );
+}
+//for GraphicFilterDialog end
+
+// AbstractSvxAreaTabDialog implementations just forwards everything to the dialog
+void AbstractSvxAreaTabDialog_Impl::SetCurPageId( USHORT nId )
+{
+ pDlg->SetCurPageId( nId );
+}
+
+const SfxItemSet* AbstractSvxAreaTabDialog_Impl::GetOutputItemSet() const
+{
+ return pDlg->GetOutputItemSet();
+}
+//add by CHINA001
+const USHORT* AbstractSvxAreaTabDialog_Impl::GetInputRanges(const SfxItemPool& pItem )
+{
+ return pDlg->GetInputRanges( pItem );
+}
+//add by CHINA001
+void AbstractSvxAreaTabDialog_Impl::SetInputSet( const SfxItemSet* pInSet )
+{
+ pDlg->SetInputSet( pInSet );
+}
+//From class Window.
+void AbstractSvxAreaTabDialog_Impl::SetText( const XubString& rStr )
+{
+ pDlg->SetText( rStr );
+}
+String AbstractSvxAreaTabDialog_Impl::GetText() const
{
- pDlg->Show( bShow );
+ return pDlg->GetText();
}
-String AbstractDialog::GetData()
+void AbstractSvxAreaTabDialog_Impl::DontDeleteColorTable()
{
- return String();
+ return pDlg->DontDeleteColorTable();
}
+// AbstractSvxAreaTabDialog_Impl end
-AbstractDialog::~AbstractDialog()
+// add SvxMeasureDialog & SvxConnectionDialog begin
+const SfxItemSet* AbstractSfxSingleTabDialog_Impl::GetOutputItemSet() const
{
- delete pDlg;
+ return pDlg->GetOutputItemSet();
}
+// SvxMeasureDialog & SvxConnectionDialog begin end
+//--------------------------------------------------------------
// Create dialogs with simplest interface
-VclAbstractDialog* AbstractDialogFactory::CreateVclDialog( Window* pParent, const ResId& rResId )
+VclAbstractDialog* AbstractDialogFactory_Impl::CreateVclDialog( Window* pParent, const ResId& rResId )
{
Dialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case SID_OPTIONS_TREEDIALOG :
+ pDlg = new OfaTreeOptionsDialog( pParent );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new VclAbstractDialog_Impl( pDlg );
return 0;
}
// dialogs that use SfxBindings
-VclAbstractDialog* AbstractDialogFactory::CreateSfxDialog( Window* pParent, const SfxBindings& rBindings, const ResId& rResId )
+VclAbstractDialog* AbstractDialogFactory_Impl::CreateSfxDialog( Window* pParent, const SfxBindings& rBindings, const ResId& rResId )
{
return 0;
}
// TabDialog outside the drawing layer
-SfxAbstractTabDialog* AbstractDialogFactory::CreateTabDialog( const ResId& rResId,
+SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabDialog( const ResId& rResId,
Window* pParent,
const SfxItemSet* pAttrSet,
SfxViewFrame* pViewFrame,
@@ -139,27 +746,978 @@ SfxAbstractTabDialog* AbstractDialogFactory::CreateTabDialog( const ResId& rResI
const String *pUserButtonText )
{
SfxTabDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_OFA_AUTOCORR_DLG :
+ pDlg = new OfaAutoCorrDlg( pParent, pAttrSet );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractTabDialog_Impl( pDlg );
return 0;
}
// TabDialog that use functionality of the drawing layer
-SfxAbstractTabDialog* AbstractDialogFactory::CreateDialog( Window* pParent,
+SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTextTabDialog( Window* pParent,
const SfxItemSet* pAttrSet,
const ResId& rResId,
SdrView* pView,
SdrModel* pModel )
{
SfxTabDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_TEXT :
+ pDlg = new SvxTextTabDialog( pParent, pAttrSet, pView );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractTabDialog_Impl( pDlg );
+ return 0;
+}
+
+//TabDialog that use functionality of the drawing layer and add AnchorTypes -- for SvxCaptionTabDialog CHINA001
+SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateCaptionDialog( Window* pParent,
+ const SdrView* pView,
+ const ResId& rResId,
+ USHORT nAnchorTypes )
+{
+ SfxTabDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_CAPTION :
+ pDlg = new SvxCaptionTabDialog( pParent, pView, nAnchorTypes );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractTabDialog_Impl( pDlg );
+ return 0;
+}
+
+AbstractSvxDistributeDialog* AbstractDialogFactory_Impl::CreateSvxDistributeDialog(Window* pParent,
+ const SfxItemSet& rAttr,
+ const ResId& rResId,
+ SvxDistributeHorizontal eHor ,
+ SvxDistributeVertical eVer)
+{
+ SvxDistributeDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXPAGE_DISTRIBUTE :
+ pDlg = new SvxDistributeDialog( pParent, rAttr, eHor, eVer);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxDistributeDialog_Impl( pDlg );
+ return 0;
+}
+
+AbstractHangulHanjaConversionDialog* AbstractDialogFactory_Impl::CreateHangulHanjaConversionDialog(Window* pParent,
+ HangulHanjaConversion::ConversionDirection _ePrimaryDirection,
+ const ResId& rResId)
+{
+ HangulHanjaConversionDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVX_MDLG_HANGULHANJA :
+ pDlg = new HangulHanjaConversionDialog( pParent, _ePrimaryDirection);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractHangulHanjaConversionDialog_Impl( pDlg );
+ return 0;
+}
+
+AbstractFmShowColsDialog * AbstractDialogFactory_Impl::CreateFmShowColsDialog( Window* pParent, //add for FmShowColsDialog
+ const ResId& rResId)
+{
+ FmShowColsDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVX_DLG_SHOWGRIDCOLUMNS :
+ pDlg = new FmShowColsDialog( pParent);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractFmShowColsDialog_Impl( pDlg );
+ return 0;
+}
+AbstractSvxZoomDialog * AbstractDialogFactory_Impl::CreateSvxZoomDialog( Window* pParent, //add for SvxZoomDialog
+ const SfxItemSet& rCoreSet,
+ const ResId& rResId)
+{
+ SvxZoomDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_ZOOM :
+ pDlg = new SvxZoomDialog( pParent, rCoreSet);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxZoomDialog_Impl( pDlg );
return 0;
}
+//CHINA001 GalleryDialog start
+VclAbstractRefreshableDialog * AbstractDialogFactory_Impl::CreateActualizeProgressDialog( Window* pParent, //add for ActualizeProgress
+ GalleryTheme* pThm,
+ const ResId& rResId)
+{
+ Dialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_GALLERY_ACTUALIZE_PROGRESS :
+ pDlg = new ActualizeProgress( pParent, pThm);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new VclAbstractRefreshableDialog_Impl( pDlg );
+ return 0;
+}
+
+AbstractSearchProgress * AbstractDialogFactory_Impl::CreateSearchProgressDialog( Window* pParent, //add for SearchProgress
+ const INetURLObject& rStartURL,
+ const ResId& rResId)
+{
+ SearchProgress* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_GALLERY_SEARCH_PROGRESS :
+ pDlg = new SearchProgress( pParent, rStartURL);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSearchProgress_Impl( pDlg );
+ return 0;
+}
+
+AbstractTakeProgress * AbstractDialogFactory_Impl::CreateTakeProgressDialog( Window* pParent, //add for TakeProgress
+ const ResId& rResId)
+{
+ TakeProgress* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_GALLERY_TAKE_PROGRESS :
+ pDlg = new TakeProgress( pParent );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractTakeProgress_Impl( pDlg );
+ return 0;
+}
+
+AbstractTitleDialog * AbstractDialogFactory_Impl::CreateTitleDialog( Window* pParent, //add for TitleDialog
+ const String& rOldText,
+ const ResId& rResId)
+{
+ TitleDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_GALLERY_TITLE :
+ pDlg = new TitleDialog( pParent, rOldText);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractTitleDialog_Impl( pDlg );
+ return 0;
+}
+
+AbstractGalleryIdDialog * AbstractDialogFactory_Impl::CreateGalleryIdDialog( Window* pParent, //add for SvxZoomDialog
+ GalleryTheme* pThm,
+ const ResId& rResId)
+{
+ GalleryIdDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_GALLERY_THEMEID :
+ pDlg = new GalleryIdDialog( pParent, pThm);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractGalleryIdDialog_Impl( pDlg );
+ return 0;
+}
+
+VclAbstractDialog * AbstractDialogFactory_Impl::CreateGalleryThemePropertiesDialog( Window* pParent, //add for GalleryThemeProperties
+ ExchangeData* pData,
+ SfxItemSet* pItemSet,
+ const ResId& rResId)
+{
+ Dialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXTABDLG_GALLERYTHEME :
+ pDlg = new GalleryThemeProperties( pParent, pData, pItemSet);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new VclAbstractDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 GalleryDialog end
+
+AbstractURLDlg * AbstractDialogFactory_Impl::CreateURLDialog( Window* pParent, //add for URLDlg
+ const String& rURL, const String& rDescription,
+ const String& rTarget, const String& rName,
+ TargetList& rTargetList,
+ const ResId& rResId)
+{
+ URLDlg* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_IMAPURL :
+ pDlg = new URLDlg( pParent, rURL, rDescription, rTarget, rName, rTargetList);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractURLDlg_Impl( pDlg );
+ return 0;
+}
+//CHINA001 URLDlg end
+
+//CHINA001 SvxHlinkDlgMarkWnd begin
+AbstractSvxHlinkDlgMarkWnd* AbstractDialogFactory_Impl::CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase* pParent, const ResId& rResId )
+{
+ SvxHlinkDlgMarkWnd* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXFLOAT_HYPERLINK_MARKWND :
+ pDlg = new SvxHlinkDlgMarkWnd( pParent );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxHlinkDlgMarkWnd_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxHlinkDlgMarkWnd end
+
+//CHINA001 SvxCharacterMap begin
+AbstractSvxCharacterMap * AbstractDialogFactory_Impl::CreateSvxCharacterMap( Window* pParent, //add for SvxCharacterMap
+ const ResId& rResId,
+ BOOL bOne )
+{
+ SvxCharacterMap* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_CHARMAP :
+ pDlg = new SvxCharacterMap( pParent,bOne );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxCharacterMap_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxCharacterMap end
+
+//CHINA001 SvxSearchFormatDialog begin
+SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateTabItemDialog( Window* pParent,
+ const SfxItemSet& rSet,
+ const ResId& rResId)
+{
+ SfxTabDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_SEARCHFORMAT :
+ pDlg = new SvxSearchFormatDialog( pParent, rSet );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractTabDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxSearchFormatDialog end
+
+//CHINA001 SvxSearchAttributeDialog begin
+VclAbstractDialog* AbstractDialogFactory_Impl::CreateSvxSearchAttributeDialog( Window* pParent,
+ SearchAttrItemList& rLst,
+ const USHORT* pWhRanges,
+ const ResId& rResId ) //add for SvxSearchAttributeDialog
+{
+ Dialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_SEARCHATTR :
+ pDlg = new SvxSearchAttributeDialog( pParent, rLst, pWhRanges);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new VclAbstractDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxSearchAttributeDialog end
+
+//CHINA001 SvxSearchSimilarityDialog begin
+AbstractSvxSearchSimilarityDialog * AbstractDialogFactory_Impl::CreateSvxSearchSimilarityDialog( Window* pParent,
+ BOOL bRelax,
+ USHORT nOther,
+ USHORT nShorter,
+ USHORT nLonger,
+ const ResId& rResId)
+{
+ SvxSearchSimilarityDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_SEARCHSIMILARITY :
+ pDlg = new SvxSearchSimilarityDialog( pParent, bRelax, nOther, nShorter, nLonger );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxSearchSimilarityDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxSearchSimilarityDialog end
+
+//CHINA001 SvxBorderBackgroundDlg begin
+SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxBorderBackgroundDlg( Window* pParent,
+ const SfxItemSet& rCoreSet,
+ const ResId& rResId,
+ BOOL bEnableSelector)
+{
+ SfxTabDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_BBDLG :
+ pDlg = new SvxBorderBackgroundDlg( pParent, rCoreSet, bEnableSelector);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractTabDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxBorderBackgroundDlg end
+
+//CHINA001 SvxTransformTabDialog begin
+SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxTransformTabDialog( Window* pParent,
+ const SfxItemSet* pAttr,
+ const SdrView* pView,
+ const ResId& rResId,
+ USHORT nAnchorTypes )
+{
+ SfxTabDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_TRANSFORM :
+ pDlg = new SvxTransformTabDialog( pParent, pAttr,pView, nAnchorTypes);
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractTabDialog_Impl( pDlg );
+ return 0;
+}
+
+//CHINA001 SvxTransformTabDialog end
+
+//CHINA001 SchTransformTabDialog begin
+SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSchTransformTabDialog( Window* pParent,
+ const SfxItemSet* pAttr,
+ const SdrView* pSdrView,
+ const ResId& rResId,
+ bool bSizeTabPage
+ )
+{
+ SfxTabDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SCH_TransformTabDLG_SVXPAGE_ANGLE :
+ {
+ pDlg = new SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT : SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE);
+ pDlg->RemoveTabPage( RID_SVXPAGE_ANGLE );
+ pDlg->RemoveTabPage( RID_SVXPAGE_SLANT );
+ }
+ break;
+ case RID_SCH_TransformTabDLG_SVXPAGE_SLANT:
+ {
+ pDlg = new SvxTransformTabDialog( pParent, pAttr,pSdrView, bSizeTabPage ? SVX_OBJ_NOPROTECT : SVX_OBJ_NOPROTECT|SVX_OBJ_NORESIZE);
+ pDlg->RemoveTabPage( RID_SVXPAGE_SLANT );
+ }
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractTabDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SchTransformTabDialog end
+
+//CHINA001 SvxJSearchOptionsDialog begin
+AbstractSvxJSearchOptionsDialog * AbstractDialogFactory_Impl::CreateSvxJSearchOptionsDialog( Window* pParent,
+ const SfxItemSet& rOptionsSet, USHORT nUniqueId,
+ INT32 nInitialFlags,
+ const ResId& rResId)
+{
+ SvxJSearchOptionsDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXPAGE_JSEARCH_OPTIONS :
+ pDlg = new SvxJSearchOptionsDialog( pParent, rOptionsSet, nUniqueId, nInitialFlags );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxJSearchOptionsDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxJSearchOptionsDialog end
+
+//CHINA001 FmInputRecordNoDialog begin
+AbstractFmInputRecordNoDialog * AbstractDialogFactory_Impl::CreateFmInputRecordNoDialog( Window* pParent,
+ const ResId& rResId)
+{
+ FmInputRecordNoDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVX_DLG_INPUTRECORDNO :
+ pDlg = new FmInputRecordNoDialog( pParent );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractFmInputRecordNoDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 FmInputRecordNoDialog end
+
+//CHINA001 FmTabOrderDlg begin
+VclAbstractDialog* AbstractDialogFactory_Impl::CreateFmTabOrderDlg( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB,
+ Window* pParent, FmFormShell* pShell,
+ const ResId& rResId ) //add for FmTabOrderDlg
+{
+ Dialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_TAB_ORDER :
+ pDlg = new FmTabOrderDlg( _xORB, pParent, pShell );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new VclAbstractDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 FmTabOrderDlg end
+
+//CHINA001 SvxNewDictionaryDialog begin
+AbstractSvxNewDictionaryDialog * AbstractDialogFactory_Impl::CreateSvxNewDictionaryDialog( Window* pParent,
+ ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellChecker1 > &xSpl,
+ const ResId& rResId )
+{
+ SvxNewDictionaryDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SFXDLG_NEWDICT :
+ pDlg = new SvxNewDictionaryDialog( pParent, xSpl );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxNewDictionaryDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxNewDictionaryDialog end
+
+//CHINA001 SvxEditDictionaryDialog begin
+VclAbstractDialog* AbstractDialogFactory_Impl::CreateSvxEditDictionaryDialog( Window* pParent,
+ const String& rName,
+ ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellChecker1> &xSpl,
+ const ResId& rResId )
+{
+ Dialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SFXDLG_EDITDICT :
+ pDlg = new SvxEditDictionaryDialog( pParent, rName, xSpl );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new VclAbstractDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxEditDictionaryDialog end
+
+//CHINA001 SvxNameDialog begin
+AbstractSvxNameDialog * AbstractDialogFactory_Impl::CreateSvxNameDialog( Window* pParent,
+ const String& rName, const String& rDesc,
+ const ResId& rResId )
+{
+ SvxNameDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_NAME :
+ pDlg = new SvxNameDialog( pParent, rName, rDesc );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxNameDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxNameDialog end
+
+//CHINA001 SvxMessDialog begin
+AbstractSvxMessDialog * AbstractDialogFactory_Impl::CreateSvxMessDialog( Window* pParent, const ResId& rResId,
+ const String& rText, const String& rDesc, Image* pImg )
+{
+ SvxMessDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_MESSBOX :
+ pDlg = new SvxMessDialog( pParent, rText, rDesc, pImg );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxMessDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxMessDialog end
+
+//CHINA001 SvxMultiPathDialog begin
+AbstractSvxMultiPathDialog * AbstractDialogFactory_Impl::CreateSvxMultiPathDialog( Window* pParent, const ResId& rResId,
+ BOOL bEmptyAllowed )
+{
+ SvxMultiPathDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_MULTIPATH :
+ pDlg = new SvxMultiPathDialog( pParent, bEmptyAllowed );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxMultiPathDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxMultiPathDialog end
+
+//CHINA001 SvxMultiFileDialog begin
+AbstractSvxMultiFileDialog * AbstractDialogFactory_Impl::CreateSvxMultiFileDialog( Window* pParent, const ResId& rResId,
+ BOOL bEmptyAllowed )
+{
+ SvxMultiFileDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_MULTIPATH :
+ pDlg = new SvxMultiFileDialog( pParent, bEmptyAllowed );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxMultiFileDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxMultiFileDialog end
+
+//CHINA001 SvxHpLinkDlg begin
+AbstractSvxHpLinkDlg * AbstractDialogFactory_Impl::CreateSvxHpLinkDlg (Window* pParent, //add for SvxMultiFileDialog
+ SfxBindings* pBindings,
+ const ResId& rResId)
+{
+ SvxHpLinkDlg* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case SID_HYPERLINK_DIALOG :
+ pDlg = new SvxHpLinkDlg( pParent, pBindings );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxHpLinkDlg_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxHpLinkDlg end
+
+//CHINA001 FmSearchDialog begin
+AbstractFmSearchDialog* AbstractDialogFactory_Impl::CreateFmSearchDialog(Window* pParent, //add for FmSearchDialog
+ const String& strInitialText,
+ const String& strContexts,
+ sal_Int16 nInitialContext,
+ const Link& lnkContextSupplier,
+ const ResId& rResId,
+ FMSEARCH_MODE eMode )
+{
+ FmSearchDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_SEARCHFORM :
+ pDlg = new FmSearchDialog( pParent, strInitialText,strContexts,nInitialContext,lnkContextSupplier,eMode );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractFmSearchDialog_Impl( pDlg );
+ return 0;
+}
+
+//CHINA001 FmSearchDialog end
+
+//CHINA001 GraphicFilterEmboss begin
+AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterEmboss (Window* pParent, //add for GraphicFilterEmboss
+ const Graphic& rGraphic,
+ RECT_POINT eLightSource,
+ const ResId& rResId)
+{
+ GraphicFilterDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVX_GRFFILTER_DLG_EMBOSS :
+ pDlg = new GraphicFilterEmboss( pParent, rGraphic, eLightSource );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractGraphicFilterDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 GraphicFilterEmboss end
+
+//CHINA001 GraphicFilterPoster & GraphicFilterSepia begin
+AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterPosterSepia (Window* pParent, //add for GraphicFilterPoster & GraphicFilterSepia
+ const Graphic& rGraphic,
+ USHORT nCount,
+ const ResId& rResId)
+{
+ GraphicFilterDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVX_GRFFILTER_DLG_POSTER :
+ pDlg = new GraphicFilterPoster( pParent, rGraphic, nCount );
+ break;
+ case RID_SVX_GRFFILTER_DLG_SEPIA :
+ pDlg = new GraphicFilterSepia( pParent, rGraphic, nCount );
+ break;
+
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractGraphicFilterDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 GraphicFilterPoster & GraphicFilterSepia end
+
+//CHINA001 GraphicFilterSolarize begin
+AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterSolarize (Window* pParent, //add for GraphicFilterSolarize
+ const Graphic& rGraphic,
+ BYTE nGreyThreshold, BOOL bInvert,
+ const ResId& rResId)
+{
+ GraphicFilterDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVX_GRFFILTER_DLG_SOLARIZE :
+ pDlg = new GraphicFilterSolarize( pParent, rGraphic, nGreyThreshold, bInvert );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractGraphicFilterDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 GraphicFilterSolarize end
+
+//CHINA001 GraphicFilterMosaic begin
+AbstractGraphicFilterDialog * AbstractDialogFactory_Impl::CreateGraphicFilterMosaic (Window* pParent, //add for GraphicFilterMosaic
+ const Graphic& rGraphic,
+ USHORT nTileWidth, USHORT nTileHeight, BOOL bEnhanceEdges,
+ const ResId& rResId)
+{
+ GraphicFilterDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVX_GRFFILTER_DLG_MOSAIC :
+ pDlg = new GraphicFilterMosaic( pParent, rGraphic, nTileWidth, nTileHeight, bEnhanceEdges );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractGraphicFilterDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 GraphicFilterMosaic end
+//CHINA001 SvxAreaTabDialog begin
+AbstractSvxAreaTabDialog* AbstractDialogFactory_Impl::CreateSvxAreaTabDialog( Window* pParent,
+ const SfxItemSet* pAttr,
+ SdrModel* pModel,
+ const ResId& rResId,
+ const SdrView* pSdrView )
+{
+ SvxAreaTabDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_AREA :
+ pDlg = new SvxAreaTabDialog( pParent, pAttr, pModel,pSdrView );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSvxAreaTabDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxAreaTabDialog end
+//CHINA001 SvxLineTabDialog begin
+SfxAbstractTabDialog* AbstractDialogFactory_Impl::CreateSvxLineTabDialog( Window* pParent, const SfxItemSet* pAttr, //add forSvxLineTabDialog
+ SdrModel* pModel,
+ const ResId& rResId,
+ const SdrObject* pObj ,
+ BOOL bHasObj)
+{
+ SfxTabDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXDLG_LINE :
+ pDlg = new SvxLineTabDialog( pParent, pAttr, pModel,pObj,bHasObj );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractTabDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxLineTabDialog end
+
+//CHINA001 SvxMeasureDialog & SvxConnectionDialog begin
+AbstractSfxSingleTabDialog* AbstractDialogFactory_Impl::CreateSfxSingleTabDialog( Window* pParent,
+ const SfxItemSet& rAttr,
+ const SdrView* pView,
+ const ResId& rResId
+ )
+{
+ SfxSingleTabDialog* pDlg=NULL;
+ switch ( rResId.GetId() )
+ {
+ case RID_SVXPAGE_MEASURE :
+ pDlg = new SvxMeasureDialog( pParent, rAttr, pView );
+ break;
+ case RID_SVXPAGE_CONNECTION :
+ pDlg = new SvxConnectionDialog( pParent, rAttr, pView );
+ break;
+ default:
+ break;
+ }
+
+ if ( pDlg )
+ return new AbstractSfxSingleTabDialog_Impl( pDlg );
+ return 0;
+}
+//CHINA001 SvxMeasureDialog & SvxConnectionDialogend
+//STRIP001 AbstractSvxSpellCheckDialog * AbstractDialogFactory_Impl::CreateSvxSpellCheckDialog( Window* pParent, //add for SvxSpellCheckDialog
+//STRIP001 ::com::sun::star::uno::Reference<
+//STRIP001 ::com::sun::star::linguistic2::XSpellChecker1 > &xChecker,
+//STRIP001 SvxSpellWrapper* pWrapper,
+//STRIP001 const ResId& rResId)
+//STRIP001 {
+//STRIP001 SvxSpellCheckDialog* pDlg=NULL;
+//STRIP001 switch ( rResId.GetId() )
+//STRIP001 {
+//STRIP001 case RID_SVXDLG_SPELLCHECK :
+//STRIP001 pDlg = new SvxSpellCheckDialog( pParent, xChecker,pWrapper);
+//STRIP001 break;
+//STRIP001 default:
+//STRIP001 break;
+//STRIP001 }
+//STRIP001
+//STRIP001 if ( pDlg )
+//STRIP001 return new AbstractSvxSpellCheckDialog_Impl( pDlg );
+//STRIP001 return 0;
+//STRIP001 }
+
// Factories for TabPages
-CreateTabPage AbstractDialogFactory::GetTabPageCreatorFunc( USHORT nId )
+CreateTabPage AbstractDialogFactory_Impl::GetTabPageCreatorFunc( USHORT nId )
+{
+ switch ( nId )
+ {
+ case RID_OFA_TP_INTERNATIONAL:
+ return ::offapp::InternationalOptionsPage::CreateSc;
+ break;
+ case RID_OFA_TP_INTERNATIONAL_SD:
+ case RID_OFA_TP_INTERNATIONAL_IMPR:
+ return offapp::InternationalOptionsPage::CreateSd;
+ break;
+ case RID_SVXPAGE_TEXTANIMATION :
+ return SvxTextAnimationPage::Create;
+ break;
+//CHINA001 case RID_SVXPAGE_CAPTION :
+//CHINA001 return SvxCaptionTabPage::Create;
+//CHINA001 break;
+ case RID_SVXTABPAGE_GALLERY_GENERAL :
+ return TPGalleryThemeGeneral::Create;
+ break;
+ case RID_SVXPAGE_TRANSPARENCE :
+ return SvxTransparenceTabPage::Create;
+ break;
+ case RID_SVXPAGE_AREA :
+ return SvxAreaTabPage::Create;
+ break;
+ case RID_SVXPAGE_SHADOW :
+ return SvxShadowTabPage::Create;
+ break;
+ case RID_SVXPAGE_LINE :
+ return SvxLineTabPage::Create;
+ break;
+ case RID_SVXPAGE_CONNECTION :
+ return SvxConnectionPage::Create;
+ break;
+ case RID_SVXPAGE_MEASURE :
+ return SvxMeasurePage::Create;
+ break;
+ case RID_SFXPAGE_GENERAL :
+ return SvxGeneralTabPage::Create;
+ break;
+
+ default:
+ break;
+ }
+
+ return 0;
+}
+CreateSvxDistributePage AbstractDialogFactory_Impl::GetSvxDistributePageCreatorFunc(USHORT nId )
{
+ switch ( nId )
+ {
+ case RID_SVXPAGE_DISTRIBUTE:
+ return SvxDistributePage::Create;
+ break;
+ default:
+ break;
+ }
+
return 0;
}
-GetTabPageRanges AbstractDialogFactory::GetTabPageRangesFunc( USHORT nId )
+
+GetTabPageRanges AbstractDialogFactory_Impl::GetTabPageRangesFunc( USHORT nId )
{
+ switch ( nId )
+ {
+ case RID_SVXPAGE_TEXTANIMATION :
+ return SvxTextAnimationPage::GetRanges;
+ break;
+//CHINA001 case RID_SVXPAGE_CAPTION :
+//CHINA001 return SvxCaptionTabPage::GetRanges;
+//CHINA001 break;
+ case RID_SVXPAGE_DISTRIBUTE:
+ return SvxDistributePage::GetRanges;
+ break;
+ case RID_SVXPAGE_TRANSPARENCE :
+ return SvxTransparenceTabPage::GetRanges;
+ break;
+ case RID_SVXPAGE_AREA :
+ return SvxAreaTabPage::GetRanges;
+ break;
+ case RID_SVXPAGE_SHADOW :
+ return SvxShadowTabPage::GetRanges;
+ break;
+ case RID_SVXPAGE_LINE :
+ return SvxLineTabPage::GetRanges;
+ break;
+ case RID_SVXPAGE_CONNECTION :
+ return SvxConnectionPage::GetRanges;
+ break;
+ case RID_SVXPAGE_MEASURE :
+ return SvxMeasurePage::GetRanges;
+ break;
+ default:
+ break;
+ }
+
return 0;
}
diff --git a/svx/source/dialog/dlgfact.hxx b/svx/source/dialog/dlgfact.hxx
index e72c6a9d3766..3c25cd2acb36 100644
--- a/svx/source/dialog/dlgfact.hxx
+++ b/svx/source/dialog/dlgfact.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dlgfact.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2004-01-05 11:32:21 $
+ * last change: $Author: hr $ $Date: 2004-02-03 18:25:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,43 +62,416 @@
#define _CUI_DLGFACT_HXX
// include ---------------------------------------------------------------
+#include "svxdlg.hxx" //CHINA001 #include <svx/svxdlg.hxx>
-#include "svxdlg.hxx"
+//#include <sfx2/basedlgs.hxx>
+//#include "dstribut.hxx"
+//#include "cuigaldlg.hxx"
+//#include "cuiimapwnd.hxx"
+//#include "hlmarkwn.hxx"
+//#include "cuicharmap.hxx"
+//#include "srchxtra.hxx"
class SfxTabDialog;
class Dialog;
+class SfxItemPool;
+class FmShowColsDialog;
+class SvxZoomDialog;
+class FmInputRecordNoDialog;
+class SvxJSearchOptionsDialog;
+class FmFormShell;
+class SvxNewDictionaryDialog;
+class SvxNameDialog;
+class SvxMessDialog;
+class SvxMultiPathDialog;
+class SvxMultiFileDialog;
+class SvxHpLinkDlg;
+class FmSearchDialog;
+class Graphic;
+class GraphicFilterDialog;
+class SvxAreaTabDialog;
-class AbstractDialog : public VclAbstractDialog
+namespace svx{
+class HangulHanjaConversionDialog;
+}
+using namespace svx;
+
+#define DECL_ABSTDLG_BASE(Class,DialogClass) \
+ DialogClass* pDlg; \
+public: \
+ Class( DialogClass* p) \
+ : pDlg(p) \
+ {} \
+ virtual ~Class(); \
+ virtual USHORT Execute() ;
+// virtual void Show( BOOL bVisible = TRUE, USHORT nFlags = 0 )
+
+#define IMPL_ABSTDLG_BASE(Class) \
+Class::~Class() \
+{ \
+ delete pDlg; \
+} \
+USHORT Class::Execute() \
+{ \
+ return pDlg->Execute(); \
+}
+//void Class::Show( BOOL bVisible, USHORT nFlags ) \
+//{ \
+// pDlg->Show( bVisible, nFlags ); \
+//}
+
+//for GalleryThemeProperties begin
+class VclAbstractDialog_Impl : public VclAbstractDialog
{
- Dialog* pDlg;
-public:
- AbstractDialog( Dialog* p)
- : pDlg(p)
- {}
+ DECL_ABSTDLG_BASE(VclAbstractDialog_Impl,Dialog);
+};
+//for GalleryThemeProperties end
- virtual ~AbstractDialog();
- virtual USHORT Execute();
- virtual void Show( BOOL bShow );
- virtual String GetData();
+//for ActualizeProgress begin
+class VclAbstractRefreshableDialog_Impl : public VclAbstractRefreshableDialog
+{
+ DECL_ABSTDLG_BASE(VclAbstractRefreshableDialog_Impl,Dialog);
+ virtual void Update() ;
+ virtual void Sync() ;
};
+//for ActualizeProgress end
-class AbstractTabDialog : public SfxAbstractTabDialog
+class AbstractTabDialog_Impl : public SfxAbstractTabDialog
{
- SfxTabDialog* pDlg;
+ DECL_ABSTDLG_BASE(AbstractTabDialog_Impl,SfxTabDialog);
+ virtual void SetCurPageId( USHORT nId );
+ virtual const SfxItemSet* GetOutputItemSet() const;
+ virtual const USHORT* GetInputRanges( const SfxItemPool& pItem ); //add by CHINA001
+ virtual void SetInputSet( const SfxItemSet* pInSet ); //add by CHINA001
+ //From class Window.
+ virtual void SetText( const XubString& rStr ); //add by CHINA001
+ virtual String GetText() const; //add by CHINA001
+};
+
+//for SvxDistributeDialog begin
+class SvxDistributeDialog;
+class AbstractSvxDistributeDialog_Impl: public AbstractSvxDistributeDialog
+{
+ DECL_ABSTDLG_BASE(AbstractSvxDistributeDialog_Impl,SvxDistributeDialog);
public:
- AbstractTabDialog( SfxTabDialog* p)
- : pDlg(p)
- {}
-
- virtual ~AbstractTabDialog();
- virtual USHORT Execute();
- virtual void Show( BOOL bShow );
- virtual void SetCurrentPageId( USHORT nId );
+ virtual SvxDistributeHorizontal GetDistributeHor() const;
+ virtual SvxDistributeVertical GetDistributeVer() const;
+};
+//for SvxDistributeDialog end
+
+// for HangulHanjaConversionDialog begin
+class AbstractHangulHanjaConversionDialog_Impl: public AbstractHangulHanjaConversionDialog
+{
+ DECL_ABSTDLG_BASE(AbstractHangulHanjaConversionDialog_Impl,HangulHanjaConversionDialog);
+ virtual void EndDialog(long nResult = 0);
+ virtual void SetByCharacter( sal_Bool _bByCharacter ) ;
+ virtual void SetConversionFormat( HangulHanjaConversion::ConversionFormat _eType );
+ virtual void SetIgnoreHdl( const Link& _rHdl );
+ virtual void SetIgnoreAllHdl( const Link& _rHdl ) ;
+ virtual void SetChangeHdl( const Link& _rHdl ) ;
+ virtual void SetChangeAllHdl( const Link& _rHdl ) ;
+ virtual void SetClickByCharacterHdl( const Link& _rHdl ) ;
+ virtual void SetConversionFormatChangedHdl( const Link& _rHdl ) ;
+ virtual void SetFindHdl( const Link& _rHdl );
+ virtual sal_Bool GetUseBothDirections( ) const;
+ virtual void SetCurrentString(
+ const String& _rNewString,
+ const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rSuggestions,
+ bool _bOriginatesFromDocument = true
+ );
+ virtual String GetCurrentString( ) const ;
+ virtual HangulHanjaConversion::ConversionFormat GetConversionFormat( ) const ;
+ virtual void FocusSuggestion( );
+ virtual String GetCurrentSuggestion( ) const;
+};
+
+// for HangulHanjaConversionDialog end
+
+// for FmShowColsDialog begin
+class FmShowColsDialog;
+class AbstractFmShowColsDialog_Impl : public AbstractFmShowColsDialog
+{
+ DECL_ABSTDLG_BASE(AbstractFmShowColsDialog_Impl,FmShowColsDialog);
+ virtual void SetColumns(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer>& xCols);
+};
+//for FmShowColsDialog end
+
+
+//for SvxZoomDialog begin
+class SvxZoomDialog;
+class AbstractSvxZoomDialog_Impl : public AbstractSvxZoomDialog
+{
+ DECL_ABSTDLG_BASE(AbstractSvxZoomDialog_Impl,SvxZoomDialog);
+ virtual void SetLimits( USHORT nMin, USHORT nMax );
+ virtual void HideButton( USHORT nBtnId );
+ virtual const SfxItemSet* GetOutputItemSet() const ;
+
+};
+//for SvxZoomDialog end
+
+//for SvxSpellCheckDialog begin
+//STRIP001 class AbstractSvxSpellCheckDialog_Impl : public AbstractSvxSpellCheckDialog //add for FmShowColsDialog
+//STRIP001 {
+//STRIP001 SvxSpellCheckDialog * pDlg;
+//STRIP001 public
+//STRIP001 AbstractSvxSpellCheckDialog_Impl ( SvxSpellCheckDialog* p)
+//STRIP001 : pDlg(p)
+//STRIP001 {}
+//STRIP001 virtual USHORT Execute() ;
+//STRIP001 virtual void SetNewEditWord( const String& _rNew ) ;
+//STRIP001 virtual void SetLanguage( sal_uInt16 nLang ) ;
+//STRIP001 virtual void HideAutoCorrect() ;
+//STRIP001 virtual String GetNewEditWord();
+//STRIP001 virtual void SetNewEditWord( const String& _rNew );
+//STRIP001 }
+//for SvxSpellCheckDialog end
+
+
+//for SearchProgress begin
+class SearchProgress;
+class AbstractSearchProgress_Impl : public AbstractSearchProgress
+{
+ DECL_ABSTDLG_BASE(AbstractSearchProgress_Impl,SearchProgress);
+ virtual void Update() ;
+ virtual void Sync() ;
+ virtual void SetFileType( const String& rType ) ;
+ virtual void SetDirectory( const INetURLObject& rURL ) ;
+ virtual PLinkStub GetLinkStubCleanUpHdl() ;
+
+};
+//for SearchProgress end
+
+//for TakeProgress begin
+class TakeProgress;
+class AbstractTakeProgress_Impl : public AbstractTakeProgress
+{
+ DECL_ABSTDLG_BASE(AbstractTakeProgress_Impl,TakeProgress);
+ virtual void Update() ;
+ virtual void Sync() ;
+ virtual void SetFile( const INetURLObject& rURL ) ;
+ virtual PLinkStub GetLinkStubCleanUpHdl() ;
+
+};
+//for TakeProgress end
+
+//for TitleDialog begin
+class TitleDialog;
+class AbstractTitleDialog_Impl : public AbstractTitleDialog
+{
+ DECL_ABSTDLG_BASE(AbstractTitleDialog_Impl,TitleDialog);
+ virtual String GetTitle() const ;
+
+};
+//for TitleDialog end
+
+//for GalleryIdDialog begin
+class GalleryIdDialog;
+class AbstractGalleryIdDialog_Impl : public AbstractGalleryIdDialog
+{
+ DECL_ABSTDLG_BASE(AbstractGalleryIdDialog_Impl,GalleryIdDialog);
+ virtual ULONG GetId() const ;
+
+};
+//for GalleryIdDialog end
+
+//for URLDlg start
+class URLDlg;
+class AbstractURLDlg_Impl :public AbstractURLDlg
+{
+ DECL_ABSTDLG_BASE(AbstractURLDlg_Impl,URLDlg);
+ virtual String GetURL() const;
+ virtual String GetDescription() const;
+ virtual String GetTarget() const;
+ virtual String GetName() const;
+};
+//for URLDlg end
+
+//for SvxHlinkDlgMarkWnd begin
+class SvxHlinkDlgMarkWnd;
+class AbstractSvxHlinkDlgMarkWnd_Impl : public AbstractSvxHlinkDlgMarkWnd
+{
+ DECL_ABSTDLG_BASE(AbstractSvxHlinkDlgMarkWnd_Impl,SvxHlinkDlgMarkWnd);
+ virtual void Hide( USHORT nFlags = 0 );
+ virtual BOOL IsVisible() const ;
+ virtual void Invalidate( USHORT nFlags = 0 );
+ virtual void SetSizePixel( const Size& rNewSize );
+ virtual Size GetSizePixel() const;
+ virtual BOOL MoveTo ( Point aNewPos )const;
+ virtual BOOL ConnectToDialog( BOOL bDoit = TRUE )const;
+ virtual void RefreshTree ( String aStrURL ) ;
+ virtual void SelectEntry ( String aStrMark );
+ virtual USHORT SetError( USHORT nError) ;
+
+};
+//for SvxHlinkDlgMarkWnd end
+
+//for SvxCharacterMap begin
+class SvxCharacterMap;
+class AbstractSvxCharacterMap_Impl :public AbstractSvxCharacterMap
+{
+ DECL_ABSTDLG_BASE(AbstractSvxCharacterMap_Impl,SvxCharacterMap);
+ virtual void SetText( const XubString& rStr ); //From Class Window
+ virtual void DisableFontSelection();
+
+ virtual const Font& GetCharFont() const ;
+ virtual void SetCharFont( const Font& rFont );
+ virtual void SetFont( const Font& rFont ) ;
+
+ virtual void SetChar( sal_Unicode c );
+ virtual sal_Unicode GetChar() const;
+
+ virtual String GetCharacters() const;
+};
+//for SvxCharacterMap end
+
+//for SvxSearchSimilarityDialog begin
+class SvxSearchSimilarityDialog;
+class AbstractSvxSearchSimilarityDialog_Impl :public AbstractSvxSearchSimilarityDialog
+{
+ DECL_ABSTDLG_BASE(AbstractSvxSearchSimilarityDialog_Impl,SvxSearchSimilarityDialog);
+ virtual USHORT GetOther();
+ virtual USHORT GetShorter();
+ virtual USHORT GetLonger();
+ virtual BOOL IsRelaxed();
+};
+//for SvxSearchSimilarityDialog end
+
+//for SvxJSearchOptionsDialog end
+class SvxJSearchOptionsDialog;
+class AbstractSvxJSearchOptionsDialog_Impl :public AbstractSvxJSearchOptionsDialog
+{
+ DECL_ABSTDLG_BASE(AbstractSvxJSearchOptionsDialog_Impl,SvxJSearchOptionsDialog);
+ virtual INT32 GetTransliterationFlags() const;
+};
+//for SvxJSearchOptionsDialog end
+
+//for FmInputRecordNoDialog end
+class FmInputRecordNoDialog;
+class AbstractFmInputRecordNoDialog_Impl :public AbstractFmInputRecordNoDialog
+{
+ DECL_ABSTDLG_BASE(AbstractFmInputRecordNoDialog_Impl,FmInputRecordNoDialog);
+ virtual void SetValue(double dNew) ;
+ virtual long GetValue() const ;
+};
+//for FmInputRecordNoDialog end
+
+//for SvxNewDictionaryDialog end
+class SvxNewDictionaryDialog;
+class AbstractSvxNewDictionaryDialog_Impl :public AbstractSvxNewDictionaryDialog
+{
+ DECL_ABSTDLG_BASE(AbstractSvxNewDictionaryDialog_Impl,SvxNewDictionaryDialog);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XDictionary1 > GetNewDictionary();
+};
+//for SvxNewDictionaryDialog end
+
+//for SvxNameDialog end
+class SvxNameDialog;
+class AbstractSvxNameDialog_Impl :public AbstractSvxNameDialog
+{
+ DECL_ABSTDLG_BASE(AbstractSvxNameDialog_Impl,SvxNameDialog);
+ virtual void GetName( String& rName ) ;
+ virtual void SetCheckNameHdl( const Link& rLink, bool bCheckImmediately = false ) ;
+ virtual void SetEditHelpId(ULONG nHelpId) ;
+ //from class Window
+ virtual void SetHelpId( ULONG nHelpId ) ;
+ virtual void SetText( const XubString& rStr ) ;
+};
+//for SvxNameDialog end
+
+//for SvxMessDialog end
+class SvxMessDialog;
+class AbstractSvxMessDialog_Impl :public AbstractSvxMessDialog
+{
+ DECL_ABSTDLG_BASE(AbstractSvxMessDialog_Impl,SvxMessDialog);
+ virtual void SetButtonText( USHORT nBtnId, const String& rNewTxt );
+};
+//for SvxMessDialog end
+
+//for SvxMultiPathDialog end
+class SvxMultiPathDialog;
+class AbstractSvxMultiPathDialog_Impl :public AbstractSvxMultiPathDialog
+{
+ DECL_ABSTDLG_BASE(AbstractSvxMultiPathDialog_Impl,SvxMultiPathDialog);
+ virtual String GetPath() const;
+ virtual void SetPath( const String& rPath );
+};
+//for SvxMultiPathDialog end
+
+//for SvxMultiFileDialog begin
+class SvxMultiFileDialog;
+class AbstractSvxMultiFileDialog_Impl :public AbstractSvxMultiFileDialog
+{
+ DECL_ABSTDLG_BASE(AbstractSvxMultiFileDialog_Impl,SvxMultiFileDialog);
+ virtual String GetFiles() const ;
+ virtual void SetFiles( const String& rPath ) ;
+ //from SvxMultiPathDialog
+ virtual String GetPath() const;
+ virtual void SetPath( const String& rPath );
+ virtual void SetClassPathMode();
+ //From Class Window
+ virtual void SetHelpId( ULONG nHelpId ) ;
+
+};
+//for SvxMultiFileDialog end
+
+//for SvxHpLinkDlg begin
+class SvxHpLinkDlg;
+class AbstractSvxHpLinkDlg_Impl :public AbstractSvxHpLinkDlg
+{
+ DECL_ABSTDLG_BASE(AbstractSvxHpLinkDlg_Impl,SvxHpLinkDlg);
+ virtual Window * GetWindow() ;
+
+};
+//for SvxHpLinkDlg end
+
+//for FmSearchDialog begin
+class FmSearchDialog;
+class AbstractFmSearchDialog_Impl :public AbstractFmSearchDialog
+{
+ DECL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl,FmSearchDialog);
+ virtual void SetFoundHandler(const Link& lnk) ;
+ virtual void SetCanceledNotFoundHdl(const Link& lnk);
+ virtual void SetActiveField(const String& strField);
+};
+//for FmSearchDialog end
+
+//for GraphicFilterDialog begin
+class GraphicFilterDialog;
+class AbstractGraphicFilterDialog_Impl :public AbstractGraphicFilterDialog
+{
+ DECL_ABSTDLG_BASE(AbstractGraphicFilterDialog_Impl,GraphicFilterDialog);
+ virtual Graphic GetFilteredGraphic( const Graphic& rGraphic, double fScaleX, double fScaleY );
+};
+//for GraphicFilterDialog end
+
+//add for SvxAreaTabDialog begin
+class SvxAreaTabDialog;
+class AbstractSvxAreaTabDialog_Impl :public AbstractSvxAreaTabDialog
+{
+ DECL_ABSTDLG_BASE(AbstractSvxAreaTabDialog_Impl,SvxAreaTabDialog);
+ virtual void SetCurPageId( USHORT nId );
virtual const SfxItemSet* GetOutputItemSet() const;
- virtual String GetData();
+ virtual const USHORT* GetInputRanges( const SfxItemPool& pItem );
+ virtual void SetInputSet( const SfxItemSet* pInSet );
+ //From class Window.
+ virtual void SetText( const XubString& rStr );
+ virtual String GetText() const;
+ virtual void DontDeleteColorTable() ;
};
+//add for SvxAreaTabDialog end
-class AbstractDialogFactory : public SvxAbstractDialogFactory
+//add for SvxMeasureDialog & SvxConnectionDialog begin
+class SfxSingleTabDialog;
+class AbstractSfxSingleTabDialog_Impl :public AbstractSfxSingleTabDialog
+{
+ DECL_ABSTDLG_BASE(AbstractSfxSingleTabDialog_Impl,SfxSingleTabDialog);
+ virtual const SfxItemSet* GetOutputItemSet() const;
+
+};
+//add for SvxMeasureDialog & SvxConnectionDialog end
+//------------------------------------------------------------------------
+//AbstractDialogFactory_Impl implementations
+class AbstractDialogFactory_Impl : public SvxAbstractDialogFactory
{
public:
@@ -110,12 +483,163 @@ public:
SfxViewFrame* pViewFrame,
bool bEditFmt=false,
const String *pUserButtonText=0 );
- virtual SfxAbstractTabDialog* CreateDialog( Window* pParent,
+ virtual SfxAbstractTabDialog* CreateTextTabDialog( Window* pParent,
const SfxItemSet* pAttrSet,
const ResId& rResId,
SdrView* pView,
- SdrModel* pModel=0 );
+ SdrModel* pModel=0 ); //add for SvxTextTabDialog
+ virtual SfxAbstractTabDialog* CreateTabItemDialog( Window* pParent,
+ const SfxItemSet& rSet,
+ const ResId& rResId); //add by CHINA001
+ virtual SfxAbstractTabDialog* CreateCaptionDialog( Window* pParent,
+ const SdrView* pView,
+ const ResId& rResId,
+ USHORT nAnchorTypes = 0 ); //add for SvxCaptionTabDialog CHINA001
+ virtual AbstractSvxDistributeDialog* CreateSvxDistributeDialog(Window* pParent,
+ const SfxItemSet& rAttr,
+ const ResId& rResId,
+ SvxDistributeHorizontal eHor = SvxDistributeHorizontalNone,
+ SvxDistributeVertical eVer = SvxDistributeVerticalNone);
+
+ virtual AbstractHangulHanjaConversionDialog * CreateHangulHanjaConversionDialog( Window* _pParent, //add for HangulHanjaConversionDialog CHINA001
+ HangulHanjaConversion::ConversionDirection _ePrimaryDirection,
+ const ResId& rResId);
+
+ virtual AbstractFmShowColsDialog * CreateFmShowColsDialog( Window* pParent, //add for FmShowColsDialog
+ const ResId& rResId);
+ virtual AbstractSvxZoomDialog * CreateSvxZoomDialog( Window* pParent, //add for SvxZoomDialog
+ const SfxItemSet& rCoreSet,
+ const ResId& rResId);
+ virtual SfxAbstractTabDialog* CreateSvxBorderBackgroundDlg( Window* pParent, //add for SvxBorderBackgroundDlg
+ const SfxItemSet& rCoreSet,
+ const ResId& rResId,
+ BOOL bEnableSelector = FALSE) ;
+ virtual SfxAbstractTabDialog* CreateSvxTransformTabDialog( Window* pParent, //add for SvxTransformTabDialog
+ const SfxItemSet* pAttr,
+ const SdrView* pView,
+ const ResId& rResId,
+ USHORT nAnchorTypes = 0) ;
+ virtual SfxAbstractTabDialog* CreateSchTransformTabDialog( Window* pParent, //add for SchTransformTabDialog
+ const SfxItemSet* pAttr,
+ const SdrView* pSdrView,
+ const ResId& rResId,
+ bool bSizeTabPage = false
+ );
+//STRIP001 virtual AbstractSvxSpellCheckDialog * CreateSvxSpellCheckDialog( Window* pParent, //add for SvxSpellCheckDialog
+//STRIP001 ::com::sun::star::uno::Reference<
+//STRIP001 ::com::sun::star::linguistic2::XSpellChecker1 > &xChecker,
+//STRIP001 SvxSpellWrapper* pWrapper,
+//STRIP001 const ResId& rResId);
+ virtual VclAbstractRefreshableDialog * CreateActualizeProgressDialog( Window* pParent, //add for ActualizeProgress
+ GalleryTheme* pThm,
+ const ResId& rResId);
+ virtual AbstractSearchProgress * CreateSearchProgressDialog( Window* pParent, //add for SearchProgress
+ const INetURLObject& rStartURL,
+ const ResId& rResId);
+ virtual AbstractTakeProgress * CreateTakeProgressDialog( Window* pParent, //add for TakeProgress
+ const ResId& rResId);
+ virtual AbstractTitleDialog * CreateTitleDialog( Window* pParent, //add for TitleDialog
+ const String& rOldText,
+ const ResId& rResId);
+ virtual AbstractGalleryIdDialog * CreateGalleryIdDialog( Window* pParent, //add for SvxZoomDialog
+ GalleryTheme* pThm,
+ const ResId& rResId);
+ virtual VclAbstractDialog * CreateGalleryThemePropertiesDialog( Window* pParent, //add for GalleryThemeProperties
+ ExchangeData* pData,
+ SfxItemSet* pItemSet,
+ const ResId& rResId);
+ virtual AbstractURLDlg * CreateURLDialog( Window* pParent, //add for URLDlg
+ const String& rURL, const String& rDescription,
+ const String& rTarget, const String& rName,
+ TargetList& rTargetList,
+ const ResId& rResId);
+ virtual AbstractSvxHlinkDlgMarkWnd* CreateSvxHlinkDlgMarkWndDialog( SvxHyperlinkTabPageBase* pParent, const ResId& rResId ); //add for SvxHlinkDlgMarkWnd
+
+ virtual AbstractSvxCharacterMap * CreateSvxCharacterMap( Window* pParent,
+ const ResId& rResId,
+ BOOL bOne = TRUE ) ; //add for SvxCharacterMap
+ virtual VclAbstractDialog* CreateSvxSearchAttributeDialog( Window* pParent,
+ SearchAttrItemList& rLst,
+ const USHORT* pWhRanges,
+ const ResId& rResId ); //add for SvxSearchAttributeDialog
+ virtual AbstractSvxSearchSimilarityDialog * CreateSvxSearchSimilarityDialog( Window* pParent,
+ BOOL bRelax,
+ USHORT nOther,
+ USHORT nShorter,
+ USHORT nLonger,
+ const ResId& rResId); //add for SvxSearchSimilarityDialog
+ virtual AbstractSvxJSearchOptionsDialog * CreateSvxJSearchOptionsDialog( Window* pParent,
+ const SfxItemSet& rOptionsSet, USHORT nUniqueId,
+ INT32 nInitialFlags,
+ const ResId& rResId); //add for SvxJSearchOptionsDialog
+ virtual AbstractFmInputRecordNoDialog * CreateFmInputRecordNoDialog( Window* pParent,
+ const ResId& rResId); //add for FmInputRecordNoDialog
+ virtual VclAbstractDialog* CreateFmTabOrderDlg( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB,
+ Window* pParent, FmFormShell* pShell,
+ const ResId& rResId ); //add for FmTabOrderDlg
+ virtual AbstractSvxNewDictionaryDialog* CreateSvxNewDictionaryDialog( Window* pParent,
+ ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellChecker1 > &xSpl,
+ const ResId& rResId ); //add for SvxNewDictionaryDialog
+ virtual VclAbstractDialog * CreateSvxEditDictionaryDialog( Window* pParent,
+ const String& rName,
+ ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellChecker1> &xSpl,
+ const ResId& rResId);//add for SvxEditDictionaryDialog
+ virtual AbstractSvxNameDialog * CreateSvxNameDialog( Window* pParent,
+ const String& rName, const String& rDesc,
+ const ResId& rResId ); //add for SvxNameDialog
+ virtual AbstractSvxMessDialog * CreateSvxMessDialog( Window* pParent, const ResId& rResId,
+ const String& rText, const String& rDesc,
+ Image* pImg = NULL ); //add for SvxMessDialog
+ virtual AbstractSvxMultiPathDialog * CreateSvxMultiPathDialog( Window* pParent, const ResId& rResId,
+ BOOL bEmptyAllowed = FALSE ); //add for SvxMultiPathDialog
+ virtual AbstractSvxMultiFileDialog * CreateSvxMultiFileDialog( Window* pParent, const ResId& rResId,
+ BOOL bEmptyAllowed = FALSE ); //add for SvxMultiFileDialog
+ virtual AbstractSvxHpLinkDlg * CreateSvxHpLinkDlg (Window* pParent, //add for SvxHpLink
+ SfxBindings* pBindings,
+ const ResId& rResId);
+ virtual AbstractFmSearchDialog* CreateFmSearchDialog(Window* pParent, //add for FmSearchDialog
+ const String& strInitialText,
+ const String& strContexts,
+ sal_Int16 nInitialContext,
+ const Link& lnkContextSupplier,
+ const ResId& rResId,
+ FMSEARCH_MODE eMode = SM_ALLOWSCHEDULE);
+ virtual AbstractGraphicFilterDialog * CreateGraphicFilterEmboss (Window* pParent, //add for GraphicFilterEmboss
+ const Graphic& rGraphic,
+ RECT_POINT eLightSource,
+ const ResId& rResId);
+ virtual AbstractGraphicFilterDialog * CreateGraphicFilterPosterSepia (Window* pParent, //add for GraphicFilterPoster & GraphicFilterSepia
+ const Graphic& rGraphic,
+ USHORT nCount,
+ const ResId& rResId);
+ virtual AbstractGraphicFilterDialog * CreateGraphicFilterSolarize (Window* pParent, //add for GraphicFilterSolarize
+ const Graphic& rGraphic,
+ BYTE nGreyThreshold, BOOL bInvert,
+ const ResId& rResId);
+ virtual AbstractGraphicFilterDialog * CreateGraphicFilterMosaic (Window* pParent, //add for GraphicFilterMosaic
+ const Graphic& rGraphic,
+ USHORT nTileWidth, USHORT nTileHeight, BOOL bEnhanceEdges,
+ const ResId& rResId);
+ virtual AbstractSvxAreaTabDialog* CreateSvxAreaTabDialog( Window* pParent,//add for SvxAreaTabDialog
+ const SfxItemSet* pAttr,
+ SdrModel* pModel,
+ const ResId& rResId,
+ const SdrView* pSdrView = NULL ); //add for SvxAreaTabDialog
+ virtual SfxAbstractTabDialog* CreateSvxLineTabDialog( Window* pParent, const SfxItemSet* pAttr, //add for SvxLineTabDialog
+ SdrModel* pModel,
+ const ResId& rResId,
+ const SdrObject* pObj = NULL,
+ BOOL bHasObj = TRUE );
+ virtual AbstractSfxSingleTabDialog* CreateSfxSingleTabDialog( Window* pParent, //add for SvxMeasureDialog & SvxConnectionDialog
+ const SfxItemSet& rAttr,
+ const SdrView* pView,
+ const ResId& rResId
+ );
+ // For TabPage
virtual CreateTabPage GetTabPageCreatorFunc( USHORT nId );
+ virtual CreateSvxDistributePage GetSvxDistributePageCreatorFunc(USHORT nId );
+
+
virtual GetTabPageRanges GetTabPageRangesFunc( USHORT nId );
};