+/*\r
+ * Licensed to the Apache Software Foundation (ASF) under one or more\r
+ * contributor license agreements. See the NOTICE file distributed with\r
+ * this work for additional information regarding copyright ownership.\r
+ * The ASF licenses this file to You under the Apache License, Version 2.0\r
+ * (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+/* $Id$ */\r
+\r
package org.apache.fop.area;\r
\r
import java.util.List;\r
+/*\r
+ * Licensed to the Apache Software Foundation (ASF) under one or more\r
+ * contributor license agreements. See the NOTICE file distributed with\r
+ * this work for additional information regarding copyright ownership.\r
+ * The ASF licenses this file to You under the Apache License, Version 2.0\r
+ * (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+/* $Id$ */\r
+\r
package org.apache.fop.fo.extensions.destination;\r
\r
import org.apache.fop.fo.ValidationException;\r
+/*\r
+ * Licensed to the Apache Software Foundation (ASF) under one or more\r
+ * contributor license agreements. See the NOTICE file distributed with\r
+ * this work for additional information regarding copyright ownership.\r
+ * The ASF licenses this file to You under the Apache License, Version 2.0\r
+ * (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+/* $Id$ */\r
+\r
package org.apache.fop.fo.extensions.destination;\r
\r
import java.util.HashMap;\r
See the License for the specific language governing permissions and\r
limitations under the License.\r
-->\r
+<!-- $Id$ -->\r
<HTML>\r
<TITLE>org.apache.fop.destination Package</TITLE>\r
<BODY>\r
<P>Classes to support named destinations (only relevant for PDF output)</P>\r
</BODY>\r
-</HTML>
\ No newline at end of file
+</HTML>\r
/**\r
* Sets the GoToReference in the associated DestinationData object.\r
*\r
- * @param the GoToReference to set in the associated DestinationData object.\r
+ * @param goToReference the reference to set in the associated DestinationData object.\r
*/\r
public void setGoToReference(String goToReference) {\r
this.goToReference = goToReference;\r
*\r
* @return the GoToReference from the associated DestinationData object.\r
*/\r
- public String getGoToReference()\r
- {\r
+ public String getGoToReference() {\r
return this.goToReference;\r
}\r
\r
*\r
* @return the RefID from the associated DestinationData object.\r
*/\r
- public String getIDRef()\r
- {\r
+ public String getIDRef() {\r
return this.idRef;\r
}\r
\r
/**
* Sets whether the document has named destinations.
*
- * @param whether the document has named destinations.
+ * @param hasDestinations whether the document has named destinations.
*/
public void setHasDestinations(boolean hasDestinations) {
this.hasDestinations = hasDestinations;
public String toPDFString() {\r
String[] idRefs = new String[destinationList.size()];\r
String kidsString = "";\r
- for(int i = 0; i < destinationList.size(); i++) {\r
+ for (int i = 0; i < destinationList.size(); i++) {\r
PDFDestination dest = (PDFDestination)destinationList.get(i);\r
idRefs[i] = dest.getIDRef();\r
kidsString += dest.referencePDF();\r
<changes>
<release version="FOP Trunk">
+ <action context="Code" dev="JB" type="add" importance="high">
+ Add support for named destinations in PDF.
+ </action>
<action context="Code" dev="JM" type="fix">
Fixed a problem with keep-with-next on table-rows. Once a keep-with-next was set
inside a table, the FO following the table would always be glued to the previous table.