Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
bfea1105
Kaydet (Commit)
bfea1105
authored
Ock 11, 2010
tarafından
Frank Schoenheit [fs]
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Automated merge with
ssh://hg@hg.services.openoffice.org/cws/dba33b
üst
e059b259
3e884a85
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
40 deletions
+45
-40
Finalizer.java
wizards/com/sun/star/wizards/query/Finalizer.java
+11
-5
QueryWizard.java
wizards/com/sun/star/wizards/query/QueryWizard.java
+4
-0
IReportDocument.java
wizards/com/sun/star/wizards/report/IReportDocument.java
+1
-1
ReportFinalizer.java
wizards/com/sun/star/wizards/report/ReportFinalizer.java
+20
-12
ReportTextImplementation.java
...com/sun/star/wizards/report/ReportTextImplementation.java
+1
-1
ReportBuilderImplementation.java
...ar/wizards/reportbuilder/ReportBuilderImplementation.java
+8
-21
No files found.
wizards/com/sun/star/wizards/query/Finalizer.java
Dosyayı görüntüle @
bfea1105
...
...
@@ -31,6 +31,7 @@ package com.sun.star.wizards.query;
import
com.sun.star.wizards.common.*
;
import
com.sun.star.awt.XRadioButton
;
import
com.sun.star.awt.XTextComponent
;
import
com.sun.star.wizards.db.*
;
import
com.sun.star.lang.IllegalArgumentException
;
import
com.sun.star.lang.XComponent
;
...
...
@@ -44,7 +45,7 @@ public class Finalizer
private
QueryWizard
CurUnoDialog
;
private
String
resQuery
;
private
Object
m_aTxtSummary
;
private
Objec
t
m_aTxtTitle
;
private
XTextComponen
t
m_aTxtTitle
;
private
XRadioButton
xRadioDisplayQuery
;
private
XRadioButton
xRadioModifyQuery
;
private
QuerySummary
CurDBMetaData
;
...
...
@@ -75,7 +76,7 @@ public class Finalizer
{
new
Integer
(
8
),
reslblQueryTitle
,
new
Integer
(
95
),
new
Integer
(
27
),
new
Integer
(
QueryWizard
.
SOSUMMARY_PAGE
),
new
Short
(
curtabindex
++),
new
Integer
(
52
)
});
m_aTxtTitle
=
CurUnoDialog
.
insertTextField
(
"txtQueryTitle"
,
0
,
null
,
new
String
[]
m_aTxtTitle
=
CurUnoDialog
.
insertTextField
(
"txtQueryTitle"
,
"changeTitle"
,
this
,
new
String
[]
{
"Height"
,
"HelpURL"
,
"PositionX"
,
"PositionY"
,
"Step"
,
"TabIndex"
,
"Width"
},
...
...
@@ -128,6 +129,11 @@ public class Finalizer
});
}
public
void
changeTitle
()
{
final
String
TitleName
=
m_aTxtTitle
.
getText
();
CurUnoDialog
.
enableFinishButton
(!
""
.
equals
(
TitleName
));
}
/* TODO: The title textbox always has to be updated when
a new Table has been selected if it is clear that the user has not made any input meanwhile
*/
...
...
@@ -191,11 +197,11 @@ public class Finalizer
CurUnoDialog
.
getCurFrame
());
}
CurUnoDialog
.
xDialog
.
endExecute
();
CurDBMetaData
.
oSQLQueryComposer
=
null
;
CurDBMetaData
=
null
;
CurUnoDialog
=
null
;
}
}
CurDBMetaData
.
oSQLQueryComposer
=
null
;
CurDBMetaData
=
null
;
CurUnoDialog
=
null
;
}
catch
(
IllegalArgumentException
e
)
{
...
...
wizards/com/sun/star/wizards/query/QueryWizard.java
Dosyayı görüntüle @
bfea1105
...
...
@@ -298,6 +298,10 @@ public class QueryWizard extends WizardDialog
if
((
switchToStep
(
ncurStep
,
SOSUMMARY_PAGE
))
||
(
ncurStep
==
SOSUMMARY_PAGE
))
{
components
=
CurFinalizer
.
finish
();
if
(
components
==
null
)
{
setControlProperty
(
"btnWizardFinish"
,
"Enabled"
,
false
);
}
}
}
...
...
wizards/com/sun/star/wizards/report/IReportDocument.java
Dosyayı görüntüle @
bfea1105
...
...
@@ -204,7 +204,7 @@ public interface IReportDocument
* @param Name
* @param OpenMode
*/
public
void
store
(
String
Name
,
int
OpenMode
);
public
void
store
(
String
Name
,
int
OpenMode
)
throws
com
.
sun
.
star
.
uno
.
Exception
;
/**
* The current report is added to the DB View under the given name
...
...
wizards/com/sun/star/wizards/report/ReportFinalizer.java
Dosyayı görüntüle @
bfea1105
...
...
@@ -244,8 +244,9 @@ public class ReportFinalizer
public
void
changeReportTitle
()
{
String
TitleName
=
xTitleTextBox
.
getText
();
final
String
TitleName
=
xTitleTextBox
.
getText
();
CurReportDocument
.
liveupdate_updateReportTitle
(
TitleName
);
CurUnoDialog
.
enableFinishButton
(!
""
.
equals
(
TitleName
));
}
public
int
getReportOpenMode
()
...
...
@@ -272,18 +273,25 @@ public class ReportFinalizer
public
boolean
finish
()
{
StoreName
=
getStoreName
();
if
(
CurReportDocument
.
getRecordParser
().
getReportDocuments
().
hasByHierarchicalName
(
StoreName
))
if
(
!
CurReportDocument
.
getRecordParser
().
getReportDocuments
().
hasByHierarchicalName
(
StoreName
))
{
String
sMsgReportDocumentNameDuplicate
=
CurUnoDialog
.
m_oResource
.
getResText
(
UIConsts
.
RID_REPORT
+
76
);
String
sShowMsgReportNameisDuplicate
=
JavaTools
.
replaceSubString
(
sMsgReportDocumentNameDuplicate
,
StoreName
,
"%REPORTNAME"
);
/* int iMsg = */
CurUnoDialog
.
showMessageBox
(
"ErrorBox"
,
VclWindowPeerAttribute
.
OK
,
sShowMsgReportNameisDuplicate
);
return
false
;
}
else
{
CurReportDocument
.
store
(
StoreName
,
getReportOpenMode
());
ReportWizard
.
bCloseDocument
=
false
;
return
true
;
try
{
CurReportDocument
.
store
(
StoreName
,
getReportOpenMode
());
ReportWizard
.
bCloseDocument
=
false
;
return
true
;
}
catch
(
Exception
e
)
{
CurUnoDialog
.
showMessageBox
(
"ErrorBox"
,
VclWindowPeerAttribute
.
OK
,
e
.
getLocalizedMessage
()
);
CurUnoDialog
.
enableFinishButton
(
false
);
return
false
;
}
}
String
sMsgReportDocumentNameDuplicate
=
CurUnoDialog
.
m_oResource
.
getResText
(
UIConsts
.
RID_REPORT
+
76
);
String
sShowMsgReportNameisDuplicate
=
JavaTools
.
replaceSubString
(
sMsgReportDocumentNameDuplicate
,
StoreName
,
"%REPORTNAME"
);
/* int iMsg = */
CurUnoDialog
.
showMessageBox
(
"ErrorBox"
,
VclWindowPeerAttribute
.
OK
,
sShowMsgReportNameisDuplicate
);
CurUnoDialog
.
enableFinishButton
(
false
);
return
false
;
}
}
wizards/com/sun/star/wizards/report/ReportTextImplementation.java
Dosyayı görüntüle @
bfea1105
...
...
@@ -480,7 +480,7 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme
return
m_aDoc
.
xMSFDoc
;
}
public
void
store
(
String
_sName
,
int
_nOpenMode
)
public
void
store
(
String
_sName
,
int
_nOpenMode
)
throws
com
.
sun
.
star
.
uno
.
Exception
{
getDoc
().
createReportForm
(
ReportWizard
.
SOREPORTFORMNAME
);
// int nOpenMode = getReportOpenMode();
...
...
wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java
Dosyayı görüntüle @
bfea1105
...
...
@@ -37,7 +37,7 @@ import com.sun.star.wizards.report.*;
import
com.sun.star.awt.XWindowPeer
;
import
com.sun.star.beans.PropertyValue
;
import
com.sun.star.beans.XPropertySet
;
import
com.sun.star.container.X
NameAccess
;
import
com.sun.star.container.X
HierarchicalNameContainer
;
import
com.sun.star.container.XNameContainer
;
import
com.sun.star.frame.XController
;
import
com.sun.star.frame.XDispatch
;
...
...
@@ -340,7 +340,7 @@ public class ReportBuilderImplementation extends ReportImplementationHelper
throw
new
UnsupportedOperationException
(
"Not supported yet."
);
}
public
void
store
(
String
Name
,
int
OpenMode
)
public
void
store
(
String
Name
,
int
OpenMode
)
throws
com
.
sun
.
star
.
uno
.
Exception
{
// throw new UnsupportedOperationException("Not supported yet.");
// getReportBuilderLayouter().store(Name);
...
...
@@ -351,27 +351,14 @@ public class ReportBuilderImplementation extends ReportImplementationHelper
return
;
}
try
{
final
XNameAccess
aNameAccess
=
(
XNameAccess
)
UnoRuntime
.
queryInterface
(
XNameAccess
.
class
,
m_aReportDocument
);
final
String
[]
aNames
=
aNameAccess
.
getElementNames
();
// m_xReportDefinition.storeToStorage(m_xReportDefinition.getDocumentStorage(), m_xReportDefinition.getArgs());
final
XCommandProcessor
xProcessor
=
(
XCommandProcessor
)
UnoRuntime
.
queryInterface
(
XCommandProcessor
.
class
,
m_aDocumentDefinition
);
com
.
sun
.
star
.
ucb
.
Command
aCommand
=
new
com
.
sun
.
star
.
ucb
.
Command
();
aCommand
.
Name
=
"storeOwn"
;
final
XCommandProcessor
xProcessor
=
UnoRuntime
.
queryInterface
(
XCommandProcessor
.
class
,
m_aDocumentDefinition
);
final
com
.
sun
.
star
.
ucb
.
Command
aCommand
=
new
com
.
sun
.
star
.
ucb
.
Command
();
aCommand
.
Name
=
"storeOwn"
;
final
Object
aObj2
=
xProcessor
.
execute
(
aCommand
,
xProcessor
.
createCommandIdentifier
(),
null
);
final
Object
aObj2
=
xProcessor
.
execute
(
aCommand
,
xProcessor
.
createCommandIdentifier
(),
null
);
final
XNameContainer
aNameContainer
=
(
XNameContainer
)
UnoRuntime
.
queryInterface
(
XNameContainer
.
class
,
m_aReportDocument
);
// aNameContainer.insertByName(Name, m_xReportDefinition);
aNameContainer
.
insertByName
(
Name
,
m_aDocumentDefinition
);
}
catch
(
Exception
e
)
{
int
dummy
=
0
;
}
final
XHierarchicalNameContainer
aNameContainer
=
UnoRuntime
.
queryInterface
(
XHierarchicalNameContainer
.
class
,
m_aReportDocument
);
aNameContainer
.
insertByHierarchicalName
(
Name
,
m_aDocumentDefinition
);
}
public
boolean
liveupdate_addGroupNametoDocument
(
String
[]
GroupNames
,
String
CurGroupTitle
,
Vector
GroupFieldVector
,
ArrayList
ReportPath
,
int
iSelCount
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment